Deploy Nginx Web Server on Kubernetes - failed label app: nginx-app not found

@Inderpreet

can you check why i failed. saying label app: nginx-app is not found

image

here is my script:

apiVersion: apps/v1
kind: Deployment
metadata:
name: nginx-deployment
labels:
app: nginx-app
type: front-end
spec:
selector:
matchLabels:
app: nginx-app
type: front-end
replicas: 3
template:
metadata:
labels:
app: nginx-app
type: front-end
spec:
containers:
- name: nginx-container
image: nginx:latest
ports:
- containerPort: 80

apiVersion: v1
kind: Service
metadata:
name: nginx-service
spec:
type: NodePort
selector:
app: nginx-app
type: front-end
ports:
- protocol: TCP
port: 80
targetPort: 80
nodePort: 30011

thor@jump_host / kubectl get deployment NAME READY UP-TO-DATE AVAILABLE AGE nginx-deployment 3/3 3 3 3m29s thor@jump_host / kubectl get pods
NAME READY STATUS RESTARTS AGE
nginx-deployment-6f69b9b6db-5bf42 1/1 Running 0 3m37s
nginx-deployment-6f69b9b6db-hhppd 1/1 Running 0 3m37s
nginx-deployment-6f69b9b6db-ns6mh 1/1 Running 0 3m37s
thor@jump_host / thor@jump_host / kubectl get deployment
NAME READY UP-TO-DATE AVAILABLE AGE
nginx-deployment 3/3 3 3 4m25s

curl 10.44.0.1:80

Welcome to nginx!

Hello, Jenna
Thanks for reporting. KKE team will look into this.

@Inderpreet @player001

Will KKE team look into this? mark success for me?

thank you -Jenna :pray: :pray: