Skip to content

Commit

Permalink
Merge pull request #389 from thomasferrandiz/fix-busybox-rke2-metrics…
Browse files Browse the repository at this point in the history
…-server

make busybox configurable and fix registry path for multus and metrics-server
  • Loading branch information
thomasferrandiz authored Jan 4, 2024
2 parents 4f4ec99 + 00a742b commit 89c4269
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
containers:
- name: wget
- image: busybox
+ image: {{ template "system_default_registry" . }}mirrored-library-busybox:1.36.1
+ image: {{ template "system_default_registry" . }}{{ .Values.tests.image.repository }}:{{ .Values.tests.image.tag }}
command: ['/bin/sh']
args:
- -c
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@

extraVolumeMounts: []
# - name: secrets
@@ -101,9 +103,13 @@
@@ -101,9 +103,18 @@
# kubernetes.io/name: "Metrics-server"
port: 443
type: ClusterIP
Expand All @@ -48,5 +48,10 @@
minAvailable:
maxUnavailable:
+
+tests:
+ image:
+ repository: rancher/mirrored-library-busybox
+ tag: "1.36.1"
+
+global:
+ systemDefaultRegistry: ""
2 changes: 1 addition & 1 deletion packages/rke2-metrics-server/package.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
url: https://charts.helm.sh/stable/packages/metrics-server-2.11.1.tgz
packageVersion: 12
packageVersion: 13
releaseCandidateVersion: 00
4 changes: 2 additions & 2 deletions packages/rke2-multus/charts/templates/dhcp-daemonSet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ spec:
nodeSelector: {{- toYaml .Values.labels.nodeSelector | nindent 8 }}
initContainers:
- name: kube-{{ .Chart.Name }}-dhcp-cleanup
image: {{ template "system_default_registry" . }}mirrored-library-busybox:1.36.1
image: {{ template "system_default_registry" . }}{{ .Values.dhcpDaemonSet.image.repository }}:{{ .Values.dhcpDaemonSet.image.tag }}
command: ["rm", "-f", "/run/cni/dhcp.sock"]
securityContext:
privileged: true
Expand All @@ -36,7 +36,7 @@ spec:
mountPath: /host/run/cni
containers:
- name: kube-{{ .Chart.Name }}-dhcp
image: {{ template "system_default_registry" . }}mirrored-library-busybox:1.36.1
image: {{ template "system_default_registry" . }}{{ .Values.dhcpDaemonSet.image.repository }}:{{ .Values.dhcpDaemonSet.image.tag }}
command: ["/opt/cni/bin/dhcp", "daemon"]
securityContext:
privileged: true
Expand Down
5 changes: 5 additions & 0 deletions packages/rke2-multus/charts/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,11 @@ cniplugins:
# installing.
skipcnis: flannel

dhcpDaemonSet:
image:
repository: rancher/mirrored-library-busybox
tag: "1.36.1"

global:
systemDefaultRegistry: ""

Expand Down
2 changes: 1 addition & 1 deletion packages/rke2-multus/package.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
url: local
workingDir: charts
packageVersion: 05
packageVersion: 06

0 comments on commit 89c4269

Please sign in to comment.