kubespray 修改配置
Posted hixiaowei
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了kubespray 修改配置相关的知识,希望对你有一定的参考价值。
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 修改配置的主要内容,如果未能解决你的问题,请参考以下文章