Coder Social home page Coder Social logo

k8s-etcd-cluster-ansible's Introduction

Automation setup 1-master k8s cluster with external etcd cluster (only debian)

Requirement

  1. Minimum 3 nodes [One master + etcd, 2 worker+etcd nodes]. You can have more worker nodes as per your requirement.
  2. The master node should have a minimum of 2 vCPU and 2GB RAM.
  3. For the worker nodes, a minimum of 1vCPU and 2 GB RAM is recommended.
  4. 192.X.X.X/X network range with static IPs for master and worker nodes. We will be using the 10 series as the pod network range that will be used by the Calico network plugin. Make sure the Node IP range and pod IP range don’t overlap.
  5. Internet connectivity for pulling containers required (Private registry can also be used)
  6. Full network connectivity between machines in the cluster – This is private or public

Ports

  • master:

    • kube-scheduler: 10251
    • kube-controller-manager: 10252
    • kubelet: 10250
    • api server: 6443
  • workers:

    • kubelet: 10250
  • etcd: 2379, 2380

Support:

  • OS: debian
  • network: calico, flannel
  • etcd deployment: kubeadm, service (systemd)

Notes

  • Please read through global var file in: ./host_vars/all.yml
  • If want clear k8s n etcd cluster, run playbooks: reset-etcd-cluster.yml, reset-k8s.yml

manual setup: https://dangquang.notion.site/Install-k8s-cluster-using-kubeadm-c3528ceddd9a48d2b308dbd822348273

k8s-etcd-cluster-ansible's People

Contributors

devtdq1701 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.