feat(helm): add imagePullSecret template for private registry
Some checks failed
CD - Build & Deploy / build-and-push (push) Has been cancelled
CD - Build & Deploy / package-helm (push) Has been cancelled
CD - Build & Deploy / deploy-staging (push) Has been cancelled
CD - Build & Deploy / deploy-production (push) Has been cancelled
CD - Build & Deploy / release (push) Has been cancelled
CI / security (push) Has been cancelled
CI / test (3.11) (push) Has been cancelled
ci/woodpecker/push/woodpecker Pipeline failed
CI / test (3.12) (push) Has been cancelled
Some checks failed
CD - Build & Deploy / build-and-push (push) Has been cancelled
CD - Build & Deploy / package-helm (push) Has been cancelled
CD - Build & Deploy / deploy-staging (push) Has been cancelled
CD - Build & Deploy / deploy-production (push) Has been cancelled
CD - Build & Deploy / release (push) Has been cancelled
CI / security (push) Has been cancelled
CI / test (3.11) (push) Has been cancelled
ci/woodpecker/push/woodpecker Pipeline failed
CI / test (3.12) (push) Has been cancelled
Changes: - Add templates/secret.yaml to automatically create docker-registry secret - Add imageCredentials config to values.yaml (disabled by default) - Enable imageCredentials in values-production.yaml - Auto-generates kubernetes.io/dockerconfigjson secret from username/password Usage in production: 1. Set credentials via ArgoCD values override: imageCredentials.username: <from-secret> imageCredentials.password: <from-secret> 2. Or use external-secrets operator to inject from vault The secret will be auto-created and referenced in imagePullSecrets.
This commit is contained in:
@@ -6,14 +6,16 @@ replicaCount: 1
|
||||
image:
|
||||
pullPolicy: Always
|
||||
|
||||
# Note: If hub-registry-secret doesn't exist, create it with:
|
||||
# kubectl create secret docker-registry hub-registry-secret \
|
||||
# --docker-server=hub.peikarband.ir \
|
||||
# --docker-username=<username> \
|
||||
# --docker-password=<password> \
|
||||
# -n peikarband
|
||||
# Or disable imagePullSecrets in values.yaml if registry is public
|
||||
imagePullSecrets: []
|
||||
# Docker registry credentials - automatically creates secret
|
||||
imageCredentials:
|
||||
create: true
|
||||
name: hub-registry-secret
|
||||
registry: hub.peikarband.ir
|
||||
username: "" # TODO: Set via ArgoCD/Helm or external secret
|
||||
password: "" # TODO: Set via ArgoCD/Helm or external secret
|
||||
|
||||
imagePullSecrets:
|
||||
- name: hub-registry-secret
|
||||
|
||||
# Reflex configuration for production
|
||||
reflex:
|
||||
|
||||
Reference in New Issue
Block a user