From 74829deaa71a8b7a41c6e80fabc595078e643a77 Mon Sep 17 00:00:00 2001 From: Marco Nenciarini Date: Thu, 17 Feb 2022 15:18:01 +0100 Subject: [PATCH] Fix system upgrade controller certificates --- master.tf | 5 +++-- patches/system-upgrade-controller.yaml | 18 ++++++++++++++++++ 2 files changed, 21 insertions(+), 2 deletions(-) create mode 100644 patches/system-upgrade-controller.yaml diff --git a/master.tf b/master.tf index d2303f4..003d5dd 100644 --- a/master.tf +++ b/master.tf @@ -113,11 +113,12 @@ resource "hcloud_server" "first_control_plane" { "https://raw.githubusercontent.com/hetznercloud/csi-driver/${local.csi_version}/deploy/kubernetes/hcloud-csi.yml", "https://github.com/weaveworks/kured/releases/download/${local.kured_version}/kured-${local.kured_version}-dockerhub.yaml", "https://raw.githubusercontent.com/rancher/system-upgrade-controller/master/manifests/system-upgrade-controller.yaml", - "./traefik.yaml", + "traefik.yaml", ] patchesStrategicMerge = [ file("${path.module}/patches/kured.yaml"), - file("${path.module}/patches/ccm.yaml") + file("${path.module}/patches/ccm.yaml"), + file("${path.module}/patches/system-upgrade-controller.yaml") ] }) destination = "/tmp/post_install/kustomization.yaml" diff --git a/patches/system-upgrade-controller.yaml b/patches/system-upgrade-controller.yaml new file mode 100644 index 0000000..fc904de --- /dev/null +++ b/patches/system-upgrade-controller.yaml @@ -0,0 +1,18 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: system-upgrade-controller + namespace: system-upgrade +spec: + template: + spec: + containers: + - name: system-upgrade-controller + volumeMounts: + - name: ca-certificates + mountPath: /var/lib/ca-certificates + volumes: + - name: ca-certificates + hostPath: + path: /var/lib/ca-certificates + type: Directory