https://gitlab.com/nanuchi/youtube-tutorial-series/-/tree/master/demo-kubernetes-components
https://www.youtube.com/watch?v=azuwXALfyRg&list=PLy7NrYWoggjwPggqtFsI_zMAwvG0SqYCb&index=20
minikube kubectl -- apply | delete -f demo.yaml
minikube kubectl -- create | update | delete deployment nginx-deployment
minikube kubectl -- get deployment | nodes | pod | services | replicaset
minikube kubectl -- describe pod nginx-deployment-6895854749-7mjft
minikube kubectl -- logs nginx-deployment-6895854749-7mjft
minikube kubectl -- exec nginx-deployment-6895854749-7mjft -- date
Sat Feb 11 10:41:12 UTC 2023
minikube kubectl -- exec -ut nginx-deployment-6895854749-7mjft -- bin/bash
-------------------------
$ minikube kubectl -- apply -f nginx-deployment.yaml
deployment.apps/nginx-deployment created
$ minikube kubectl -- apply -f nginx-service.yml
service/nginx-service created
$ minikube kubectl -- get pod
NAME READY STATUS RESTARTS AGE
nginx-deployment-6895854749-j7kvw 1/1 Running 0 72s
$ minikube kubectl -- get service
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
kubernetes ClusterIP 10.96.0.1 <none> 443/TCP 16d
nginx-service ClusterIP 10.103.91.133 <none> 81/TCP 2m19s
$ minikube kubectl -- describe service nginx-service
minikube kubectl -- delete -f nginx-deployment.yaml
minikube kubectl -- apply -f nginx-deployment.yaml
minikube kubectl -- get pod -o wide
minikube kubectl -- describe pod
minikube kubectl -- delete -f nginx-service.yml
minikube kubectl -- apply -f nginx-service.yml
minikube kubectl -- get service -o wide
minikube kubectl -- describe service
$ minikube kubectl -- get deployment nginx-deployment -o yaml
$ minikube kubectl -- get all
NAME READY STATUS RESTARTS AGE
pod/nginx-deployment-68d9b6c666-nmn7n 1/1 Running 0 32m
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
service/kubernetes ClusterIP 10.96.0.1 <none> 443/TCP 16d
service/nginx-service ClusterIP 10.101.5.35 <none> 81/TCP 31m
NAME READY UP-TO-DATE AVAILABLE AGE
deployment.apps/nginx-deployment 1/1 1 1 32m
NAME DESIRED CURRENT READY AGE
replicaset.apps/nginx-deployment-68d9b6c666 1 1 1 32m
---------------
https://www.youtube.com/watch?v=EQNO_kM96Mo
echo -n 'username' | base64
https://www.youtube.com/watch?v=azuwXALfyRg&list=PLy7NrYWoggjwPggqtFsI_zMAwvG0SqYCb&index=19
Kubectl Basic Commands - Create and Debug Pod in a Minikube cluster | Kubernetes Tutorial 18
kubectl get nodes
kubectl get pod
kubectl describe pod
kubectl get services
kubectl create -h
kubectl get replicaset
kubectl get deployment
kubectl create deployment nginx-depl
kubectl cedit deployment nginx-depl
kubectl exec -it <podname> -- /bin/sh
https://youtu.be/azuwXALfyRg?list=PLy7NrYWoggjwPggqtFsI_zMAwvG0SqYCb&t=707
No comments:
Post a Comment