Coder Social home page Coder Social logo

terraform-hcloud-rke2's Introduction

terraform-hcloud-rke2

This spins up a RKE2 cluster on hcloud.

It will create a ssh key at ssh_key_path. This is needed to ssh into the cluster for ops, as well as retrieving the initial kubeconfig.

If enabled (setup_hetzner_ccm), it will install hcloud-cloud-controller-manager, and configure their internal nginx ingress controller to deploy services of type LoadBalancer - so instead of configuring the load balancer by yourself, it'll create one for you.

hcloud-cloud-controller-manager requires an API token to be configured. As the hcloud terraform provider does not allow to create API tokens on demand, this needs to be configured manually.

ssh into one of the controlplane nodes and run the following:

kubectl -n kube-system create secret generic hcloud --from-literal=token=<hcloud API token>

Please see variables.tf for a full list of configuration options.

It exposes the following outputs:

  • controlplane_ipv{4,6}s The IPv4/IPv6 addresses of all controlplane nodes.
  • worker_ipv{4,6}s The IPv4/IPv6 addresses of all pure worker nodes.
  • controlplane_lb_ipv{4,6} The IPv4/IPv6 address of the load balancer in front of all control planes, exposing the kube-api-server port and RKE2 management port.
  • ingress_lb_ipv{4,6} The IPv4/IPv6 address of the load balancer in front of all nodes running workloads (can also be controlplane nodes), exposing port 80 and 443 from nodes running pods from the rke2-ingress-nginx deployment. This only applies if setup_hetzner_ccm is disabled, otherwise the CCM will take care of adding a load balancer.

terraform-hcloud-rke2's People

Contributors

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