У нас вы можете посмотреть бесплатно Kubectl Tips and Tricks или скачать в максимальном доступном качестве, видео которое было загружено на ютуб. Для загрузки выберите вариант из формы ниже:
Если кнопки скачивания не
загрузились
НАЖМИТЕ ЗДЕСЬ или обновите страницу
Если возникают проблемы со скачиванием видео, пожалуйста напишите в поддержку по адресу внизу
страницы.
Спасибо за использование сервиса ClipSaver.ru
Q : What are the different commands available by default with kubectl? A : kubectl --help | less Q : How to get more information about Kubernetes objects? A : kubectl explain pods.spec.containers.image | less Q : Can we assign serviceaccount to pod when creating the pod declaratively? A : kubectl run --help | grep serviceaccount Q : Generate yaml using kubectl run command A : kubectl run nginx --image=nginx --dry-run=client -o yaml > nginx.yaml Q : Can we add command and arguments while creating pod declaratively? A : kubectl run nginx --image=nginx --dry-run=client -o yaml --command -- sleep 1000 > nginx-new.yaml kubectl run nginx --image=nginx --dry-run=client -o yaml -- sleep 1000 > nginx-new.yaml Q : Delete all the pods under current namespace A : kubectl delete pods --all Q : Switch namespace permanently A : kubectl config set-context --current --namespace=samir Q : Show pod labels A : kubectl get pods --show-labels Q : Show IP address of the pods and the nodes the pods are scheduled on A : kubectl get pods -o wide Q : Show only secrets that are of type Opaque A : kubectl get secrets --field-selector type=Opaque Q : Show all pods that have label app=frontend A : kubectl get pods --selector app=frontend kubectl get pods -l app=frontend Q : Update a pod that has command “sleep 1200” to “sleep 2000” A : sed i "s/ \"1200\"/- \"2000\"/g" nginx.yaml Q : Create a deployment and set replicas=3 in single command A : kubectl create deployment nginx --image=nginx --dry-run=client -o yaml | sed -e "s/replicas: 1/replicas: 2/g" | kubectl create -f - Q : Sort secrets by name and save in a file sorted-secrets.txt A : kubectl get secrets --sort-by=metadata.name