-
-
Save krotkiewicz/c1f53ec12720a39e490e9b649bdb66dd to your computer and use it in GitHub Desktop.
This file contains 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
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 | |
This file contains 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
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