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: