Devatoria / terraform-ovh-publiccloud-k8s

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Kubernetes OVH Public Cloud Module

This repo contains a Module for how to deploy a Kubernetes cluster on OVH Public Cloud using Terraform. Kubernetes is an open-source system for automating deployment, scaling, and management of containerized applications.

Usage

module "k8s" {
  source                    = "ovh/publiccloud-k8s/ovh"
  region                    = "BHS3"
  name                      = "myk8s"
  count                     = 3
  master_mode               = true
  cfssl                     = true
  etcd                      = true
  image_name                = "CoreOS Stable K8S"
  flavor_name               = "b2-7"
  ignition_mode             = true
  associate_public_ipv4     = true
  associate_private_ipv4    = false
}

Examples

This module has the following folder structure:

  • root: This folder shows an example of Terraform code which deploys a K8s cluster in OVH Public Cloud.
  • modules: This folder contains the reusable code for this Module, broken down into one or more modules.
  • examples: This folder contains examples of how to use the modules.

To deploy K8s servers using this Module:

  1. (Optional) Create a K8s Glance Image using a Packer template that references the install-k8s module. Here is an example Packer template.
  2. Deploy that Image using one of the Terraform cluster example: private cluster or public cluster. If you prebuilt a k8s glance image with packer, you can comment the post provisionning modules arguments.

Flavors

kube-dns will not work (OutOfCpu) if only one VCPU is present (see kubernetes/kubernetes#38806), so it is not recommanded to use sandbox instances s1-2 and s1-4.

How do I contribute to this Module?

Contributions are very welcome! Check out the Contribution Guidelines for instructions.

Authors

Module managed by

License

The 3-Clause BSD License. See LICENSE for full details.

About

License:Other


Languages

Language:HCL 62.1%Language:Shell 19.5%Language:Smarty 18.4%