Skip to content

Instantly share code, notes, and snippets.

@arslanm
Created July 21, 2017 17:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save arslanm/8edbf82da0d7de0f41ebe80f109076c6 to your computer and use it in GitHub Desktop.
Save arslanm/8edbf82da0d7de0f41ebe80f109076c6 to your computer and use it in GitHub Desktop.
Create Secret object for filebeat as DaemonSet
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