diff --git a/deployment/kubernetes/cdc-service/ftgo-cdc-service.yml b/deployment/kubernetes/cdc-service/ftgo-cdc-service.yml index 449edef3..7e95dfc5 100644 --- a/deployment/kubernetes/cdc-service/ftgo-cdc-service.yml +++ b/deployment/kubernetes/cdc-service/ftgo-cdc-service.yml @@ -9,7 +9,7 @@ spec: selector: svc: ftgo-cdc-service --- -apiVersion: extensions/v1beta1 +apiVersion: apps/v1 kind: Deployment metadata: name: ftgo-cdc-service @@ -118,4 +118,7 @@ spec: port: 8080 initialDelaySeconds: 60 periodSeconds: 20 + selector: + matchLabels: + svc: ftgo-cdc-service --- diff --git a/deployment/kubernetes/scripts/kubernetes-deploy-all.sh b/deployment/kubernetes/scripts/kubernetes-deploy-all.sh index 790cef24..de254c37 100755 --- a/deployment/kubernetes/scripts/kubernetes-deploy-all.sh +++ b/deployment/kubernetes/scripts/kubernetes-deploy-all.sh @@ -4,6 +4,6 @@ kubectl apply -f <(cat deployment/kubernetes/stateful-services/*.yml) ./deployment/kubernetes/scripts/kubernetes-wait-for-ready-pods.sh ftgo-mysql-0 ftgo-kafka-0 ftgo-dynamodb-local-0 ftgo-zookeeper-0 -kubectl apply -f <(cat deployment/kubernetes/cdc-services/*.yml) +kubectl apply -f <(cat deployment/kubernetes/cdc-service/*.yml) kubectl apply -f <(cat */src/deployment/kubernetes/*.yml) diff --git a/deployment/kubernetes/stateful-services/ftgo-dynamodb-local.yml b/deployment/kubernetes/stateful-services/ftgo-dynamodb-local.yml index 7413bee3..12aaa7e2 100644 --- a/deployment/kubernetes/stateful-services/ftgo-dynamodb-local.yml +++ b/deployment/kubernetes/stateful-services/ftgo-dynamodb-local.yml @@ -9,7 +9,7 @@ spec: selector: svc: ftgo-dynamodb-local --- -apiVersion: apps/v1beta1 +apiVersion: apps/v1 kind: StatefulSet metadata: name: ftgo-dynamodb-local @@ -47,6 +47,9 @@ spec: resources: requests: storage: 1Gi + selector: + matchLabels: + svc: ftgo-dynamodb-local --- apiVersion: batch/v1 kind: Job diff --git a/deployment/kubernetes/stateful-services/ftgo-kafka-deployment.yml b/deployment/kubernetes/stateful-services/ftgo-kafka-deployment.yml index 0190b53e..3681d034 100644 --- a/deployment/kubernetes/stateful-services/ftgo-kafka-deployment.yml +++ b/deployment/kubernetes/stateful-services/ftgo-kafka-deployment.yml @@ -11,7 +11,7 @@ spec: selector: role: ftgo-kafka --- -apiVersion: apps/v1beta1 +apiVersion: apps/v1 kind: StatefulSet metadata: name: ftgo-kafka @@ -47,4 +47,7 @@ spec: resources: requests: storage: 1Gi + selector: + matchLabels: + role: ftgo-kafka --- diff --git a/deployment/kubernetes/stateful-services/ftgo-mysql-deployment.yml b/deployment/kubernetes/stateful-services/ftgo-mysql-deployment.yml index 73b98479..679c0fcf 100644 --- a/deployment/kubernetes/stateful-services/ftgo-mysql-deployment.yml +++ b/deployment/kubernetes/stateful-services/ftgo-mysql-deployment.yml @@ -12,7 +12,7 @@ spec: selector: role: ftgo-mysql --- -apiVersion: apps/v1beta1 +apiVersion: apps/v1 kind: StatefulSet metadata: name: ftgo-mysql @@ -51,4 +51,7 @@ spec: resources: requests: storage: 1Gi + selector: + matchLabels: + role: ftgo-mysql --- diff --git a/deployment/kubernetes/stateful-services/ftgo-zookeeper-deployment.yml b/deployment/kubernetes/stateful-services/ftgo-zookeeper-deployment.yml index 4bfadd5d..5b5f9bd2 100644 --- a/deployment/kubernetes/stateful-services/ftgo-zookeeper-deployment.yml +++ b/deployment/kubernetes/stateful-services/ftgo-zookeeper-deployment.yml @@ -12,7 +12,7 @@ spec: selector: role: ftgo-zookeeper --- -apiVersion: apps/v1beta1 +apiVersion: apps/v1 kind: StatefulSet metadata: name: ftgo-zookeeper @@ -44,4 +44,7 @@ spec: resources: requests: storage: 1Gi + selector: + matchLabels: + role: ftgo-zookeeper --- diff --git a/ftgo-accounting-service/src/deployment/kubernetes/ftgo-accounting-service.yml b/ftgo-accounting-service/src/deployment/kubernetes/ftgo-accounting-service.yml index 4076b11a..833176d8 100644 --- a/ftgo-accounting-service/src/deployment/kubernetes/ftgo-accounting-service.yml +++ b/ftgo-accounting-service/src/deployment/kubernetes/ftgo-accounting-service.yml @@ -9,7 +9,7 @@ spec: selector: svc: ftgo-accounting-service --- -apiVersion: extensions/v1beta1 +apiVersion: apps/v1 kind: Deployment metadata: name: ftgo-accounting-service @@ -66,4 +66,8 @@ spec: port: 8080 initialDelaySeconds: 60 periodSeconds: 20 + selector: + matchLabels: + svc: ftgo-accounting-service + application: ftgo --- diff --git a/ftgo-api-gateway/src/deployment/kubernetes/ftgo-api-gateway.yml b/ftgo-api-gateway/src/deployment/kubernetes/ftgo-api-gateway.yml index da9a31c7..ae527be3 100644 --- a/ftgo-api-gateway/src/deployment/kubernetes/ftgo-api-gateway.yml +++ b/ftgo-api-gateway/src/deployment/kubernetes/ftgo-api-gateway.yml @@ -16,7 +16,7 @@ spec: # loadBalancerSourceRanges: # - 88.128.82.195/32 --- -apiVersion: extensions/v1beta1 +apiVersion: apps/v1 kind: Deployment metadata: name: ftgo-api-gateway @@ -61,5 +61,9 @@ spec: port: 8080 initialDelaySeconds: 30 periodSeconds: 20 + selector: + matchLabels: + svc: ftgo-api-gateway + application: ftgo --- diff --git a/ftgo-consumer-service/src/deployment/kubernetes/ftgo-consumer-service.yml b/ftgo-consumer-service/src/deployment/kubernetes/ftgo-consumer-service.yml index 28a7e8a4..cfbd90c4 100644 --- a/ftgo-consumer-service/src/deployment/kubernetes/ftgo-consumer-service.yml +++ b/ftgo-consumer-service/src/deployment/kubernetes/ftgo-consumer-service.yml @@ -9,7 +9,7 @@ spec: selector: svc: ftgo-consumer-service --- -apiVersion: extensions/v1beta1 +apiVersion: apps/v1 kind: Deployment metadata: name: ftgo-consumer-service @@ -62,4 +62,8 @@ spec: port: 8080 initialDelaySeconds: 60 periodSeconds: 20 + selector: + matchLabels: + svc: ftgo-consumer-service + application: ftgo --- diff --git a/ftgo-kitchen-service/src/deployment/kubernetes/ftgo-kitchen-service.yml b/ftgo-kitchen-service/src/deployment/kubernetes/ftgo-kitchen-service.yml index 341e6f8f..973b1335 100644 --- a/ftgo-kitchen-service/src/deployment/kubernetes/ftgo-kitchen-service.yml +++ b/ftgo-kitchen-service/src/deployment/kubernetes/ftgo-kitchen-service.yml @@ -9,7 +9,7 @@ spec: selector: svc: ftgo-kitchen-service --- -apiVersion: extensions/v1beta1 +apiVersion: apps/v1 kind: Deployment metadata: name: ftgo-kitchen-service @@ -66,4 +66,8 @@ spec: port: 8080 initialDelaySeconds: 60 periodSeconds: 20 + selector: + matchLabels: + svc: ftgo-kitchen-service + application: ftgo --- diff --git a/ftgo-order-history-service/src/deployment/kubernetes/ftgo-order-history-service.yml b/ftgo-order-history-service/src/deployment/kubernetes/ftgo-order-history-service.yml index c77fe573..7c16f865 100644 --- a/ftgo-order-history-service/src/deployment/kubernetes/ftgo-order-history-service.yml +++ b/ftgo-order-history-service/src/deployment/kubernetes/ftgo-order-history-service.yml @@ -9,7 +9,7 @@ spec: selector: svc: ftgo-order-history-service --- -apiVersion: extensions/v1beta1 +apiVersion: apps/v1 kind: Deployment metadata: name: ftgo-order-history-service @@ -74,4 +74,8 @@ spec: port: 8080 initialDelaySeconds: 30 periodSeconds: 20 + selector: + matchLabels: + svc: ftgo-order-history-service + application: ftgo --- diff --git a/ftgo-order-service/src/deployment/kubernetes/ftgo-order-service.yml b/ftgo-order-service/src/deployment/kubernetes/ftgo-order-service.yml index 1258554b..e6629f51 100644 --- a/ftgo-order-service/src/deployment/kubernetes/ftgo-order-service.yml +++ b/ftgo-order-service/src/deployment/kubernetes/ftgo-order-service.yml @@ -17,7 +17,7 @@ spec: selector: svc: ftgo-order-service --- -apiVersion: extensions/v1beta1 +apiVersion: apps/v1 kind: Deployment metadata: name: ftgo-order-service @@ -74,4 +74,8 @@ spec: port: 8080 initialDelaySeconds: 60 periodSeconds: 20 + selector: + matchLabels: + svc: ftgo-order-service + application: ftgo --- diff --git a/ftgo-restaurant-service/src/deployment/kubernetes/ftgo-restaurant-service.yml b/ftgo-restaurant-service/src/deployment/kubernetes/ftgo-restaurant-service.yml index bf251277..7f6f20bc 100644 --- a/ftgo-restaurant-service/src/deployment/kubernetes/ftgo-restaurant-service.yml +++ b/ftgo-restaurant-service/src/deployment/kubernetes/ftgo-restaurant-service.yml @@ -9,7 +9,7 @@ spec: selector: svc: ftgo-restaurant-service --- -apiVersion: extensions/v1beta1 +apiVersion: apps/v1 kind: Deployment metadata: name: ftgo-restaurant-service @@ -67,4 +67,8 @@ spec: port: 8080 initialDelaySeconds: 60 periodSeconds: 20 + selector: + matchLabels: + svc: ftgo-restaurant-service + application: ftgo ---