kubeadm安装高可用k8s集群

Posted lizhaojun-ops

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了kubeadm安装高可用k8s集群相关的知识,希望对你有一定的参考价值。

环境准备

  • 安装三台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集群的主要内容,如果未能解决你的问题,请参考以下文章

kubeadm安装高可用k8s集群

kubeadm安装高可用k8s集群

kubeadm搭建高可用K8s集群

Ubuntu22.04使用kubeadm安装k8s 1.26版本高可用集群

Ubuntu22.04使用kubeadm安装k8s 1.26版本高可用集群

使用kubeadm搭建高可用的K8S集群(2022年1月亲测有效)