Skip to content

Commit da04fd9

Browse files
fix: use official kubectl image for gateway API CRD installer job (#514)
bitnami/kubectl:1.31.4 tag does not exist on Docker Hub, causing ImagePullBackOff. Switch to the official distroless image registry.k8s.io/kubectl:v1.31.4 and update command/args since the distroless image has no /bin/sh. Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 35c7eb9 commit da04fd9

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

  • modules/gateway_api_crd/k8s/1.0

modules/gateway_api_crd/k8s/1.0/main.tf

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,11 +93,11 @@ resource "kubernetes_job_v1" "gateway_api_crd_installer" {
9393

9494
container {
9595
name = "kubectl"
96-
image = "bitnami/kubectl:1.31.4"
97-
command = ["/bin/sh", "-c"]
96+
image = "registry.k8s.io/kubectl:v1.31.4"
97+
command = ["kubectl"]
9898
args = [
9999
# Using --server-side to avoid annotation size limit (262KB)
100-
"kubectl apply --server-side -f ${local.install_url}"
100+
"apply", "--server-side", "-f", local.install_url
101101
]
102102
}
103103
}

0 commit comments

Comments
 (0)