k8smaster节点:
[root@saltmater prod]# cat k8s_master/install_k8s_master.sls
dock_relay_pkg:
pkg.installed:
k8s_node节点:
cat k8s_node/install_k8s_node.sls
dock_node_pkg:
pkg.installed:
require:
file: config_node_modify
部署2个nginx服务做测试:
kubectl run nginx --image=nginx --replicas=2 --labels="run=load-tomct-example" --port=8089
查看服务是否启动:
saltsatck自动化安装kubernets v1.10.1
原文地址:http://blog.51cto.com/mrdeng/2105178