Hi .. can some one help me with the following question, create a nginx pod with . . .

Sri Vijaya Vani Kamisetty:
Hi … can some one help me with the following question, create a nginx pod with tag 4

Jimmy Bonilla:
apiVersion: v1
kind: Pod
metadata:
name: pod-name
namespace: default
labels:
app: webserver
env: dev
tier: any
anykey: anyvalue
spec:
containers:
- name: nginx-container
image: nginx:latest
ports:
- containerPort: 80

Tej_Singh_Rana:
Hello, @Jimmy Bonilla
I don’t think so you can add in label section.

Tej_Singh_Rana:
https://kodekloudworkspace.slack.com/archives/CN927NH1Q/p1612929185030100?thread_ts=1612917017.030000&cid=CN927NH1Q

Mohamed Ayman:
Using imperative command:

kubectl run nginx --image=nginx:4

Mohamed Ayman:
But there’s no nginx image with tag 4
image.png