码迷,mamicode.com
首页 > 其他好文 > 详细

kubespray 修改配置

时间:2019-09-21 19:12:45      阅读:112      评论:0      收藏:0      [点我收藏+]

标签:not   ack   version   list   col   nal   tst   The   hang   

1.安装前的修改配置

#
[root@slave1 kubespray]# vim inventory/local/group_vars/k8s-cluster.yml
kube_network_plugin: flannel
kube_version: v1.9.2
#
[root@slave1 kubespray]# vim inventory/local/group_vars/all.yml 
#根据系统修改
bootstrap_os: centos

[root@slave1 kubespray]# vim roles/network_plugin/flannel/defaults/main.yml
flannel_backend_type: "host-gw"
#修改管理密码
[root@slave1 kubespray]# vim roles/kubespray-defaults/defaults/main.yaml
bootstrap_os: centos
kube_version: v1.9.2
#密码
kube_api_pwd: yourpassowrd

#修改kube api地址
[root@slave1 kubespray]# vim roles/kubernetes/master/defaults/main.yml
# change to 0.0.0.0 to enable insecure access from anywhere (not recommended)
kube_apiserver_insecure_bind_address: 0.0.0.0

# By default the external API listens on all interfaces, this can be changed to
# listen on a specific address/interface.
kube_apiserver_bind_address: 0.0.0.0
https://www.cnblogs.com/cheyunhua/p/9915605.html

 

kubespray 修改配置

标签:not   ack   version   list   col   nal   tst   The   hang   

原文地址:https://www.cnblogs.com/hixiaowei/p/11563979.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!