-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmaterial.dev.values.yaml
189 lines (154 loc) · 3.76 KB
/
material.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
replicaCount: 2
deployment:
name: materials
image:
repository: madaurus/materials
pullPolicy: IfNotPresent
tag: "v1.2.6"
imagePullSecrets: []
nameOverride: ""
fullnameOverride: ""
serviceAccount:
create: true
automount: true
annotations: {}
name: materials
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
# Writing Max resources for simple go app
resources:
limits:
cpu: 160m
memory: 320Mi
requests:
cpu: 110m
memory: 200Mi
livenessProbe:
httpGet:
path: /
port: http
initialDelaySeconds: 8
readinessProbe:
httpGet:
path: /
port: http
initialDelaySeconds: 8
autoscaling:
enabled: true
minReplicas: 1
maxReplicas: 4
targetCPUUtilizationPercentage: 80
# targetMemoryUtilizationPercentage: 80
# Additional volumes on the output Deployment definition.
volumes:
- name: default-storage
persistentVolumeClaim:
claimName: material-pvc
# - name: foo
# secret:
# secretName: mysecret
# optional: false
# Additional volumeMounts on the output Deployment definition.
volumeMounts:
- name: default-storage
mountPath: "/app/storage"
# - name: foo
# mountPath: "/etc/foo"
# readOnly: true
nodeSelector: {}
tolerations: []
affinity: {}
secrets:
enabled: true
name: material-secrets
data:
JWT_SECRET: oXpyiGrnL3O6AUa9b7eyTohpFeSBzQLwWHEzTJZ71x8=
pvc:
enabled: true
name: material-pvc
volumeName: material-pv
accessModes: ReadWriteOnce
storage: 25Gi
storageLimit: 30Gi
pv:
enabled: true
name: material-pv
storage: 30Gi
mode: ReadWriteOnce
hostPath: /data/app/material
container:
name: material
port: 8080
containerPort: 8080
env:
- name: environment
valueFrom:
configMapKeyRef:
name: materials-config
key: "environment"
- name: JWT_SECRET
valueFrom:
secretKeyRef:
name: material-secrets
key: "JWT_SECRET"
- name: PERMIT_TOKEN
valueFrom:
configMapKeyRef:
name: materials-config
key: "PERMIT_TOKEN"
- name: PDP_SERVER
value: http://pdp-madaurus
- name: database_uri
valueFrom:
configMapKeyRef:
name: materials-config
key: "database_uri"
- name: sentry_dsn
valueFrom:
configMapKeyRef:
name: materials-config
key: "sentry_dsn"
- name: KAFKA_BROKER
valueFrom:
configMapKeyRef:
name: materials-config
key: "KAFKA_BROKER"
localDatabase:
enabled: false
configmap:
enabled: true
name: materials-config
data:
environment: "production"
sentry_dsn: "https://1168f4da88bba3f9669f88cbcc76cc11@o4506915435053056.ingest.us.sentry.io/4506994124718080"
PDP_SERVER: http://pdp-madaurus
database_uri: "mongodb+srv://madaurus:[email protected]/materials?retryWrites=true&w=majority&appName=madaurus"
KAFKA_BROKER: kafka-cluster-kafka-brokers:9092
PERMIT_TOKEN: permit_key_dyl2zhOIm2EXssDKP33JGbqGKKPiZarQjl0AcL7ZYvsYsLz2zFGDWcdRghccmR0EEJF5TS8c99g5ItDHl87alV