вівторок, 14 листопада 2023 р.

Kubernetes. Basics. 9. Creating a Pod

 


Creating Pods

Pod manifest file (pod.yaml):

apiVersion: v1
kind: Pod
metadata:
  labels:
    run: pod-label
  name: pod-name
spec:
  containers:
  - image: pod-image
    name: pod-main-container-name

Apply pod manifest:

$ kubectl apply -f pod.yaml

Task:

There’s a file /opt/practice/web-pod.yaml. Investigate and deploy it.

Once it’s done, please answer the questions below

Quiz:

Q1 What is the name of this Pod?

Q2 What is the name of the container in this Pod?

Q3 What is the namespace where this Pod is running?

Немає коментарів:

Дописати коментар