标签:creat exp bin 网络命名空间 versions space node names app
kubectl get pods -n kube-system -o wide/yaml/json
kubectl get nodes
kubectl get ns
kubectl get deployment
kubectl api-resources
kubectl create namespaces AAA
kubectl delete namespaces AAA
kubectl delete ns/AAA
kubectl describe ns/AAA
kubectl create deployment ngx-dep --image=nginx:alpine
kubectl exec -it -- bin/sh
kubectl scale --replicas=3 deployment ngx-dep
kubectl api-versions
kubectl create/apply -f 123.yaml
kubectl explain Pods
pod内容器共享网络命名空间,可以通过127.0.0.1:port互联
kubectl logs
一个POD中通常只放一个主容器,其他容器作为辅助sidecar,例如日志收集、代理、istio等
而类似lnmt部署分多个pod使用
标签:creat exp bin 网络命名空间 versions space node names app
原文地址:https://www.cnblogs.com/kylingx/p/12275008.html