forked from MahaGamal/helm-starter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvalues.yaml
248 lines (205 loc) · 8.1 KB
/
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
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
# Values for <CHARTNAME> should update image version
image:
repository: <CHARTNAME>
tag: latest
pullPolicy: Always
# nameOverride: ""
# fullnameOverride: ""
## for enabling the preview lables of pr the below:
# pr-branch: {{ .Values.prBranch }}
# suspender-env: "{{ .Values.suspenderEnv }}"
# dont_suspend: "{{ .Values.dont_suspend }}"
# pr-number: "pr-{{ .Values.prNumber }}"
# gh_num_website: "{{ .Values.run_number }}"
previewLabels: false
# Add labels that will be added to the resources
extraLabels: {}
# tags.datadoghq.com/env: preview
# tags.datadoghq.com/service: <CHARTNAME>
# tags.datadoghq.com/version: "{{ .Values.imageTag }}"
# Configuration for servers deployment to create one or more deployment.
Servers:
# the deployment name with the all K8s resources.
server:
# Number of replicas (Required)
replicaCount: 1
# Server container port (Required)
httpPort: 80
# How kubernetes determines when the server is ready and if it's still alive (Suggested)
health:
readinessProbe:
httpGet:
path: /health/readiness
port: 8080
initialDelaySeconds: 60
periodSeconds: 60
livenessProbe:
httpGet:
path: /health/liveness
port: 8080
initialDelaySeconds: 60
periodSeconds: 60
# Determing processes securityContext.
# https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.21/#podsecuritycontext-v1-core ( podSecurityContext [ Optioanl ])
podSecurityContext:
fsGroup: 2000
# Requested resources and limits for the server (Suggested)
resources: {}
# requests:
# cpu: 100m
# memory: 128Mi
# limits:
# cpu: 100m
# memory: 128Mi
# Pass custom command. Defaults to docker image ENTRYPOINT (Optional)
command: []
# Pass custom args. Defaults to docker image CMD (Optional)
args: []
# Constraints how pods should be spread across nodes
# valid values:
# - "" (no constraints)
# - "soft" (tries to spread the pods if possible)
# - "hard" (forces the pods to be spread)
antiAffinity: ""
# The deployment strategy to use to replace existing pods with new ones. (Optional)
updateStrategy: {}
# rollingUpdate:
# maxUnavailable: 1
# type: RollingUpdate
# Annotations to add to server pods. (Optional)
podAnnotations: {}
# fluentbit.io/parser: nginx-ingress
# Labels to add to server pods. (Optional)
podLabels: {}
# stack: node
# Which nodes should the server run on. (Suggested)
nodeSelector: {}
# environment: dev
# https://kubernetes.io/docs/concepts/configuration/taint-and-toleration. (Optional)
tolerations: []
# - key: "instancegroup"
# operation: "Equal"
# value: "dev"
# Server environment variables. (Optional)
# server also inherits variables from envVarSource, secretEnv and existSecretNames but env has higher priority.
# values can contain go templates
env: {}
# KEY: val
# URL: value-{{ .Release.Prefix }}
# Server environment variables from a source/reference for the value. (Optional)
# Sources Like:
# fieldRef: Selects a field of the pod
# metadata.name, metadata.namespace, `metadata.labels['<KEY>']`, `metadata.annotations['<KEY>']`, spec.nodeName, spec.serviceAccountName, status.hostIP, status.podIP, status.podIPs.
# Examaples: https://raw.githubusercontent.com/kubernetes/website/main/content/en/examples/pods/inject/dapi-envars-pod.yaml
# resourceFieldRef: Selects a resource of the container
# Note: only resources limits and requests (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported.
# Examples: https://kubernetes.io/docs/tasks/inject-data-application/_print/#use-container-fields-as-values-for-environment-variables
# configMapKeyRef: Selects a key of a ConfigMap.
# secretKeyRef: Selects a key of a secret in the pod's namespaceource for the value of an Env
envVarSource: {}
# KEY: "{ <SOURCE>: { <OBJECTS....> } }"
# POD_IP: "{ fieldRef: { fieldPath: status.podIP } }"
# to use existing secret in deployment file
existSecretNames: []
# the names of existing secrets names
# - existsecret
# - secondsecret
## Specifies the path to the ProxySQL configuration file stored in 1Password (The path follows the structure of a vaults directory).
## This path contains the auth auth environment variables.
# Used by existSecretNames
environmentVariablesOnePasswordPath: ""
#"vaults/xx-staging/items/xx-environment-variables"
# add containerVolumeMounts to container
containerVolumeMounts: []
# - name: secret
# mountPath: "/etc/secret"
# readOnly: true
# add the volumes to pod
volumes: []
# - name: secret
# secret:
# secretName: mysecret
# To Create ServiceAccount
serviceAccount: false
# To Create ServiceMonitor
serviceMonitor:
enabled: false
namespace: monitoring
port: http
interval: 10s
path: /
# Service configuration
service:
# Service type (ClusterIP, NodePort, LoadBalancer)
type: ClusterIP
# Annotations to add to service. (Optional)
annotations: {}
# external-dns.alpha.kubernetes.io/hostname: service.staging.[YOUR-DOMAIN].org
# Service ports
ports:
http:
# Exposed service port
port: 80
# Container port
targetPort: http
# Ingress configuration
ingress:
enabled: false
annotations: {}
# kubernetes.io/ingress.class: nginx
# nginx.ingress.kubernetes.io/force-ssl-redirect: "true"
path: /
hosts:
# [{{subdomain.value}}.]{{zone}}
- zone: staging.[YOUR-DOMAIN].org
subdomain:
enabled: false
# value defaults to fullname if not specified
value: ""
## If provided in format of "user:password" will add basic auth
# basicAuth: "username:password"
tls: {}
# secretName: [YOUR-DOMAIN/ANYName]-api-tls-env
## Application controller Pod Disruption Budget
## Ref: https://kubernetes.io/docs/tasks/run-application/configure-pdb/
pdb:
# -- Deploy a [PodDisruptionBudget] for the server.
enabled: false
# -- Number of pods that are available after eviction as number or percentage (eg.: 50%)
# @default -- `""` (defaults to 0 if not specified)
minAvailable: ""
# -- Number of pods that are unavailble after eviction as number or percentage (eg.: 50%).
## Has higher precedence over `controller.pdb.minAvailable`
maxUnavailable: ""
# Configuration for HorizontalPodAutoscaler
## Ref: https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale-walkthrough/
hpa:
# add if true hpa.yaml is applied
enabled: false
# minimum number of replicas created
minpods: 2
# maximum number of replicas created
maxpods: 5
# Scaling policies
scaleDown:
# restrict the flapping of replicas count when the metrics used for scaling keep fluctuating
stabilizationWindowSeconds: {}
# the Scaling down policy Configurations:
type: {}
periodSeconds: {}
value: {}
scaleUp:
# restrict the flapping of replicas count when the metrics used for scaling keep fluctuating
stabilizationWindowSeconds: {}
# the Scaling down policy Configurations:
type: {}
periodSeconds: {}
value: {}
# Memory metric Configurations if value given it creates a memory metric and start scaling depending on memoryAverageUtilization
memoryAverageUtilization: {}
# CPU metric Configurations if value given it creates a cpu metric and start scaling depending on cpuAverageUtilization
cpuAverageUtilization: 50
# add your custom metrics confgurations here
customMetrics: {}
# add your custom behavior confgurations here
customBehavior: {}