From 3ac5277f92822c66e1ddbdee41444de3aa97cb72 Mon Sep 17 00:00:00 2001 From: Nills Franssens Date: Wed, 31 Jan 2018 15:27:57 +0100 Subject: [PATCH] Edited YAML for 5-1 kuard pod The indentation for ' spec' wasn't correct and this wouldn't deploy. The indentation in the book itself is correct. I changed it to a working deployment. FYI: this was the error I got with the initial deployment: error: error validating "test-with-space.yaml": error validating data: ValidationError(Pod.metadata): unknown field "spec" in io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta; if you choose to ignore these errors, turn validation off with --validate=false --- 5-1-kuard-pod.yaml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/5-1-kuard-pod.yaml b/5-1-kuard-pod.yaml index c0b7b29..b1dc580 100644 --- a/5-1-kuard-pod.yaml +++ b/5-1-kuard-pod.yaml @@ -2,11 +2,11 @@ apiVersion: v1 kind: Pod metadata: name: kuard - spec: - containers: - - image: gcr.io/kuar-demo/kuard-amd64:1 - name: kuard - ports: - - containerPort: 8080 - name: http - protocol: TCP +spec: + containers: + - image: gcr.io/kuar-demo/kuard-amd64:1 + name: kuard + ports: + - containerPort: 8080 + name: http + protocol: TCP