# I have the following yaml file , errrors want to ignore.. error= error converting YAML to JSON: yaml: line 17: did not find expected '-' indicator

**URL:** <https://discuss.kubernetes.io/t/i-have-the-following-yaml-file-errrors-want-to-ignore-error-error-converting-yaml-to-json-yaml-line-17-did-not-find-expected-indicator/22961>\
**Category:** General Discussions\
**Created:** [February 4, 2023, 10:35am UTC](https://discuss.kubernetes.io/t/i-have-the-following-yaml-file-errrors-want-to-ignore-error-error-converting-yaml-to-json-yaml-line-17-did-not-find-expected-indicator/22961 "2023-02-04T10:35:33Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Trusha\_Mehta](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.kubernetes.io/trusha_mehta/32/11770_2.png) [@Trusha\_Mehta](https://discuss.kubernetes.io/u/Trusha_Mehta)\
**Post date:** [February 4, 2023, 10:35am UTC](https://discuss.kubernetes.io/t/i-have-the-following-yaml-file-errrors-want-to-ignore-error-error-converting-yaml-to-json-yaml-line-17-did-not-find-expected-indicator/22961/1 "2023-02-04T10:35:33Z")

</div>

## apiVersion: v1 kind: PersistentVolumeClaim metadata: creationTimestamp: null labels: [app.kubernetes.io](http://app.kubernetes.io): pgadmin name: pgadmin spec: accessModes: - ReadWriteOnce resources: requests: storage: 100Mi

## apiVersion: v1 kind: Service metadata: creationTimestamp: null labels: [app.kubernetes.io](http://app.kubernetes.io): pgadmin name: pgadmin spec: ports: - name: “5050” port: 5050 targetPort: 80 selector: [app.kubernetes.io](http://app.kubernetes.io): pgadmin status: loadBalancer: {}

apiVersion: apps/v1  
kind: Deployment  
metadata:  
name: pgadmin  
creationTimestamp: null  
spec:  
selector:  
matchLabels:  
[app.kubernetes.io](http://app.kubernetes.io): pgadmin  
replicas: 1  
template:  
metadata:  
labels:  
[app.kubernetes.io](http://app.kubernetes.io): pgadmin  
spec:  
containers:  
- name: pgadmin  
image: dpage/pgadmin4  
ports:  
- containerPort: 80  
livenessProbe:  
httpGet:  
path: /healthcheck  
port: 5050:80  
volumeMounts:  
- mountPath: /var/lib/pgadmin  
name: pgadmin  
restartPolicy: Always  
volumes:  
- name: pgadmin  
persistentVolumeClaim:  
claimName: pgadmin  
initialDelaySeconds: 30  
timeoutSeconds: 1  
status: {}

---

<div class="post-metadata">

**Author:** ![felixdpg](https://avatars.discourse-cdn.com/v4/letter/f/91b2a8/32.png) [@felixdpg](https://discuss.kubernetes.io/u/felixdpg)\
**Post date:** [February 28, 2023, 3:33pm UTC](https://discuss.kubernetes.io/t/i-have-the-following-yaml-file-errrors-want-to-ignore-error-error-converting-yaml-to-json-yaml-line-17-did-not-find-expected-indicator/22961/2 "2023-02-28T15:33:49Z")

</div>

You need to format the yaml in the right way. Search over internet, there are so many yamls formatters online.
