项目作者: kaitoy

项目描述 :
Ansible Playbook to setup Kubernetes Cluster
高级语言: HTML
项目地址: git://github.com/kaitoy/ansible-k8s.git
创建时间: 2018-06-03T11:33:09Z
项目社区:https://github.com/kaitoy/ansible-k8s

开源协议:MIT License

下载


Ansible Playbook to setup Kubernetes Cluster

Prerequisites for Ansible Controller

  • Ansible 2.5.x installed
  • Python package “netaddr” is installed
  • Git installed

Kubernetes Cluster to setup

  • Kubernetes: v1.30.2
    • Single node cluster
    • kubelet,kube-proxy, kube-apiserver, kube-controller-manager, kube-scheduler, and etcd are managed by systemd (i.e. not containerized)
      • kubelet and kube-proxy run as root, and the rest run as non-root
    • Communication between k8s components is encrypted by TLS
    • Authentication by x509 client certificates
    • TLS Bootstrapping
      • Bootstrap token
      • Auto approval for CSRs
    • Certificate Rotation is enabled
    • etcd 3.5.14
    • Calico 3.28.0
    • CoreDNS 1.11.1
    • Service cluster IP range: 10.0.0.0/16
    • Cluster CIDR: 10.32.0.0/16
    • Proxy mode: ipvs
    • Using KubeletConfiguration, KubeProxyConfiguration, and KubeSchedulerConfiguration
  • Tools

How to use

  1. $ su -
  2. # git clone https://github.com/kaitoy/ansible-k8s.git
  3. # cd ansible-k8s
  4. # sh play.sh