Skip to content

update k8s yaml version #151

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion deployment/kubernetes/cdc-service/ftgo-cdc-service.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,16 @@ spec:
selector:
svc: ftgo-cdc-service
---
apiVersion: extensions/v1beta1
apiVersion: apps/v1
kind: Deployment
metadata:
name: ftgo-cdc-service
labels:
application: ftgo
spec:
selector:
matchLabels:
svc: ftgo-cdc-service
replicas: 1
strategy:
rollingUpdate:
Expand Down
2 changes: 1 addition & 1 deletion deployment/kubernetes/scripts/kubernetes-deploy-all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,16 @@ spec:
selector:
svc: ftgo-dynamodb-local
---
apiVersion: apps/v1beta1
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: ftgo-dynamodb-local
labels:
application: ftgo
spec:
selector:
matchLabels:
svc: ftgo-dynamodb-local
serviceName: "ftgo-dynamodb"
replicas: 1
template:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,14 @@ spec:
selector:
role: ftgo-kafka
---
apiVersion: apps/v1beta1
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: ftgo-kafka
spec:
selector:
matchLabels:
role: ftgo-kafka
serviceName: "kafka"
replicas: 1
template:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,14 @@ spec:
selector:
role: ftgo-mysql
---
apiVersion: apps/v1beta1
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: ftgo-mysql
spec:
selector:
matchLabels:
role: ftgo-mysql
serviceName: "mysql"
replicas: 1
template:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,14 @@ spec:
selector:
role: ftgo-zookeeper
---
apiVersion: apps/v1beta1
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: ftgo-zookeeper
spec:
selector:
matchLabels:
role: ftgo-zookeeper
serviceName: "zookeeper"
replicas: 1
template:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,17 @@ spec:
selector:
svc: ftgo-accounting-service
---
apiVersion: extensions/v1beta1
apiVersion: apps/v1
kind: Deployment
metadata:
name: ftgo-accounting-service
labels:
application: ftgo
spec:
selector:
matchLabels:
svc: ftgo-accounting-service
application: ftgo
replicas: 1
strategy:
rollingUpdate:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,17 @@ spec:
# loadBalancerSourceRanges:
# - 88.128.82.195/32
---
apiVersion: extensions/v1beta1
apiVersion: apps/v1
kind: Deployment
metadata:
name: ftgo-api-gateway
labels:
application: ftgo
spec:
selector:
matchLabels:
svc: ftgo-api-gateway
application: ftgo
replicas: 1
strategy:
rollingUpdate:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,17 @@ spec:
selector:
svc: ftgo-consumer-service
---
apiVersion: extensions/v1beta1
apiVersion: apps/v1
kind: Deployment
metadata:
name: ftgo-consumer-service
labels:
application: ftgo
spec:
selector:
matchLabels:
svc: ftgo-consumer-service
application: ftgo
replicas: 1
strategy:
rollingUpdate:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,17 @@ spec:
selector:
svc: ftgo-kitchen-service
---
apiVersion: extensions/v1beta1
apiVersion: apps/v1
kind: Deployment
metadata:
name: ftgo-kitchen-service
labels:
application: ftgo
spec:
selector:
matchLabels:
svc: ftgo-kitchen-service
application: ftgo
replicas: 1
strategy:
rollingUpdate:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,17 @@ spec:
selector:
svc: ftgo-order-history-service
---
apiVersion: extensions/v1beta1
apiVersion: apps/v1
kind: Deployment
metadata:
name: ftgo-order-history-service
labels:
application: ftgo
spec:
selector:
matchLabels:
svc: ftgo-order-history-service
application: ftgo
replicas: 1
strategy:
rollingUpdate:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,17 @@ spec:
selector:
svc: ftgo-order-service
---
apiVersion: extensions/v1beta1
apiVersion: apps/v1
kind: Deployment
metadata:
name: ftgo-order-service
labels:
application: ftgo
spec:
selector:
matchLabels:
svc: ftgo-order-service
application: ftgo
replicas: 1
strategy:
rollingUpdate:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,18 @@ spec:
selector:
svc: ftgo-restaurant-service
---
apiVersion: extensions/v1beta1
apiVersion: apps/v1
kind: Deployment
metadata:
name: ftgo-restaurant-service
labels:
application: ftgo
svc: ftgo-restaurant-service
spec:
selector:
matchLabels:
svc: ftgo-restaurant-service
application: ftgo
replicas: 1
strategy:
rollingUpdate:
Expand Down