Skip to content

Instantly share code, notes, and snippets.

@gavinzhou
Created October 4, 2018 06:27
Show Gist options
  • Save gavinzhou/88f54e052ab5b6b8902bab18de2e603e to your computer and use it in GitHub Desktop.
Save gavinzhou/88f54e052ab5b6b8902bab18de2e603e to your computer and use it in GitHub Desktop.
$ cat pod.yaml
apiVersion: v1
kind: Pod
metadata:
name: webserver
spec:
containers:
- name: nginx
image: tomaskral/nonroot-nginx
ports:
- containerPort: 80
$ kubectl create -f pod.yaml
$ etcdctl ls /
/kubernetes.io
/openshift.io
$ etcdctl get /kubernetes.io/pods/apiserver-sandbox/webserver
{
"kind": "Pod",
"apiVersion": "v1",
"metadata": {
"name": "webserver",
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment