forked from akbarmmln/deployment-services
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmsposyandu-deployment.yaml
84 lines (84 loc) · 2.19 KB
/
msposyandu-deployment.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
apiVersion: apps/v1
kind: Deployment
metadata:
name: msposyandu
namespace: sit
labels:
app: msposyandu
version: v1
spec:
replicas: 1
strategy:
type: RollingUpdate
rollingUpdate:
maxUnavailable: 0
maxSurge: 1
minReadySeconds: 60
selector:
matchLabels:
app: msposyandu
template:
metadata:
labels:
app: msposyandu
version: v1
spec:
containers:
- name: msposyandu
image: taufik90/msposyandu:5
imagePullPolicy: Always
ports:
- containerPort: 8099
livenessProbe:
httpGet:
path: /api/v1/healthcek/healty
port: 8099
failureThreshold: 10
initialDelaySeconds: 10
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 30
readinessProbe:
httpGet:
path: /api/v1/healthcek/healty
port: 8099
failureThreshold: 10
initialDelaySeconds: 10
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 30
lifecycle:
preStop:
exec:
command: ["/bin/sh", "-c", "sleep 60"]
env:
- name: PORT
value: "8099"
- name: MYSQL_HOSTNAME
value: "rds-d9jl3xtniu9x99a4f2o-mysql-ap-southeast-5.exops.my.id"
- name: MYSQL_USERNAME
value: "iamspu"
- name: MYSQL_PASSWORD
value: "Akbarakbar@99"
- name: MYSQL_PORT
value: "3306"
- name: MYSQL_DATABASE
value: "ms_psynd"
- name: ACC_KEY_ID
value: "006SWZ1KKNP5ED8QLLWS"
- name: SCR_ACC_KEY
value: "Qiu9PC6lDbw3byDfX1iJnGdePRtHDrSrww7Lwgkk"
- name: OSS_REGION
value: "Jakarta"
- name: OSS_ENDPOINT
value: "https://s3-jkt1.dcloud.co.id"
- name: HOST_MAIL
value: "smtp.sparkpostmail.com"
- name: USER_MAIl
value: "SMTP_Injection"
- name: PASS_MAIL
value: "6799d648c8c9c1d14685544dba09575e7849b172"
- name: PORT_MAIL
value: "587"
- name: NO_REPLY
value: "[email protected]"