标签:container nod pac version path 磁盘 volume metadata tor
Node、pod基本命令:
Kubectl describe pods
kubectl get pods -n default -o wide
kubectl log -f --tail=200 $pod_id
kubectl create/delete -f xxx.yaml
kubectl delete pod $pod_id
kubectl exec $pod_id
Service命令:
Kubectl get services
kubectl create -f service.yaml
kubectl delete service -l app=v1
pod文件挂载(前提:集群有共享网络磁盘)
spec:
containers:
- name: redis
image: redis
volumeMounts:
- name: redis-storage
mountPath: /data/redis
volumes:
- name: redis-storage
hostPath:
path: /host-path
名称空间
namespace-wenlin.yaml
apiVersion: v1
kind: Namespace
metadata:
name: wenlin
标签:container nod pac version path 磁盘 volume metadata tor
原文地址:https://www.cnblogs.com/wenlin-gk/p/9556624.html