Fix system upgrade controller certificates

This commit is contained in:
Marco Nenciarini 2022-02-17 15:18:01 +01:00
parent a91c15720e
commit 74829deaa7
No known key found for this signature in database
GPG Key ID: 589F03F01BA55038
2 changed files with 21 additions and 2 deletions

View File

@ -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://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://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", "https://raw.githubusercontent.com/rancher/system-upgrade-controller/master/manifests/system-upgrade-controller.yaml",
"./traefik.yaml", "traefik.yaml",
] ]
patchesStrategicMerge = [ patchesStrategicMerge = [
file("${path.module}/patches/kured.yaml"), 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" destination = "/tmp/post_install/kustomization.yaml"

View File

@ -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