Created
October 4, 2018 06:27
-
-
Save gavinzhou/88f54e052ab5b6b8902bab18de2e603e to your computer and use it in GitHub Desktop.
This file contains hidden or 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 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