/terraform-kubernetes-scaleway

Provisioning files for Terraform, to deploy a Kubernetes cluster on Scaleway.

Primary LanguageHCL

Provisioning files for Terraform to deploy a Kubernetes cluster to Scaleway.

How to use:

  1. Generate SSH keys for Scaleway and add it to the security section in Scaleway. SSH Key must have the name scw
  2. Issue a token from your scaleway account.
  3. Create a Kubernetes token for terraform.tfvars. You can use python -c 'import random; print "%0x.%0x" % (random.SystemRandom().getrandbits(3*8), random.SystemRandom().getrandbits(8*8))'
  4. Update terraform.tfvars with appropriate configuration values.
  5. Run "terraform plan" to review provisioning
  6. Run "terraform apply" to provision your kubernetes cluster.
  7. Get config file from master by running "scp -i privatekey root@masterip:/etc/kubernetes/admin.conf .
  8. Run locally a proxy for accessing the cluster UI with "kubectl --kubeconfig ./admin.conf proxy"

Based on edouardb/kubernetes-terraform-scaleway.