Skip to content

mdelord/terraform-ovh-publiccloud-k8s

 
 

Repository files navigation

Kubernetes OVH Public Cloud Module Build Status

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
  worker_mode               = true
  cfssl                     = true
  etcd                      = true
  image_name                = "CoreOS Stable - OVH Kubernetes"
  flavor_name               = "b2-7"
  create_secgroups          = 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

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • HCL 60.4%
  • Shell 39.6%