Skip to content

Commit e51a1c3

Browse files
committed
upload yaml for K8s deploy
1 parent 460bc21 commit e51a1c3

45 files changed

Lines changed: 1113 additions & 0 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
apiVersion: extensions/v1beta1
2+
kind: Deployment
3+
metadata:
4+
name: account-mongodb
5+
namespace: springcloud
6+
labels:
7+
name: account-mongodb
8+
spec:
9+
replicas: 1
10+
revisionHistoryLimit: 1
11+
strategy:
12+
rollingUpdate:
13+
maxSurge: 1
14+
maxUnavailable: 1
15+
template:
16+
metadata:
17+
labels:serverPort
18+
name: account-mongodb
19+
spec:
20+
terminationGracePeriodSeconds: 120
21+
containers:
22+
- name: account-mongodb
23+
image: goodraincloudframeworks/piggymetrics-mongodb
24+
imagePullPolicy: IfNotPresent
25+
readinessProbe:
26+
failureThreshold: 3
27+
initialDelaySeconds: 30
28+
periodSeconds: 10
29+
successThreshold: 1
30+
tcpSocket:
31+
port: 27017
32+
timeoutSeconds: 5
33+
resources:
34+
requests:
35+
cpu: 500m
36+
memory: 500Mi
37+
limits:
38+
cpu: 2000m
39+
memory: 2000Mi
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
apiVersion: extensions/v1beta1
2+
kind: Deployment
3+
metadata:
4+
name: account-service
5+
namespace: springcloud
6+
labels:
7+
name: account-service
8+
spec:
9+
replicas: 1
10+
revisionHistoryLimit: 1
11+
strategy:
12+
rollingUpdate:
13+
maxSurge: 1
14+
maxUnavailable: 1
15+
template:
16+
metadata:
17+
labels:
18+
name: account-service
19+
spec:
20+
terminationGracePeriodSeconds: 120
21+
containers:
22+
- name: account-service
23+
image: goodraincloudframeworks/piggymetrics-account-service
24+
imagePullPolicy: IfNotPresent
25+
readinessProbe:
26+
failureThreshold: 3
27+
initialDelaySeconds: 30
28+
periodSeconds: 10
29+
successThreshold: 1
30+
tcpSocket:
31+
port: 6000
32+
timeoutSeconds: 5
33+
resources:
34+
requests:
35+
cpu: 100m
36+
memory: 300Mi
37+
limits:
38+
cpu: 1000m
39+
memory: 1000Mi
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
apiVersion: extensions/v1beta1
2+
kind: Deployment
3+
metadata:
4+
name: auth-mongodb
5+
namespace: springcloud
6+
labels:
7+
name: auth-mongodb
8+
spec:
9+
replicas: 1
10+
revisionHistoryLimit: 1
11+
strategy:
12+
rollingUpdate:
13+
maxSurge: 1
14+
maxUnavailable: 1
15+
template:
16+
metadata:
17+
labels:
18+
name: auth-mongodb
19+
spec:
20+
terminationGracePeriodSeconds: 120
21+
containers:
22+
- name: auth-mongodb
23+
image: goodraincloudframeworks/piggymetrics-mongodb
24+
imagePullPolicy: IfNotPresent
25+
readinessProbe:
26+
failureThreshold: 3
27+
initialDelaySeconds: 30
28+
periodSeconds: 10
29+
successThreshold: 1
30+
tcpSocket:
31+
port: 27017
32+
timeoutSeconds: 5
33+
resources:
34+
requests:
35+
cpu: 500m
36+
memory: 500Mi
37+
limits:
38+
cpu: 2000m
39+
memory: 2000Mi
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
apiVersion: extensions/v1beta1
2+
kind: Deployment
3+
metadata:
4+
name: auth-service
5+
namespace: springcloud
6+
labels:
7+
name: auth-service
8+
spec:
9+
replicas: 1
10+
revisionHistoryLimit: 1
11+
strategy:
12+
rollingUpdate:
13+
maxSurge: 1
14+
maxUnavailable: 1
15+
template:
16+
metadata:
17+
labels:
18+
name: auth-service
19+
spec:
20+
terminationGracePeriodSeconds: 120
21+
containers:
22+
- name: auth-service
23+
image: goodraincloudframeworks/piggymetrics-auth-service
24+
imagePullPolicy: IfNotPresent
25+
readinessProbe:
26+
failureThreshold: 3
27+
initialDelaySeconds: 30
28+
periodSeconds: 10
29+
successThreshold: 1
30+
tcpSocket:
31+
port: 5000
32+
timeoutSeconds: 5
33+
resources:
34+
requests:
35+
cpu: 100m
36+
memory: 300Mi
37+
limits:
38+
cpu: 1000m
39+
memory: 1000Mi
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
apiVersion: extensions/v1beta1
2+
kind: Deployment
3+
metadata:
4+
name: config
5+
namespace: springcloud
6+
labels:
7+
name: config
8+
spec:
9+
replicas: 1
10+
revisionHistoryLimit: 1
11+
strategy:
12+
rollingUpdate:
13+
maxSurge: 1
14+
maxUnavailable: 1
15+
template:
16+
metadata:
17+
labels:
18+
name: config
19+
spec:
20+
terminationGracePeriodSeconds: 120
21+
containers:
22+
- name: config
23+
image: goodraincloudframeworks/piggymetrics-config
24+
imagePullPolicy: IfNotPresent
25+
readinessProbe:
26+
failureThreshold: 3
27+
initialDelaySeconds: 30
28+
periodSeconds: 10
29+
successThreshold: 1
30+
tcpSocket:
31+
port: 8888
32+
timeoutSeconds: 5
33+
resources:
34+
requests:
35+
cpu: 100m
36+
memory: 300Mi
37+
limits:
38+
cpu: 1000m
39+
memory: 1000Mi
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
apiVersion: extensions/v1beta1
2+
kind: Deployment
3+
metadata:
4+
name: gateway
5+
namespace: springcloud
6+
labels:
7+
name: gateway
8+
spec:
9+
replicas: 1
10+
revisionHistoryLimit: 1
11+
strategy:
12+
rollingUpdate:
13+
maxSurge: 1
14+
maxUnavailable: 1
15+
template:
16+
metadata:
17+
labels:
18+
name: gateway
19+
spec:
20+
terminationGracePeriodSeconds: 120
21+
containers:
22+
- name: gateway
23+
image: goodraincloudframeworks/piggymetrics-gateway
24+
imagePullPolicy: IfNotPresent
25+
readinessProbe:
26+
failureThreshold: 3
27+
initialDelaySeconds: 30
28+
periodSeconds: 10
29+
successThreshold: 1
30+
tcpSocket:
31+
port: 4000
32+
timeoutSeconds: 5
33+
resources:
34+
requests:
35+
cpu: 100m
36+
memory: 300Mi
37+
limits:
38+
cpu: 1000m
39+
memory: 1000Mi
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
apiVersion: extensions/v1beta1
2+
kind: Deployment
3+
metadata:
4+
name: monitoring
5+
namespace: springcloud
6+
labels:
7+
name: monitoring
8+
spec:
9+
replicas: 1
10+
revisionHistoryLimit: 1
11+
strategy:
12+
rollingUpdate:
13+
maxSurge: 1
14+
maxUnavailable: 1
15+
template:
16+
metadata:
17+
labels:
18+
name: monitoring
19+
spec:
20+
terminationGracePeriodSeconds: 120
21+
containers:
22+
- name: monitoring
23+
image: goodraincloudframeworks/piggymetrics-monitoring
24+
imagePullPolicy: IfNotPresent
25+
readinessProbe:
26+
failureThreshold: 3
27+
initialDelaySeconds: 30
28+
periodSeconds: 10
29+
successThreshold: 1
30+
tcpSocket:
31+
port: 8080
32+
timeoutSeconds: 5
33+
resources:
34+
requests:
35+
cpu: 100m
36+
memory: 300Mi
37+
limits:
38+
cpu: 1000m
39+
memory: 1000Mi
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
apiVersion: extensions/v1beta1
2+
kind: Deployment
3+
metadata:
4+
name: notification-mongodb
5+
namespace: springcloud
6+
labels:
7+
name: notification-mongodb
8+
spec:
9+
replicas: 1
10+
revisionHistoryLimit: 1
11+
strategy:
12+
rollingUpdate:
13+
maxSurge: 1
14+
maxUnavailable: 1
15+
template:
16+
metadata:
17+
labels:
18+
name: notification-mongodb
19+
spec:
20+
terminationGracePeriodSeconds: 120
21+
containers:
22+
- name: notification-mongodb
23+
image: goodraincloudframeworks/piggymetrics-mongodb
24+
imagePullPolicy: IfNotPresent
25+
readinessProbe:
26+
failureThreshold: 3
27+
initialDelaySeconds: 30
28+
periodSeconds: 10
29+
successThreshold: 1
30+
tcpSocket:
31+
port: 27017
32+
timeoutSeconds: 5
33+
resources:
34+
requests:
35+
cpu: 500m
36+
memory: 500Mi
37+
limits:
38+
cpu: 2000m
39+
memory: 2000Mi
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
apiVersion: extensions/v1beta1
2+
kind: Deployment
3+
metadata:
4+
name: notification-service
5+
namespace: springcloud
6+
labels:
7+
name: notification-service
8+
spec:
9+
replicas: 1
10+
revisionHistoryLimit: 1
11+
strategy:
12+
rollingUpdate:
13+
maxSurge: 1
14+
maxUnavailable: 1
15+
template:
16+
metadata:
17+
labels:
18+
name: notification-service
19+
spec:
20+
terminationGracePeriodSeconds: 120
21+
containers:
22+
- name: notification-service
23+
image: goodraincloudframeworks/piggymetrics-notification-service
24+
imagePullPolicy: IfNotPresent
25+
readinessProbe:
26+
failureThreshold: 3
27+
initialDelaySeconds: 30
28+
periodSeconds: 10
29+
successThreshold: 1
30+
tcpSocket:
31+
port: 8000
32+
timeoutSeconds: 5
33+
resources:
34+
requests:
35+
cpu: 100m
36+
memory: 300Mi
37+
limits:
38+
cpu: 1000m
39+
memory: 1000Mi

0 commit comments

Comments
 (0)