Last active
June 18, 2020 16:24
-
-
Save shudipta/fa2da6632bb47947399c1c02d7437265 to your computer and use it in GitHub Desktop.
`kubectl` hacks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# create k8s resource without reading from file | |
$ cat - <<-EOF | kubectl apply -f - | |
apiVersion: v1 | |
kind: Secret | |
metadata: | |
name: dummy-secret | |
type: Opaque | |
data: | |
API_KEY: bWVnYV9zZWNyZXRfa2V5 | |
API_SECRET: cmVhbGx5X3NlY3JldF92YWx1ZTE= | |
EOF | |
secret/dummy-secret created | |
# coming ... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
kubectl
Hackscreate k8s resource without reading from file
coming more ...