Pin image by digest and rename kustomize
Pin by immutable digest; newName+digest also settable in images: block
kustomize edit set image app=registry.example.com/app@sha256:<id>
more kustomize
all 23 commands →
Secret generator without hash suffix
cat <<'EOF' >> kustomization.yaml
secretGenerator:
- name: db-creds
literals: [PASSWORD=s3cr3t]
generatorOptions:
disableNameSuffixHash: true
EOF
Register CRD OpenAPI for merge keys
cat <<'EOF' >> kustomization.yaml
openapi:
path: crd-schema.json
EOF
Build kustomization
kustomize build ./overlays/prod
Apply kustomization
kubectl apply -k ./overlays/prod
Diff kustomization
kubectl diff -k ./overlays/prod