-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvalues.yaml
More file actions
304 lines (278 loc) · 9.92 KB
/
values.yaml
File metadata and controls
304 lines (278 loc) · 9.92 KB
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
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
---
# -- The api versions of the resources created by this chart.
#
# Ref: https://kubernetes.io/docs/reference/using-api/deprecation-guide/
apiVersions:
deployment: "apps/v1"
horizontalPodAutoscaler: "autoscaling/v2"
ingress: "networking.k8s.io/v1"
podDisruptionBudget: "policy/v1"
service: "v1"
serviceAccount: "v1"
serviceMonitor: "monitoring.coreos.com/v1"
# -- Use this to override the name of the chart.
nameOverride: ""
# -- Use this to override the fullname of the chart.
fullnameOverride: ""
# -- Use this to override the namespace of the chart.
# By default, `.Release.Namespace` is used.
namespaceOverride: ""
# -- The number of replicas of the pod.
# Will not be used if `.Values.autoscaling.enabled` is `true`.
#
# Ref: https://kubernetes.io/docs/concepts/workloads/controllers/replicaset/
replicaCount: 1
# -- The image of the container.
#
# Ref: https://kubernetes.io/docs/concepts/containers/images/
image:
# -- The repository/name/url of the image.
repository: "jhaals/yopass"
# -- The pull policy for the image.
pullPolicy: "Always"
# -- The tag of the image. If not set, the chart's `appVersion` is used.
tag: ""
# -- Secrets for pulling an image from a private repository.
#
# Ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
imagePullSecrets: []
# -- Annotations to add to the pod(s).
#
# Ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/
podAnnotations: {}
# -- Extra labels to add to the pod(s).
#
# Ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
extraPodLabels: {}
# -- Resource limits and requests.
# You might want to set `limits.cpu` to `null`: https://home.robusta.dev/blog/stop-using-cpu-limits
#
# Ref: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
resources:
limits:
cpu: "100m"
memory: "128Mi"
ephemeral-storage: "128Mi"
requests:
cpu: "100m"
memory: "128Mi"
ephemeral-storage: "128Mi"
# -- The security context for the pod.
#
# Ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/
podSecurityContext: {}
# -- The security context for the container.
#
# Ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/
containerSecurityContext:
readOnlyRootFilesystem: true
runAsUser: 10001
runAsGroup: 10001
# -- The node selector for the pod(s).
#
# Ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/
nodeSelector: {}
# -- The affinity for the pod(s).
#
# Ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/
affinity: {}
# -- A host podAntiAffinity, that stops multiple pods from from being scheduled on the same node.
#
# Ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/
hostPodAntiAffinity:
# -- Whether to enable the host podAntiAffinity.
enabled: false
# -- The weight of the host podAntiAffinity.
weight: 50
# -- The tolerations for the pod(s).
#
# Ref: https://kubernetes.io/docs/concepts/scheduling-eviction/taint-and-toleration/
tolerations: {}
# -- Liveness Probe configuration.
# Liveness probes can be dangerous. Only use them if you really need one.
# See https://srcco.de/posts/kubernetes-liveness-probes-are-dangerous.html for more information.
#
# Ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/
livenessProbe: {}
# httpGet:
# # -- The path to use for the liveness probe.
# path: "/live"
# # -- The port to use for the liveness probe.
# # This should reference the container ports defined at `.Values.containerPorts`.
# port: "http"
# -- Readiness Probe configuration.
#
# Ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/
readinessProbe:
httpGet:
# -- The path to use for the readiness probe.
path: "/"
# -- The port to use for the readiness probe.
# This should reference the container ports defined at `.Values.containerPorts`.
port: "http"
# -- Autoscaling configuration.
#
# Ref: https://kubernetes.io/docs/concepts/workloads/autoscaling/
autoscaling:
enabled: false
minReplicas: 2
maxReplicas: 100
targetCPUUtilizationPercentage: 80
targetMemoryUtilizationPercentage: 80
# -- Deployment strategy configuration.
#
# Ref: https://kubernetes.io/docs/concepts/workloads/controllers/deployment/#strategy
strategy:
type: "RollingUpdate"
# -- Configuration for service accounts.
#
# Ref: https://kubernetes.io/docs/concepts/security/service-accounts/
serviceAccount:
# -- Whether a service account should be created.
enabled: true
# -- Whether to mount a ServiceAccount's API credentials.
automount: true
# -- Annotations to add to the service account.
annotations: {}
# -- The name of the service account to use.
# If not set, a name is generated based on the chart name.
name: ""
# -- The ports of the container.
# To use these ports in the service(s),
# you need to add them to `.Values.service.ports` or `.Values.metrics.service.ports`.
#
# If `.Values.livenessProbe.enabled` is true, you need to add them to `.Values.livenessProbe`.
#
# If `.Values.readinessProbe.enabled` is true, you need to add them to `.Values.readinessProbe`.
#
# Ref: https://kubernetes.io/docs/concepts/services-networking/service/
#
# Ref: https://kubernetes.io/docs/concepts/services-networking/network-policies/
containerPorts:
- name: "http"
port: 8080
protocol: "TCP"
- name: "metrics"
port: 3000
protocol: "TCP"
# -- Service configuration.
# A service for metrics is created separately. Check `.Values.metrics` for more information.
#
# Ref: https://kubernetes.io/docs/concepts/services-networking/service/
service:
# -- The type of service to create.
#
# Ref: https://kubernetes.io/docs/concepts/services-networking/service/#publishing-services-service-types
type: "ClusterIP"
# -- The ports of the service.
# These should reference the container ports defined at `.Values.containerPorts`.
# When `.Values.ingress.enabled` is `true`, they should reference `.Values.ingress.hosts`.
#
# Ref: https://kubernetes.io/docs/concepts/services-networking/service/#field-spec-ports
ports:
- name: "http"
port: 80
protocol: "TCP"
targetPort: "http"
# -- Wether to create an additional headless service.
# This should be enabled when using StatefulSets.
#
# Ref: https://kubernetes.io/docs/concepts/services-networking/service/#headless-services
enableAdditionalHeadlessService: false
# -- Configuration options regarding metrics resources (ServiceMonitor, Service, etc.).
#
# Ref: https://github.com/prometheus-operator/prometheus-operator?tab=readme-ov-file#customresourcedefinitions
metrics:
# -- Whether to create a service for metrics.
enabled: false
# -- Metrics service configuration.
service:
# -- The type of service to create.
#
# Ref: https://kubernetes.io/docs/concepts/services-networking/service/#publishing-services-service-types
type: "ClusterIP"
# -- The ports of the metrics service.
# These should reference the container ports defined at `.Values.containerPorts`.
#
# Ref: https://kubernetes.io/docs/concepts/services-networking/service/#field-spec-ports
ports:
- name: "metrics"
port: 3000
protocol: "TCP"
targetPort: "metrics"
# -- ServiceMonitor configuration.
#
# Ref: https://github.com/prometheus-operator/prometheus-operator?tab=readme-ov-file#customresourcedefinitions
serviceMonitor:
# -- Whether to create a ServiceMonitor resource.
enabled: false
# -- Configuration of the endpoints to scrape.
endpoints:
# -- The service port to scrape.
# This should reference the service ports defined at `.Values.metrics.service.ports`.
- port: "metrics"
# -- The interval at which metrics should be scraped.
interval: "30s"
# -- The metric relabelings to apply.
metricRelabelings: []
# -- The relabelings to apply.
relabelings: []
# -- The path to scrape metrics from.
path: "/metrics"
# -- Ingress configuration.
#
# Ref: https://kubernetes.io/docs/concepts/services-networking/ingress/
ingress:
# -- Whether to create an Ingress resource.
enabled: false
# -- Annotations to add to the Ingress.
annotations: {}
# kubernetes.io/ingress.class: "nginx"
# cert-manager.io/cluster-issuer: "dns01-cloudflare-cluster-issuer-prod"
# -- The class of the Ingress controller.
className: "nginx"
# -- The hosts of the Ingress.
hosts:
- host: "yopass.example.com"
paths:
- path: "/"
pathType: "Prefix"
# -- The service port name to use for the Ingress.
# This should reference the service ports defined at `.Values.service.ports`.
servicePortName: "http"
# -- The TLS configuration for the Ingress.
tls:
- hosts:
- "yopass.example.com"
secretName: "app-tls"
# -- Pod Disruption Budget configuration.
#
# Ref: https://kubernetes.io/docs/tasks/run-application/configure-pdb/
podDisruptionBudget:
# -- Whether to create a PodDisruptionBudget resource.
enabled: false
# -- Annotations to add to the PodDisruptionBudget.
annotations: {}
# -- The minimum number of pods that must be available. If set, maxUnavailable won't be used.
minAvailable: 1
# -- The maximum number of pods that can be unavailable. Ignored if `minAvailable` is set.
maxUnavailable: 1
# -- The Unhealthy Pod Eviction Policy.
unhealthyPodEvictionPolicy: "AlwaysAllow"
# -- App configuration.
app:
# -- Environment variables to pass to the container.
#
# Ref: https://kubernetes.io/docs/tasks/inject-data-application/define-environment-variable-container/
env:
- name: "PORT"
value: "8080"
- name: "METRICS_PORT"
value: "3000"
# - name: "DATABASE"
# value: "redis"
# - name: "REDIS"
# valueFrom:
# secretKeyRef:
# name: "yopass-valkey-credentials"
# key: "url"