kochTao / ansible-k8s

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ansible-kubernetes

Use ansible to install kubernetes cluster platfrom.

arch

Setup

  • Setup ansible(2.4+ advised) and ssh configuration.
  • Update inventories to meet your requirement of deployment regarding to various ENV.
  • Generate CA key and cert: ansible-playbook -i inventories/dev/hosts 01ca.yml.
  • Initialize hosts(cfssl, CA certs, firewalld, selinux, sysctl): ansible-playbook -i inventories/dev/hosts 02init.yml.
  • Setup etcd cluster: ansible-playbook -i inventories/dev/hosts 03etcd.yml.
  • Setup kube-master cluster: ansible-playbook -i inventories/dev/hosts 04kube-master.yml.
  • Install kubctl: ansible-playbook -i inventories/dev/hosts 05kubectl.yml.
  • Install docker: ansible-playbook -i inventories/dev/hosts 06docker.yml.
  • Setup kube-node cluster: ansible-playbook -i inventories/dev/hosts 07kube-node.yml.
  • Setup calico network: ansible-playbook -i inventories/dev/hosts 08calico.yml.
  • Setup dns service in kube: ansible-playbook -i inventories/dev/hosts 09dns.yml.
  • Setup dashboard(UI) for kube: ansible-playbook -i inventories/dev/hosts 10dashboard.yml.
  • Setup nginx ingress: ansible-playbook -i inventories/dev/hosts 11nginx-ingress.yml.

Components List

  • Kube Master: multi apiserver, scheduler cluster, controller manager cluster
  • Kube Node: kubelet, kube-proxy
  • Kube Storage: etcd cluster
  • Security: enable SSL/TLS
  • CRI: docker
  • CNI: calico
  • Ingress: Nginx
  • DNS: kubeDNS, dnsmasq
  • UI: dashboard
  • CLI: kubectl
  • Logger: *(to do)
  • Monitor: *(to do)
  • Alerter: *(to do)
  • CVI: *
  • Registry: Harbor(to do)

Binaries download url list

Images list

calico network images

  • calico/node:v2.6.5
  • calico/cni:v1.11.2
  • calico/kube-controllers:v1.0.2

dns addon images

  • ibmcom/k8s-dns-kube-dns:1.14.1
  • ibmcom/k8s-dns-dnsmasq-nanny:1.14.1
  • ibmcom/k8s-dns-sidecar:1.14.1

nginx ingress addon images

  • ibmcom/defaultbackend:1.2
  • ibmcom/nginx-ingress-controller:0.9.0

dashboard addon images

  • k8scn/kubernetes-dashboard-amd64:v1.8.0

pod image

  • anzersy/pause-amd64:3.0

Helpful links

About


Languages

Language:Shell 100.0%