Hello Friends, can someone guide me where is my mistake, new to Kubernetes apiV . . .

Samim Shaikh:
Hello Friends,
can someone guide me where is my mistake, new to Kubernetes

apiVersion: apps/V1
kind: Deployment
metadata:
name: httpd-frontend
spec:
replicas: 3
selector:
matchLabels:
name: httpd-frontend
template:
metadata:
labels:
name: httpd-frontend
spec:
containers:
- name: httpd-frontend
image: httpd:2.4-alpine

kubectl create -f .\deployment-httpd.yaml

error: resource mapping not found for name: “httpd-frontend” namespace: “” from “.\deployment-httpd.yaml”: no matches for kind “Deployment” in version “apps/V1”
ensure CRDs are installed first

Mohamed Ayman:
@Samim Shaikh it’s apps/v1 not apps/V1 . just replace V1 with v1"small letter".
Happy learning !

Samim Shaikh:
Thanks a lot @Mohamed Ayman worked for me and will take care of such silly things in future.

PS D:\LAB\Visual Studio Code\YAML\deployment> kubectl create -f .\deployment-httpd.yaml

deployment.apps/httpd-frontend created

Muthu Kumar:
@Samim Shaikh, kubectl explain command will be your best friend here :wink: Anytime you have doubts, you can use this to verify quickly…

controlplane ~ ➜ kubectl explain deploy

KIND:     Deployment
VERSION:  apps/v1

Samim Shaikh:
Thanks Muthu