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

kubeadm安装高可用k8s集群

时间:2020-06-08 00:41:16      阅读:77      评论:0      收藏:0      [点我收藏+]

标签:groups   ane   pie   bind   tco   vsp   key   centos7   ber   

环境准备

  • 安装三台centos7.6虚拟机
  • 配置k8s源为阿里云源

选择其中一台虚拟机

apiVersion: kubeadm.k8s.io/v1beta1
bootstrapTokens:
- groups:
  - system:bootstrappers:kubeadm:default-node-token
  token: abcdef.0123456789abcdef
  ttl: 24h0m0s
  usages:
  - signing
  - authentication
kind: InitConfiguration
localAPIEndpoint:
  advertiseAddress: 172.17.26.107
  bindPort: 6443
nodeRegistration:
  criSocket: /var/run/dockershim.sock
  name: k8s-node1
  taints:
  - effect: NoSchedule
    key: node-role.kubernetes.io/master
---
apiServer:
  timeoutForControlPlane: 4m0s
apiVersion: kubeadm.k8s.io/v1beta1
certificatesDir: /etc/kubernetes/pki
clusterName: kubernetes
controlPlaneEndpoint: "172.17.26.110:8443"
controllerManager: {}
dns:
  type: CoreDNS
etcd:
  local:
    dataDir: /var/lib/etcd
imageRepository: harbor.tophc.top/kubernetes
kind: ClusterConfiguration
kubernetesVersion: v1.14.8
networking:
  dnsDomain: cluster.local
  podSubnet: "10.244.0.0/16"
  serviceSubnet: "10.254.0.0/16"
scheduler: {}
---
apiVersion: kubeproxy.config.k8s.io/v1alpha1
kind: KubeProxyConfiguration
featureGates:
  SupportIPVSProxyMode: true
mode: ipvs

未完成...
待续...

kubeadm安装高可用k8s集群

标签:groups   ane   pie   bind   tco   vsp   key   centos7   ber   

原文地址:https://www.cnblogs.com/lizhaojun-ops/p/13062846.html

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