Skip to content

Instantly share code, notes, and snippets.

@zulhfreelancer
zulhfreelancer / kubectl-apply-stdin.md
Last active October 9, 2024 22:06
How to run "kubectl apply -f" with inline YAML as stdin?
$ kubectl apply -f - <<EOF
<-- insert YAML content here -->
EOF

OR

$ cat file.yaml | kubectl apply -f -