Skip to content
This repository has been archived by the owner on Mar 24, 2022. It is now read-only.

Commit

Permalink
Merge pull request #2 from shinmatsuzaki/modify-k8s-manifest
Browse files Browse the repository at this point in the history
最新verのk8s manifestでも動作するようk8s manifestを修正
  • Loading branch information
shinmatsuzaki authored Mar 3, 2021
2 parents a835e23 + b02a360 commit 578ad6f
Show file tree
Hide file tree
Showing 13 changed files with 50 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,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
3 changes: 2 additions & 1 deletion deployment/kubernetes/scripts/kubernetes-deploy-all.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
#! /bin/bash -e
set -vx

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,16 @@ 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
replicas: 1
strategy:
rollingUpdate:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,16 @@ 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
replicas: 1
strategy:
rollingUpdate:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,16 @@ 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
replicas: 1
strategy:
rollingUpdate:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,16 @@ 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
replicas: 1
strategy:
rollingUpdate:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,16 @@ 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
replicas: 1
strategy:
rollingUpdate:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,16 @@ 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
replicas: 1
strategy:
rollingUpdate:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,17 @@ 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
replicas: 1
strategy:
rollingUpdate:
Expand Down

0 comments on commit 578ad6f

Please sign in to comment.