Created
July 21, 2017 17:48
-
-
Save arslanm/8edbf82da0d7de0f41ebe80f109076c6 to your computer and use it in GitHub Desktop.
Create Secret object for filebeat as DaemonSet
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 <<EOF | kubectl create -f - | |
apiVersion: v1 | |
kind: Secret | |
metadata: | |
name: filebeatssl | |
namespace: kube-system | |
type: Opaque | |
data: | |
cacert: $(cat cacert.crt | base64 | tr -d '\n') | |
cert: $(cat client.crt | base64 | tr -d '\n') | |
key: $(cat client.key | base64 | tr -d '\n') | |
EOF |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment