-
Notifications
You must be signed in to change notification settings - Fork 4.9k
[Feature-17566][Helm] add secrets and initContainers in worker statefulset #17519
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: dev
Are you sure you want to change the base?
Changes from 6 commits
f4ba4bd
19674f1
3a69c4e
00454c3
69a9edf
3d0f0f3
dfb5cb2
07b7c2b
361bb7c
66a1396
90200a4
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -583,6 +583,38 @@ worker: | |
| # -- Update strategy | ||
| # ref: https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#update-strategies | ||
| # | ||
| # -- Direct Secret Mounting | ||
| # Mount secrets directly as environment variables | ||
| # Single secret | ||
| envFromSecret: "git-sync-secret" | ||
jmmc-tools marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| # Multiple secrets (advanced use cases) | ||
| # Use when you have variables distributed across different secrets | ||
| # envFromSecrets: | ||
| # - "git-sync-secret" # Git synchronization credentials | ||
| # - "database-secret" # Database connection details | ||
| # - "external-api-secret" # Third-party API keys | ||
|
|
||
| # -- Init Container for Advanced Processing | ||
| # Use when you need to transform, validate, or prepare configuration files | ||
| initContainers: | ||
jmmc-tools marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| - name: config-processor | ||
|
||
| image: busybox:latest | ||
| command: | ||
| - /bin/sh | ||
| - -c | ||
| - | | ||
| echo "⚙️ Init startup settings..." | ||
| # Create specific starup script for an specific environment settings in worker pods. | ||
| # You can use unix variables from secrets | ||
| envFrom: | ||
| # -- Example secret name for initContainer | ||
| - secretRef: | ||
| name: git-sync-secret | ||
| # -- Example volumeMounts for initContiner | ||
| volumeMounts: | ||
| - name: shared-config | ||
| mountPath: /shared-config | ||
| updateStrategy: | ||
| type: RollingUpdate | ||
| # -- Replicas is the desired number of replicas of the given Template. | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.