Created
April 30, 2019 13:44
-
-
Save Nurlan199206/11090d9019c09639ea2f399e71d8c333 to your computer and use it in GitHub Desktop.
kubernetes команды примеры
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
kubectl get pods && kubectl get services - список подов и сервисов IP:PORT | |
kubectl delete service,deployment nginx - удалить сервис и поды nginx | |
kubectl logs nginx-6dd86d77d-48tn4 - посмотреть логи контейнера | |
kubectl exec -ti nginx-6dd86d77d-48tn4 bash - интерактивный режим bash | |
kubectl expose deployment nginx --type=NodePort --port=80 - выставить сервис наружу | |
kubectl create -f ingress.yml - создание точки входа ingress |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment