Skip to content

Instantly share code, notes, and snippets.

@krotkiewicz
Last active October 10, 2017 17:28
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 krotkiewicz/c1f53ec12720a39e490e9b649bdb66dd to your computer and use it in GitHub Desktop.
Save krotkiewicz/c1f53ec12720a39e490e9b649bdb66dd to your computer and use it in GitHub Desktop.
root@node:~# git diff nginx.yaml nginx2.yaml
diff --git a/nginx.yaml b/nginx2.yaml
index 7053af0..36885ae 100644
--- a/nginx.yaml
+++ b/nginx2.yaml
@@ -1,10 +1,11 @@
apiVersion: v1
kind: Pod
metadata:
- name: nginx
+ name: nginx2
labels:
app: nginx
spec:
+ nodeName: node
containers:
- name: nginx
image: nginx
root@node:~$ kubectl create -f nginx2.yaml
root@node:~$ kubectl get pod
NAME READY STATUS RESTARTS AGE
nginx 0/1 Pending 0 10m
nginx2 1/1 Running 0 8s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment