Salt module to manage Kubernetes cluster
2016.3.0 新版功能.
Roadmap:
salt.modules.k8s.
get_labels
(node=None, apiserver_url=None)¶Get labels from the current node
CLI Example:
salt '*' k8s.get_labels
salt '*' k8s.get_labels kube-node.cluster.local http://kube-master.cluster.local
salt.modules.k8s.
label_absent
(name, node=None, apiserver_url=None)¶Delete label to the current node
CLI Example:
salt '*' k8s.label_absent hw/disktype
salt '*' k8s.label_absent hw/disktype kube-node.cluster.local http://kube-master.cluster.local
salt.modules.k8s.
label_folder_absent
(name, node=None, apiserver_url=None)¶Delete label folder to the current node
CLI Example:
salt '*' k8s.label_folder_absent hw
salt '*' k8s.label_folder_absent hw/ kube-node.cluster.local http://kube-master.cluster.local
salt.modules.k8s.
label_present
(name, value, node=None, apiserver_url=None)¶Set label to the current node
CLI Example:
salt '*' k8s.label_present hw/disktype ssd
salt '*' k8s.label_present hw/disktype ssd kube-node.cluster.local http://kube-master.cluster.local