@here Team, can any one please help me in fixing this yaml file cloud_user@b4c . . .

Srikanth:
@here Team, can any one please help me in fixing this yaml file

cloud_user@b4c241def41c:~ kubectl create -f replicaset-definition.yml error: error validating "replicaset-definition.yml": error validating data: [ValidationError(ReplicaSet): unknown field "replicas" in io.k8s.api.apps.v1.ReplicaSet, ValidationError(ReplicaSet): unknown field "selector" in io.k8s.api.apps.v1.ReplicaSet, ValidationError(ReplicaSet.spec): missing required field "selector" in io.k8s.api.apps.v1.ReplicaSetSpec]; if you choose to ignore these errors, turn validation off with --validate=false cloud_user@b4c241def41c:~ cat replicaset-definition.yml
apiVersion: apps/v1
kind: ReplicaSet
metadata:
name: myapp-replicaset
labels:
app: myapp
type: front-end
spec:
template:
metadata:
name: myapp-pod
labels:
app: myapp
type: front-end
spec:
containers:
- name: nginx-container
image: nginx
replicas: 3
selector:
matchLables:
type: front-end

abx abx:
try this one, @Balagopalv is correct you have spacing issues.

apiVersion: apps/v1
kind: ReplicaSet
metadata:
name: myapp-replicaset
labels:
app: myapp
type: front-end
spec:
replicas: 3
selector:
matchLabels:
type: front-end
template:
metadata:
name: myapp
labels:
app: myapp
type: front-end
spec:
containers:
- name: nginx-container
image: nginx

Srikanth:
Thank you so much I was able to fix it