Created
December 4, 2019 09:24
-
-
Save rayrutjes/d3ca424a6f8f555ed54abaddbcdfd6ed to your computer and use it in GitHub Desktop.
Base64 encode file as Kubernetes secret properly dealing with line breaks
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
echo -n "$(cat private.key)" | base64 | tr -d '\n' | pbcopy |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment