From e8ea376a893ce5ed59683a1d6261bd74e42e2fd1 Mon Sep 17 00:00:00 2001 From: faisaliqkhan <70859161+faisaliqkhan@users.noreply.github.com> Date: Mon, 12 Oct 2020 16:38:01 +0400 Subject: [PATCH] Update frontend.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/frontend.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/kubernetes/deployments/frontend.yaml b/kubernetes/deployments/frontend.yaml index c319306..0efb516 100644 --- a/kubernetes/deployments/frontend.yaml +++ b/kubernetes/deployments/frontend.yaml @@ -1,9 +1,12 @@ -apiVersion: extensions/v1beta1 +apiVersion: apps/v1 kind: Deployment metadata: name: frontend spec: replicas: 1 + selector: + matchLabels: + app: frontend template: metadata: labels: