From e7783c438d3896c28ba352bd0ad3cdd2dd42f85c Mon Sep 17 00:00:00 2001 From: Edgar Domingues Date: Mon, 13 Apr 2020 17:11:48 +0100 Subject: [PATCH] Update yaml deployments to Kubernetes v1.18.0 --- private-cloud.yaml | 10 ++++++++-- public-cloud.yaml | 10 ++++++++-- 2 files changed, 16 insertions(+), 4 deletions(-) diff --git a/private-cloud.yaml b/private-cloud.yaml index 8bdf7e7..ce49aaa 100644 --- a/private-cloud.yaml +++ b/private-cloud.yaml @@ -15,7 +15,7 @@ spec: selector: app: details --- -apiVersion: extensions/v1beta1 +apiVersion: apps/v1 kind: Deployment metadata: name: details-v1 @@ -24,6 +24,9 @@ metadata: version: v1 spec: replicas: 1 + selector: + matchLabels: + app: details template: metadata: annotations: @@ -56,7 +59,7 @@ spec: selector: app: reviews --- -apiVersion: extensions/v1beta1 +apiVersion: apps/v1 kind: Deployment metadata: name: reviews-v3 @@ -65,6 +68,9 @@ metadata: version: v3 spec: replicas: 1 + selector: + matchLabels: + app: reviews template: metadata: labels: diff --git a/public-cloud.yaml b/public-cloud.yaml index 91cfdb8..52313e1 100644 --- a/public-cloud.yaml +++ b/public-cloud.yaml @@ -16,7 +16,7 @@ spec: app: productpage type: LoadBalancer --- -apiVersion: extensions/v1beta1 +apiVersion: apps/v1 kind: Deployment metadata: name: productpage-v1 @@ -25,6 +25,9 @@ metadata: version: v1 spec: replicas: 1 + selector: + matchLabels: + app: productpage template: metadata: labels: @@ -55,7 +58,7 @@ spec: selector: app: ratings --- -apiVersion: extensions/v1beta1 +apiVersion: apps/v1 kind: Deployment metadata: name: ratings-v1 @@ -64,6 +67,9 @@ metadata: version: v1 spec: replicas: 1 + selector: + matchLabels: + app: ratings template: metadata: labels: