-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstaff.dev.values.yaml
210 lines (178 loc) · 4.3 KB
/
staff.dev.values.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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
# Default values for ..
# This is a YAML-formatted file.
# Declare variables to be passed into your templates.
replicaCount: 1
image:
repository: madaurus/staff
pullPolicy: IfNotPresent
tag: "v1.2.9"
serviceAccount:
create: true
automount: true
annotations: {}
name: staff
podAnnotations: {}
podLabels: {}
podSecurityContext: {}
# fsGroup: 2000
securityContext: {}
# capabilities:
# drop:
# - ALL
# readOnlyRootFilesystem: true
# runAsNonRoot: true
# runAsUser: 1000
service:
type: ClusterIP
port: 8080
targetPort: 8080
ingress:
enabled: false
className: ""
annotations: {}
# kubernetes.io/ingress.class: nginx
# kubernetes.io/tls-acme: "true"
hosts:
- host: chart-example.local
paths:
- path: /
pathType: ImplementationSpecific
tls: []
# - secretName: chart-example-tls
# hosts:
# - chart-example.local
resources:
limits:
cpu: 180m
memory: 320Mi
requests:
cpu: 140m
memory: 280Mi
livenessProbe:
httpGet:
path: /health-check
port: http
initialDelaySeconds: 8
readinessProbe:
httpGet:
path: /health-check
port: http
initialDelaySeconds: 8
autoscaling:
enabled: true
minReplicas: 1
maxReplicas: 3
targetCPUUtilizationPercentage: 80
# targetMemoryUtilizationPercentage: 80
# Additional volumes on the output Deployment definition.
volumes:
- name: default-storage
persistentVolumeClaim:
claimName: staff-pvc
# - name: foo
# secret:
# secretName: mysecret
# optional: false
volumeMounts:
- name: default-storage
mountPath: "/app/storage"
nodeSelector: {}
tolerations: []
affinity: {}
pvc:
enabled: true
name: staff-pvc
volumeName: staff-pv
accessModes: ReadWriteOnce
storage: 2Gi
storageLimit: 2.2Gi
pv:
enabled: true
name: staff-pv
storage: 3Gi
mode: ReadWriteOnce
hostPath: /data/app/staff
# localDatabase:
# dbName: staff-db
# enabled: true
# image:
# repository: postgres
# tag: 13.14-bullseye
# pullPolicy: IfNotPresent
# port: 5432
# env:
# - name: POSTGRES_DB
# value: postgres
# - name: POSTGRES_USER
# value: postgres
# - name: POSTGRES_PASSWORD
# value: postgres
# - name: DB_HOST
# value: localhost
# volumeMounts:
# - name: default-storage
# mountPath: /var/lib/postgresql/data
# volume:
# - name: default-storage
# persistentVolumeClaim:
# claimName: staff-pvc
secrets:
enabled: true
name: staff-secrets
data:
JWT_SECRET: oXpyiGrnL3O6AUa9b7eyTohpFeSBzQLwWHEzTJZ71x8=
SECRET_KEY: oXpyiGrnL3O6AUa9b7eyTohpFeSBzQLwWHEzTJZ71x8=
container:
name: staff
port: 8080
containerPort: 8080
env:
- name: ENVIRONMENT
valueFrom:
configMapKeyRef:
name: staff-config
key: "environment"
- name: JWT_SECRET
valueFrom:
secretKeyRef:
name: staff-secrets
key: "JWT_SECRET"
- name: SECRET_KEY
valueFrom:
secretKeyRef:
name: staff-secrets
key: "SECRET_KEY"
- name: DB_PASS
valueFrom:
secretKeyRef:
name: madaurus-postgres-postgresql
key: "postgres-password"
- name: DB_HOST
value: madaurus-postgres-postgresql
- name: DB_PORT
value: "5432"
- name: DB_USER
value: postgres
- name: DB_NAME
value: staff
- name: PDP_SERVER
value: http://pdp-madaurus
- name: KAFKA_BROKER
valueFrom:
configMapKeyRef:
name: staff-config
key: "KAFKA_BROKER"
- name: PERMIT_TOKEN
valueFrom:
configMapKeyRef:
name: staff-config
key: "PERMIT_TOKEN"
configmap:
enabled: true
name: staff-config
data:
environment: "production"
PDP_SERVER: http://pdp-madaurus
KAFKA_BROKER: kafka-cluster-kafka-brokers:9092
KAFKA_BROKER2: kafka-cluster-kafka-brokers:9092:9091
PERMIT_TOKEN: permit_key_dyl2zhOIm2EXssDKP33JGbqGKKPiZarQjl0AcL7ZYvsYsLz2zFGDWcdRghccmR0EEJF5TS8c99g5ItDHl87alV