CKA LAB 35 (Kubernetes Certification): Manually Schedule a pod on a Specific Node

preview_player
Показать описание
CKA LAB: Manually Schedule a Pod on a Specific Node

Pre-req:
Access to a Kubernetes Cluster with at least 2 nodes

LAB REQUIREMENTS:

1. Ensure your have at least 2 nodes in the cluster
2. List the nodes
3. Make a note of the "2nd" node's name
4. Make a YAML file for a httpd (image name) pod that forces the pod to be scheduled on the 2nd node

TIPS:

YAML:
apiVersion: v1
kind: Pod
metadata:
name: foo
spec:
nodeName: gke-cluster-2023-03-07-1-default-pool-fe2b0fe2-4r7n
containers:
- name: nginx
image: nginx:1.14.2
ports:
- containerPort: 80
Рекомендации по теме