For simulated Practice problems visit KillerCoda.
-
Solution
k label node node01 name=master
-
Solution
apiVersion: v1 kind: Pod metadata: creationTimestamp: null labels: run: p1 name: p1 spec: nodeSelector: name: master containers: - image: nginx name: p1 resources: {} dnsPolicy: ClusterFirst restartPolicy: Always status: {}
-
Solution
apiVersion: v1 kind: Pod metadata: creationTimestamp: null labels: run: p2 name: p2 spec: nodeName: node01 containers: - image: nginx name: p2 resources: {} dnsPolicy: ClusterFirst restartPolicy: Always status: {}