Skip to content

Instantly share code, notes, and snippets.

@waleedsamy
Last active September 9, 2016 07:35
Show Gist options
  • Save waleedsamy/35cb02415d4ab76131b599a41360fd55 to your computer and use it in GitHub Desktop.
Save waleedsamy/35cb02415d4ab76131b599a41360fd55 to your computer and use it in GitHub Desktop.
Kubernetes Cluster TLS using OpenSSL
FROM centurylink/openssl
apk add --update curl bash vim tree
echo "PS1='\w\$ '" >> ~/.bashrc && \
source ~/.bashrc && cd
curl https://raw.githubusercontent.com/coreos/coreos-kubernetes/master/lib/init-ssl-ca > ~/init-ssl-ca && \
chmod +x ~/init-ssl-ca
curl https://raw.githubusercontent.com/coreos/coreos-kubernetes/master/lib/init-ssl > ~/init-ssl && \
chmod +x ~/init-ssl
mkdir -p ~/ssl && \
~/init-ssl-ca ~/ssl && \
~/init-ssl ~/ssl admin kube-admin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment