Created
December 30, 2018 19:29
-
-
Save puffybsd/ce671a9c496a8acad48236a5efecbd27 to your computer and use it in GitHub Desktop.
Hack to update a kubernetes secret so that kubectl doesn't complain about missing apiVersion and kind
This file contains 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
cat <(printf 'apiVersion: v1\nkind: Secret\n') \ | |
<(kubectl create secret generic apikey --from-literal=TOKEN=mys3cr3t -o yaml --dry-run) \ | |
| kubectl apply -f - |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment