Skip to content

Commit 0118f70

Browse files
authored
Align kubectl images with available tags (#4801)
* chore: align kubectl images with available tags reaper now uses registry.k8s.io/kubectl:v1.32.9 (with the registry’s required v prefix) restund falls back to docker.io/bitnamilegacy/kubectl:1.24.12 since registry.k8s.io no longer ships that version * update kubectl image for restund - use registry.k8s.io for kubectl image with version v1.32.9 * update changelog.d * use bitnamilegacy kubectl which includes shell * restund also requires kubectl with shell access * update changelog.d text
1 parent b51531c commit 0118f70

File tree

4 files changed

+11
-3
lines changed

4 files changed

+11
-3
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Switch reaper and restund kubectl images to bitnamilegacy registry to ensure shell access compatibility

charts/reaper/values.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
image:
2-
registry: registry.k8s.io
3-
repository: kubectl
2+
# Use a kubectl image that includes a shell (sh/bash). Distroless images will fail to exec the script.
3+
registry: docker.io
4+
repository: bitnamilegacy/kubectl
45
tag: 1.32.9
56
podSecurityContext:
67
allowPrivilegeEscalation: false

charts/restund/templates/statefulset.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ spec:
5656
{{- end }}
5757
initContainers:
5858
- name: get-external-ip
59-
image: registry.k8s.io/kubectl:1.24.12
59+
image: {{ .Values.kubectlImage.registry }}/{{ .Values.kubectlImage.repository }}:{{ .Values.kubectlImage.tag }}
6060
volumeMounts:
6161
- name: external-ip
6262
mountPath: /external-ip

charts/restund/values.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,12 @@ image:
1010
# overwrite the tag here, otherwise `appVersion` of the chart will be used
1111
tag: ""
1212

13+
kubectlImage:
14+
# Use a kubectl image that includes a shell (sh/bash). Distroless images will fail to exec the script.
15+
registry: docker.io
16+
repository: bitnamilegacy/kubectl
17+
tag: 1.32.9
18+
1319
# If you have multiple deployments of Restund running in one cluster, it is
1420
# important that they run on disjoint sets of nodes, you can use nodeSelector to enforce this
1521
nodeSelector: {}

0 commit comments

Comments
 (0)