Skip to content
This repository was archived by the owner on Sep 18, 2020. It is now read-only.
This repository was archived by the owner on Sep 18, 2020. It is now read-only.

I am getting error while using command (kubectl create -f rs.yaml) ReplicaSet #198

@waeleethecoolboy111

Description

@waeleethecoolboy111

And this is my error:

waleed@waleed-Ubuntu:~/Desktop/Kubernetes$ kubectl create -f rs.yaml
error: error parsing rs.yaml: error converting YAML to JSON: yaml: line 7: mapping values are not allowed in this context

and this is my coding in the file

kind: ReplicaSet
apiVersion: apps/v1beta2
metadata:
name: myrs
spec:
replicas:5
selector:
matchlabels:
app: rsexample
template:
metadata:
labels
app:
spec:
container:
- name
image: aamirpinger/helloworld:latest
ports:
- containerPort: 80

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions