在学习持续集成开发时,镜像打包报错:yaml: line 18: did not find expected key 看了一下并不是什么key的问题,真正的原因是空格不对 tags: - latest dockerfile: Dockerfile 这是改错之前的,网上百度了一下,有人说是空格的问题,我就返回来看自己的,发现dockerfile多空了两个格,实际上dockerfile和tags是同一级...
K8s 报错“error converting YAML to JSON: yaml: line 8: did not find expected key” 今天在创建kubernetes dashboard的登录用户授权指定名称空间执行yaml文件报错 # kubectl apply -f dev-user.yaml serviceaccount/dev-user unchanged role.rbac.authorization.k8s.io/role-dev-user unchanged rolebinding.rbac....
总结来说,处理“invalid yaml: did not find expected '-' indicator”错误的关键是仔细检查YAML文件中的列表项,确保每个列表项前都有正确的'-'指示符。如果可能,使用YAML解析工具或库来辅助检查和修正错误。
What is the expected behavior? No response What do you see instead? Error: YAML parse error on apisix/templates/control-plane/ingress.yaml: error converting YAML to JSON: yaml: line 23: did not find expected key Use --debug flag to render out invalid YAML ...
36.697501131Z caller=klog.go:116component=k8s_client_runtime func=ErrorDepth msg="Sync \"monitoring/main\" failed: provision alertmanager configuration: base config from Secret could not be parsed: yaml: line 24: did not find expected '-' indicator"level=info ts=2024-03-28T08:30:57.181360295...
/var/lib/spork/.rvm/rubies/ruby-2.3.1/lib/ruby/2.3.0/psych.rb:377:in`parse': (<unknown>): did not find expected comment or line break while scanning a block scalar at line 5 column 6 (Psych::SyntaxError) from /var/lib/spork/.rvm/rubies/ruby-2.3.1/lib/ruby/...
error converting YAML to JSON: yaml: line 34: did not find expected key YAML file: apiVersion: apps/v1 kind: Deployment metadata: name: nginx labels: app: nginx spec: replicas: 2 selector: matchLabels: app: nginx spec: volumes: - name: nginx-config configMap: name: ngi...
[root@k8sm1 opt]# helm install consul hashicorp/consul -f config.yaml Error: YAML parse error on consul/templates/server-statefulset.yaml: error converting YAML to JSON: yaml: line 42: did not find expected '-' indicato config.yaml global: image: 'consul:1.5.0' domain: consul datacenter...
So, check that you don’t have any spaces in front of “–name:” at any point in your .yml file, as that could be one of the solutions for why the “Did not find expected ‘-‘ indicator while parsing a block collection” error was thrown. Import...
# foreman-rake console --trace rake aborted! Psych::SyntaxError: (<unknown>): did not find expected key while parsing a block mapping at line 37 column 2 /usr/share/ruby/psych.rb:456:in `parse' /usr/share/ruby/psych.rb:456:in `parse_stream' /usr/share/ruby/psych.rb:390:in `parse...