Closed TylerLeonhardt closed 5 years ago
Not quite sure where I went wrong in my yaml:
ConvertFrom-KubeYaml : (Line: 1, Col: 1, Idx: 0) - (Line: 1, Col: 17, Idx: 16): Exception during deserialization At line:1 char:1 + ConvertFrom-KubeYaml ./deployment.yml + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [ConvertFrom-KubeYaml], YamlException + FullyQualifiedErrorId : YamlDotNet.Core.YamlException,Kubectl.Cmdlets.ConvertFromKubeYamlCmdlet ConvertFrom-KubeYaml : (Line: 1, Col: 1, Idx: 0) - (Line: 1, Col: 14, Idx: 13): Exception during deserialization At line:1 char:1 + ConvertFrom-KubeYaml ./service.yml + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [ConvertFrom-KubeYaml], YamlException + FullyQualifiedErrorId : YamlDotNet.Core.YamlException,Kubectl.Cmdlets.ConvertFromKubeYamlCmdlet
deployment.yml
apiVersion: apps/v1 kind: Deployment metadata: name: ud-helloworld-deployment labels: app: ud-helloworld spec: replicas: 1 selector: matchLabels: app: ud-helloworld template: metadata: labels: app: ud-helloworld spec: containers: - name: ud-helloworld image: tylerl0706/ud-helloworld:latest resources: limits: memory: 123Mi cpu: 100m ports: - containerPort: 10001
service.yml
apiVersion: v1 kind: Service metadata: name: ud-helloworld-service spec: selector: app: ud-helloworld ports: - name: http protocol: TCP port: 80 targetPort: 10001 nodePort: 30000 type: NodePort
Do I have something wrong?
Cannot reproduce with the latest version, I guess it was fixed with https://github.com/felixfbecker/PSKubectl/commit/1dba924ef64b48f27fe1ace607481d7b00618b49. Let me know if it still happens!
Not quite sure where I went wrong in my yaml:
deployment.yml
service.yml
Do I have something wrong?