Giter Site home page Giter Site logo

ansible_k8s_hard_way's Introduction

Kubeadm Ansible Playbook

Crie um cluster Kubernetes usando Ansible com kubeadm. O objetivo é instalar facilmente um cluster Kubernetes em máquinas executando:

  • Ubuntu 20.04

  • CentOS 7

  • Debian 10

Requisitos de sistema:

  • O ambiente de implantação deve conter o Ansible

  • Master e nodes devem ter acesso ao SSH sem senha

Faça o download dos arquivos atravé do gti:

git clone https://github.com/DenisonC/ansible_k8s_hard_way.git

Adicione as informações do sistema em um arquivo chamado hosts.ini. Por exemplo:

[master] 192.168.0.76

[node] 192.168.0.77

[kube-cluster:children] master node

Se você estiver trabalhando com Ubuntu, adicione as seguintes propriedades a cada host ansible_python_interpreter='python3':

[master] 192.168.0.76 ansible_python_interpreter='python3' [node] 192.168.0.77 ansible_python_interpreter='python3'

[kube-cluster:children] master node

Agora edite o arquivo group_vars/all.yml

Para utilizar o flannel ao invés de calico altere a linha:

Network implementation('flannel', 'calico')

network: flannel Para utilizar o melallb como Load Balancer para os pods alter a linha abaixo para true:

Para alterar o rutime do docker alterar a linha abaixo:

Container runtimes ('containerd', 'crio')

container_runtime: crio

Depois de executar a configuração execute o playbook do sitem.yml

ansile-playbook sites.yaml

ansible_k8s_hard_way's People

Contributors

denisonc avatar

Watchers

 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.