Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

在master0上生成kubeadm-config.yaml配置文件 #41

Closed
fanux opened this issue Apr 11, 2019 · 1 comment
Closed

在master0上生成kubeadm-config.yaml配置文件 #41

fanux opened this issue Apr 11, 2019 · 1 comment

Comments

@fanux
Copy link
Member

fanux commented Apr 11, 2019

apiVersion: kubeadm.k8s.io/v1beta1
kind: ClusterConfiguration
kubernetesVersion: v1.14.0
controlPlaneEndpoint: "apiserver.cluster.local:6443" # apiserver DNS name
apiServer:
        certSANs:
        - 127.0.0.1
        - apiserver.cluster.local
        - 172.20.241.205
        - 172.20.241.206
        - 172.20.241.207
        - 172.20.241.208
        - 10.103.97.1          # virturl ip
---
apiVersion: kubeproxy.config.k8s.io/v1alpha1
kind: KubeProxyConfiguration
mode: "ipvs"
ipvs:
        excludeCIDRs: 
        - "10.103.97.1/32"

把所有master地址渲染进去,写到/root/kubeadm-config.yaml文件

@fanux
Copy link
Member Author

fanux commented Apr 12, 2019

如果文件已存在就不渲染,渲染使用 text/template 注意虚拟地址要和代码里写死的一致. 10.103.97.2

@fanux fanux closed this as completed in b8215e0 Apr 12, 2019
cuisongliu referenced this issue in cuisongliu/sealos Apr 12, 2019
optimize
cuisongliu referenced this issue in cuisongliu/sealos Apr 12, 2019
optimize
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant