postgres-statefulset icon indicating copy to clipboard operation
postgres-statefulset copied to clipboard

Use Kustomize to simplify config and secret management

Open djjudas21 opened this issue 6 years ago • 2 comments

Use Kustomize to simplify config and secret management by using configMapGenerator and secretGenerator resources, and shell scripts. Support for Kustomize is native in kubectl.

As a bonus you can also deploy this whole example with one command. Ordering and waiting for other resources is not necessary, as this is automatic.

kubectl apply -k .

djjudas21 avatar Feb 17 '20 15:02 djjudas21

This is pretty cool, just going to review when Kustomize was added into kubectl, I don't necessarily want people not able to use this if they are on an older version of Kubernetes.

arianitu avatar Feb 20 '20 16:02 arianitu

As far as I can tell, Kustomize was integrated into kubectl since 1.14. Before that, they can still use standalone Kustomize :smiley:

djjudas21 avatar Feb 20 '20 16:02 djjudas21