Skip to content

Commit

Permalink
FIX: microservices-patterns#124 kubernetes deploy error
Browse files Browse the repository at this point in the history
  • Loading branch information
liubin01 committed Sep 23, 2020
1 parent a835e23 commit 3e5db67
Show file tree
Hide file tree
Showing 13 changed files with 56 additions and 13 deletions.
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,7 +9,7 @@ spec:
selector:
svc: ftgo-cdc-service
---
apiVersion: extensions/v1beta1
apiVersion: apps/v1
kind: Deployment
metadata:
name: ftgo-cdc-service
Expand Down Expand Up @@ -118,4 +118,7 @@ spec:
port: 8080
initialDelaySeconds: 60
periodSeconds: 20
selector:
matchLabels:
svc: ftgo-cdc-service
---
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,7 +9,7 @@ spec:
selector:
svc: ftgo-dynamodb-local
---
apiVersion: apps/v1beta1
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: ftgo-dynamodb-local
Expand Down Expand Up @@ -47,6 +47,9 @@ spec:
resources:
requests:
storage: 1Gi
selector:
matchLabels:
svc: ftgo-dynamodb-local
---
apiVersion: batch/v1
kind: Job
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ spec:
selector:
role: ftgo-kafka
---
apiVersion: apps/v1beta1
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: ftgo-kafka
Expand Down Expand Up @@ -47,4 +47,7 @@ spec:
resources:
requests:
storage: 1Gi
selector:
matchLabels:
role: ftgo-kafka
---
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ spec:
selector:
role: ftgo-mysql
---
apiVersion: apps/v1beta1
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: ftgo-mysql
Expand Down Expand Up @@ -51,4 +51,7 @@ spec:
resources:
requests:
storage: 1Gi
selector:
matchLabels:
role: ftgo-mysql
---
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ spec:
selector:
role: ftgo-zookeeper
---
apiVersion: apps/v1beta1
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: ftgo-zookeeper
Expand Down Expand Up @@ -44,4 +44,7 @@ spec:
resources:
requests:
storage: 1Gi
selector:
matchLabels:
role: ftgo-zookeeper
---
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ spec:
selector:
svc: ftgo-accounting-service
---
apiVersion: extensions/v1beta1
apiVersion: apps/v1
kind: Deployment
metadata:
name: ftgo-accounting-service
Expand Down Expand Up @@ -66,4 +66,8 @@ spec:
port: 8080
initialDelaySeconds: 60
periodSeconds: 20
selector:
matchLabels:
svc: ftgo-accounting-service
application: ftgo
---
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ spec:
# loadBalancerSourceRanges:
# - 88.128.82.195/32
---
apiVersion: extensions/v1beta1
apiVersion: apps/v1
kind: Deployment
metadata:
name: ftgo-api-gateway
Expand Down Expand Up @@ -61,5 +61,9 @@ spec:
port: 8080
initialDelaySeconds: 30
periodSeconds: 20
selector:
matchLabels:
svc: ftgo-api-gateway
application: ftgo

---
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ spec:
selector:
svc: ftgo-consumer-service
---
apiVersion: extensions/v1beta1
apiVersion: apps/v1
kind: Deployment
metadata:
name: ftgo-consumer-service
Expand Down Expand Up @@ -62,4 +62,8 @@ spec:
port: 8080
initialDelaySeconds: 60
periodSeconds: 20
selector:
matchLabels:
svc: ftgo-consumer-service
application: ftgo
---
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ spec:
selector:
svc: ftgo-kitchen-service
---
apiVersion: extensions/v1beta1
apiVersion: apps/v1
kind: Deployment
metadata:
name: ftgo-kitchen-service
Expand Down Expand Up @@ -66,4 +66,8 @@ spec:
port: 8080
initialDelaySeconds: 60
periodSeconds: 20
selector:
matchLabels:
svc: ftgo-kitchen-service
application: ftgo
---
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -74,4 +74,8 @@ spec:
port: 8080
initialDelaySeconds: 30
periodSeconds: 20
selector:
matchLabels:
svc: ftgo-order-history-service
application: ftgo
---
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ spec:
selector:
svc: ftgo-order-service
---
apiVersion: extensions/v1beta1
apiVersion: apps/v1
kind: Deployment
metadata:
name: ftgo-order-service
Expand Down Expand Up @@ -74,4 +74,8 @@ spec:
port: 8080
initialDelaySeconds: 60
periodSeconds: 20
selector:
matchLabels:
svc: ftgo-order-service
application: ftgo
---
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ spec:
selector:
svc: ftgo-restaurant-service
---
apiVersion: extensions/v1beta1
apiVersion: apps/v1
kind: Deployment
metadata:
name: ftgo-restaurant-service
Expand Down Expand Up @@ -67,4 +67,8 @@ spec:
port: 8080
initialDelaySeconds: 60
periodSeconds: 20
selector:
matchLabels:
svc: ftgo-restaurant-service
application: ftgo
---

0 comments on commit 3e5db67

Please sign in to comment.