How do I actually get the output of kubectl kustomize into my cluster?

Viewed 1829

I have a very simple kustomization.yaml:

configMapGenerator:
  - name: icecast-conifg
    files:
      - icecast.xml

When I run kubectl kustomize . it spits out a generated configMap properly, but how do I actually load it into my cluster? I'm missing some fundamental step.

2 Answers

You could do for example

kubectl kustomize . | kubectl apply -f -
Related