Skip to content

Instantly share code, notes, and snippets.

@misskecupbung
Created October 6, 2022 16:28
Embed
What would you like to do?
# create Kustomize file
cat > ./kustomization.yaml << EOF
secretGenerator:
- name: mysql-pass
literals:
- password=gkebackup2022
EOF
# download manifests
curl -LO https://k8s.io/examples/application/wordpress/mysql-deployment.yaml
curl -LO https://k8s.io/examples/application/wordpress/wordpress-deployment.yaml
# update Kustomize file (note >> which appends original file)
cat >> ./kustomization.yaml << EOF
resources:
- mysql-deployment.yaml
- wordpress-deployment.yaml
EOF
# deploy (using built-in kustomize feature of kubectl)
kubectl apply -k ./
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment