fix(renew-tls): use alpine+curl for kubectl step to avoid permission denied
bitnami/kubectl runs as non-root UID 1001, cannot read git-crypt decrypted secrets owned by root. Switch to alpine (runs as root) with kubectl downloaded directly.
This commit is contained in:
parent
b5dd43aeab
commit
b7409cea4e
1 changed files with 3 additions and 1 deletions
|
|
@ -52,8 +52,10 @@ steps:
|
|||
- "echo 'Certificate is valid for at least 7 more days'"
|
||||
|
||||
- name: update-tls-source-secret
|
||||
image: bitnami/kubectl:latest
|
||||
image: alpine
|
||||
commands:
|
||||
- "apk update && apk add curl"
|
||||
- "curl -LO https://dl.k8s.io/release/v1.31.0/bin/linux/amd64/kubectl && chmod +x kubectl && mv kubectl /usr/local/bin/"
|
||||
- |
|
||||
kubectl create secret tls tls-secret \
|
||||
--cert=secrets/fullchain.pem --key=secrets/privkey.pem \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue