user1817604
user1817604

Reputation: 1

error parsing k8s-geneva-redis-no-secty.yml: error converting YAML to JSON: yaml: line 92: mapping values are not allowed in this context

Tried to install edgexfoundry installation on microk8s, using below command

microk8s.kubectl apply -f k8s-geneva-redis-no-secty.yml

Getting error: error parsing k8s-geneva-redis-no-secty.yml: error converting YAML to JSON: yaml: line 92: mapping values are not allowed in this context

But the same file used on kubernetis using below command kubectl apply -f k8s-geneva-redis-no-secty.yml, it worked and all the pods were running.

Ref URL:- https://github.com/edgexfoundry/edgex-examples/tree/master/deployment/kubernetes

Any help is highly appreciated.

Upvotes: 0

Views: 95

Answers (1)

user1817604
user1817604

Reputation: 1

Its working after formatting the .yml file.

Error code:

  • apiVersion: v1 kind: Service metadata: name: edgex-core-consul spec: type: NodePort selector: app: edgex-core-consul ports: - name: tcp-8500 port: 8500 protocol: TCP targetPort: 8500 nodePort: 30850 - name: tcp-8400 port: 8400 protocol: TCP targetPort: 8400 nodePort: 30840

Updated code:

  • apiVersion: v1 kind: Service metadata: name: edgex-core-consul spec: type: NodePort selector: app: edgex-core-consul ports: - name: tcp-8500 port: 8500 protocol: TCP targetPort: 8500 nodePort: 30850 - name: tcp-8400 port: 8400 protocol: TCP targetPort: 8400 nodePort: 30840

Upvotes: -1

Related Questions