K8S的基本命令如下:
#kubectl --namespace=kube-system get pods
#kubectl --namespace=kube-system get pvc
#kubectl --namespace=kube-system describe pvc aistack-influxdb
只有两个节点,选择副本数为3将无法创建pvc,修改GLUSTERFS_REPLICAS=2
删除物理卷:
#kubectl --namespace=kube-system delete pvc aistack-influxdb
#kubectl --namespace=kube-system describe pvc aistack-influxdb
查看日志:
#kubectl --namespace=kube-system logs heketi-xxx
#kubectl --namespace=kube-system logs heketi-6fc8d547c4-h62m2
查看节点:
#heketi-cli node list
#kubectl --namespace=kube-system delete pod heketi-6fc8d547c4-h62m2
#kubectl --namespace=kube-system get pods
#kubectl --namespace=kube-system get pods -owide
#kubectl --namespace=kube-system logs heketi-6fc8d547c4-zspmx
#kubectl --namespace=kube-system delete pod heketi-6fc8d547c4-zspmx