From e974b72d4502824f5f36c75cb60fdfc2b2b816dc Mon Sep 17 00:00:00 2001 From: Dave Strebel Date: Thu, 27 Feb 2020 22:52:11 -0600 Subject: [PATCH] Update Deployment Object API Version Updated the Deployments to use 'apps/v1' the previous API version used in this manifest is removed in Kubernetes 1.16. --- azure-vote-all-in-one-redis.yaml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/azure-vote-all-in-one-redis.yaml b/azure-vote-all-in-one-redis.yaml index a4ed7ff267..80a8edb2ae 100644 --- a/azure-vote-all-in-one-redis.yaml +++ b/azure-vote-all-in-one-redis.yaml @@ -1,9 +1,12 @@ -apiVersion: apps/v1beta1 +apiVersion: apps/v1 kind: Deployment metadata: name: azure-vote-back spec: replicas: 1 + selector: + matchLabels: + app: azure-vote-back template: metadata: labels: @@ -28,12 +31,15 @@ spec: selector: app: azure-vote-back --- -apiVersion: apps/v1beta1 +apiVersion: apps/v1 kind: Deployment metadata: name: azure-vote-front spec: replicas: 1 + selector: + matchLabels: + app: azure-vote-front strategy: rollingUpdate: maxSurge: 1