From a93f0c5d578b1289fcf33b5ba057b0259e746849 Mon Sep 17 00:00:00 2001 From: faisaliqkhan <70859161+faisaliqkhan@users.noreply.github.com> Date: Tue, 13 Oct 2020 23:06:40 +0400 Subject: [PATCH] Update auth.yaml MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit There was an error when I was doing a lab based on this file in Qwikilabs. The error was : error: unable to recognise “deployments/auth.yank”. no matches for kind “Deployment” in version “extensions/v1beta” So I made changed in the apiVersion line and then added 3 lines in the sec: after replicas 1 aiming at the proper selector. --- kubernetes/deployments/auth.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/kubernetes/deployments/auth.yaml b/kubernetes/deployments/auth.yaml index 0b83cec..98c8df2 100644 --- a/kubernetes/deployments/auth.yaml +++ b/kubernetes/deployments/auth.yaml @@ -1,9 +1,12 @@ -apiVersion: extensions/v1beta1 +apiVersion: apps/v1 kind: Deployment metadata: name: auth spec: replicas: 1 + selector: + matchLabels: + app: auth template: metadata: labels: