diff --git a/consul/config_templates/bookinfo.yaml b/consul/config_templates/bookinfo.yaml index 52a95f7..2550333 100644 --- a/consul/config_templates/bookinfo.yaml +++ b/consul/config_templates/bookinfo.yaml @@ -12,7 +12,7 @@ spec: selector: app: details --- -apiVersion: extensions/v1beta1 +apiVersion: apps/v1 kind: Deployment metadata: name: details-v1 @@ -21,6 +21,9 @@ metadata: version: v1 spec: replicas: 1 + selector: + matchLabels: + app: details template: metadata: labels: @@ -53,7 +56,7 @@ spec: selector: app: ratings --- -apiVersion: extensions/v1beta1 +apiVersion: apps/v1 kind: Deployment metadata: name: ratings-v1 @@ -62,6 +65,9 @@ metadata: version: v1 spec: replicas: 1 + selector: + matchLabels: + app: ratings template: metadata: labels: @@ -94,7 +100,7 @@ spec: selector: app: reviews --- -apiVersion: extensions/v1beta1 +apiVersion: apps/v1 kind: Deployment metadata: name: reviews-v1 @@ -103,6 +109,9 @@ metadata: version: v1 spec: replicas: 1 + selector: + matchLabels: + app: reviews template: metadata: labels: @@ -118,7 +127,7 @@ spec: ports: - containerPort: 9080 --- -apiVersion: extensions/v1beta1 +apiVersion: apps/v1 kind: Deployment metadata: name: reviews-v2 @@ -127,6 +136,9 @@ metadata: version: v2 spec: replicas: 1 + selector: + matchLabels: + app: reviews template: metadata: labels: @@ -143,7 +155,7 @@ spec: ports: - containerPort: 9080 --- -apiVersion: extensions/v1beta1 +apiVersion: apps/v1 kind: Deployment metadata: name: reviews-v3 @@ -152,6 +164,9 @@ metadata: version: v3 spec: replicas: 1 + selector: + matchLabels: + app: reviews template: metadata: labels: @@ -186,7 +201,7 @@ spec: selector: app: productpage --- -apiVersion: extensions/v1beta1 +apiVersion: apps/v1 kind: Deployment metadata: name: productpage-v1 @@ -195,6 +210,9 @@ metadata: version: v1 spec: replicas: 1 + selector: + matchLabels: + app: productpage template: metadata: labels: