Skip to content

Commit

Permalink
feat(provisioning): added hetzner cloud controller
Browse files Browse the repository at this point in the history
  • Loading branch information
Mario-F committed Dec 30, 2021
1 parent a3db21b commit 86c5468
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 2 deletions.
8 changes: 6 additions & 2 deletions provisioning/clusters/hcloud-bare.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ global-config:
#
# Infra
#
hcloud-cloud-controller-manager:
installed: true
token: HETZNER_CLOUD_TOKEN

ingress-default:
installed: true
additional:
Expand All @@ -22,15 +26,15 @@ ingress-default:
proxy-buffer-size: 16k
serviceAnnotations:
load-balancer.hetzner.cloud/location: nbg1
load-balancer.hetzner.cloud/use-private-ip: true
load-balancer.hetzner.cloud/use-private-ip: false
load-balancer.hetzner.cloud/disable-private-ingress: true

# ingress-multi is used to specifiy an infinite number of different ingress
ingress-multi:

# Key is used for naming ingress release and should be uniq and not change
ingress-special:
installed: true
installed: false
class: nginx-special
additional:
config:
Expand Down
9 changes: 9 additions & 0 deletions provisioning/helmfiles/infra/helmfile.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ repositories:
- name: ingress-nginx
url: https://kubernetes.github.io/ingress-nginx

- name: mlohr
url: https://helm-charts.mlohr.com/

releases:

- name: metrics-server
Expand All @@ -19,6 +22,12 @@ releases:
needs:
- monitoring-system/prometheus

- name: hcloud-cloud-controller-manager
<<: *system
namespace: hcloud-system
chart: mlohr/hcloud-cloud-controller-manager
version: 3.0.0

- name: metallb
<<: *system
namespace: metallb-system
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Values: https://artifacthub.io/packages/helm/mlohr/hcloud-cloud-controller-manager
---
{{- $config := .Values | get "hcloud-cloud-controller-manager" }}
{{- $prometheusMonitoring := .Values | get "global-config.prometheus.enabled" false }}
{{- $hetznerCloudToken := .Values | get "global-config.hetzner.cloudToken" $config.token }}

secret:
hcloudApiToken: {{ $hetznerCloudToken }}

0 comments on commit 86c5468

Please sign in to comment.