Skip to content
This repository has been 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

Open
waeleethecoolboy111 opened this issue Jun 18, 2020 · 1 comment

Comments

@waeleethecoolboy111
Copy link

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

@lucab
Copy link
Contributor

lucab commented Jun 18, 2020

This is a generic Kubernetes issue completely unrelated to this repository, possibly due to a malformed manifest. Closing this report and locking it to prevent attracting more unrelated followups.

@coreos coreos locked as off-topic and limited conversation to collaborators Jun 18, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants