Code Monkey home page Code Monkey logo

k8s's Introduction

K8s

Create a K8s cluster with a master and X workers using cloud computers on gcloud, oci, azure and aws

Set up a K8s cluster using Terraform and Ansible

Supports Google Cloud (gcloud), Oracle Cloud (oci), Microsoft Azure, (TBA) Amazon AWS

Terraform:

  • create a vpc network, subnetwork and firewall on cloud for the K8s cluster
  • create a compute instance on cloud for K8s master
  • create X computers instances on cloud for K8s workers
  • Provision ansible inventory and run playbook
  • There is a folder for each cloud.

Terraform-Ansible-Inventory:

  • Python script to create ansible inventory using terraform tfstate file

Ansible:

  • Playbook to deploy a K8s cluster in the computers instances created in google cloud.

How to:

  1. Access the folder of the cloud you want to create the cluster (ex: terraform_gcloud)
  2. Change the variables
  3. Run terraform plan
  4. Run terraform apply

Requirements.

  1. For Azure you need az cli installed on your machine.
  2. For Oracle you do not need oci cli installed but it is helpful to have it for debug.
  3. For Google Cloud credentials you need to create a file terraform_gcloud/gcloud.json and put the data from gcloud cli
  4. For Oracle credentials create a file terraform_oci/credentials.tf and create the variables used on providers.tf
  5. For Azure credentials create a file terraorm_azure/credentials.tf and create the variables used on providers.tf
  6. Still for azure you need to type #az login before apply a plan.

k8s's People

Contributors

reiserfs 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.