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.
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
}
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:
-
(Optional) Create a K8s Glance Image using a Packer template that references the install-k8s module. Here is an example Packer template.
-
Deploy that Image using the Terraform k8s-cluster example. If you prebuilt a k8s glance image with packer, you can comment the post provisionning modules arguments.
Contributions are very welcome! Check out the Contribution Guidelines for instructions.
Module managed by
- Yann Degat.
- Joris Bonnefoy.
- Loïc PORTE.
- Nicolas_NATIVEL.
- Timothé GERMAIN.
The 3-Clause BSD License. See LICENSE for full details.