Skip to content

Instantly share code, notes, and snippets.

@gianrubio
Last active February 27, 2018 09:45
Show Gist options
  • Save gianrubio/70be0fcf79f43eac9e45249c2c46c165 to your computer and use it in GitHub Desktop.
Save gianrubio/70be0fcf79f43eac9e45249c2c46c165 to your computer and use it in GitHub Desktop.
kubernetes api using curl
ETCD_HOST=my-etcd-hostnam
curl https://kubernetes.default.svc.cluster.local/apis --key worker-key.pem --cert worker.pem --cacert ca.pem --cert-type PEM
curl https://$ETCD_HOST:2379 --key etcd-client-key.pem --cert etcd-client.pem --cacert ca.pem
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment