Generate a Secret without a hash suffix
disableNameSuffixHash keeps the name stable, but pods no longer roll out when the secret changes
cat <<'EOF' >> kustomization.yaml
secretGenerator:
- name: db-creds
literals: [PASSWORD=s3cr3t]
generatorOptions:
disableNameSuffixHash: true
EOF
- tool
- kustomize23 commands
More kustomize commands
-
cat <<'EOF' >> kustomization.yaml openapi: path: crd-schema.json EOFTeach kustomize the merge rules of your CRDs, so patches merge correctly
-
kustomize build ./overlays/prodRender all manifests of an overlay to stdout
-
kubectl apply -k ./overlays/prodBuild and apply kustomization in one step via kubectl
-
kubectl diff -k ./overlays/prodShow what will change before you apply
-
kustomize edit add resource ./deployment.yamlAdd a resource file to kustomization.yaml