-
Notifications
You must be signed in to change notification settings - Fork 92
/
values.yaml
293 lines (273 loc) · 8.37 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
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
# Default values for Gravitee.io Alert Engine
# This is a YAML-formatted file.
# Declare variables to be passed into your templates.
# -- Array of extra K8s manifests to deploy
extraObjects: []
#- apiVersion: v1
# kind: Secret
# metadata:
# name: gravitee-license
# namespace: graviteeio
# type: Opaque
# data:
# license.key: myLicenceInBase64==
# Create NetworkPolicy objects
# https://kubernetes.io/docs/concepts/services-networking/network-policies/
networkPolicy:
# podSelector:
# matchExpressions:
# - key: app.kubernetes.io/component
# operator: In
# values: [ "engine" ]
# policyTypes:
# - Egress
# egress:
# - to:
# - ipBlock:
# cidr: 0.0.0.0/0
# except:
# - 169.254.169.254/32
chaos:
enabled: false
engine:
enabled: true
type: Deployment
name: engine
logging:
debug: false
stdout:
encoderPattern: "%d{HH:mm:ss.SSS} [%thread] [%X{api}] %-5level %logger{36} - %msg%n"
file:
enabled: true
rollingPolicy: |
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
<!-- daily rollover -->
<fileNamePattern>${gravitee.home}/logs/gravitee_%d{yyyy-MM-dd}.log</fileNamePattern>
<!-- keep 30 days' worth of history -->
<maxHistory>30</maxHistory>
</rollingPolicy>
encoderPattern: "%d{HH:mm:ss.SSS} [%thread] [%X{api}] %-5level %logger{36} - %msg%n"
graviteeLevel: INFO
# If you provide your own gconfiguration by using a volumeMount, reloadOnConfigChange is disabled.
reloadOnConfigChange: true
# Whether this chart should self-manage its service account, role, and associated role binding.
managedServiceAccount: true
# Custom service account override that the pod will use
serviceAccount: ""
roleRules:
- apiGroups:
- ""
resources:
- endpoints
- pods
- nodes
- services
- configmaps
- secrets
verbs:
- get
- list
- watch
ssl:
enabled: false
# keystore:
# path: ${gravitee.home}/security/keystore.jks
# password: secret
clientAuth: false
# truststore:
# path: ${gravitee.home}/security/truststore.jks
# password: secret
authentication:
enabled: true
adminPassword: adminadmin
replicaCount: 1
image:
repository: graviteeio/ae-engine
# tag: 1.0.0
pullPolicy: Always
# pullSecrets:
# - name: gravitee_secrets
deployment:
# Annotations to apply to the deployment
annotations: {}
# additionals labels
labels: {}
affinity: {}
hostAliases: []
#- ip: "127.0.0.1"
# hostnames:
# - "foo.local"
# - "bar.local"
nodeSelector: {}
tolerations: []
envFrom: []
# - configMapRef:
# name: config-secret
# SecurityContext holds pod-level security attributes and common container settings.
# Field values of container.securityContext take precedence over field values of PodSecurityContext.
#podSecurityContext:
#fsGroup: 1001
#runAsUser: 1001
#runAsNonRoot: true
securityContext:
runAsUser: 1001
runAsNonRoot: true
strategy:
type: RollingUpdate
rollingUpdate:
maxUnavailable: 1
topologySpreadConstraints: []
# revisionHistoryLimit: 10
# How long to wait for Alert Engine pods to stop gracefully
terminationGracePeriod: 30
# This is the PriorityClass settings as defined in
# https://kubernetes.io/docs/concepts/configuration/pod-priority-preemption/#priorityclass
priorityClassName: ""
env:
- name: "gravitee_processors_alertengineprocessoruseragent_enabled"
value: "false"
- name: "gravitee_processors_alertengineprocessorgeoip_enabled"
value: "false"
# - name: ENV_VARIABLE
# value: ENV_VARIABLE_VALUE
# - name: ENV_VARIABLE_WITH_FROM
# valueFrom:
# configMapKeyRef:
# name: special-config
# key: SPECIAL_LEVEL
service:
type: ClusterIP
# externalTrafficPolicy is used only when configuring type "NodePort" or "LoadBalancer"
externalTrafficPolicy: Cluster
externalPort: 82
internalPort: 8072
internalPortName: http
# appProtocol: http
# annotations:
securityContext:
runAsUser: 1001
runAsNonRoot: true
autoscaling:
enabled: true
minReplicas: 1
maxReplicas: 3
targetAverageUtilization: 50
targetMemoryAverageUtilization: 80
ingress:
enabled: true
path: /
ingressClassName: ""
# Used to create an Ingress record.
hosts:
- ae.example.com
annotations:
kubernetes.io/ingress.class: nginx
nginx.ingress.kubernetes.io/ssl-redirect: "false"
nginx.ingress.kubernetes.io/enable-rewrite-log: "true"
kubernetes.io/app-root: /
kubernetes.io/rewrite-target: /
# ingress.kubernetes.io/configuration-snippet: "etag on;\nproxy_pass_header ETag;\nproxy_set_header if-match \"\";\n"
# kubernetes.io/tls-acme: "true"
#tls:
# Secrets must be manually created in the namespace.
# - secretName: chart-example-tls
# hosts:
# - chart-example.local
tls:
- hosts:
- ae.example.com
secretName: api-custom-cert
resources:
# We usually recommend not to specify default resources and to leave this as a conscious
# choice for the user. This also increases chances charts run on environments with little
# resources, such as Minikube. If you do want to specify resources, uncomment the following
# lines, adjust them as necessary, and remove the curly braces after 'resources:'.
limits:
cpu: 1000m
memory: 1Gi
requests:
cpu: 500m
memory: 512Mi
# lifecycle:
# postStart: '[ "/bin/sh", "-c", "echo Post starting Gravitee.io Alert Engine" ]'
# preStop: '[ "/bin/sh", "-c", "echo Pre stopping Gravitee.io Alert Engine" ]'
## Additional gravitee.io alert engine volume mounts
# Defines additional volume mounts.
# extraVolumeMounts: |
# - name: extra-volume
# mountPath: /mnt/volume
# readOnly: true
# existingClaim: volume-claim
# If you want to use your own gravitee.yml and hazelcast.xml you have to provide your configmap or secret in extraVolume part.
# the name of the volume MUST be "config".
# In this case, values configuration related to gravitee.yml and hazelcast.xml defined in this file will be ignored
#extraVolumes: |
# - name: config
# configMap:
# name: gravitee-config-configmap-name
# - name: config
# secret:
# secretName: gravitee-config-secret-name
livenessProbe:
tcpSocket:
port: http # Same as engine.service.internalPortName
periodSeconds: 10
failureThreshold: 5
readinessProbe:
tcpSocket:
port: http # Same as engine.service.internalPortName
periodSeconds: 5
failureThreshold: 3
startupProbe:
tcpSocket:
port: http # Same as engine.service.internalPortName
initialDelaySeconds: 30
periodSeconds: 5
failureThreshold: 20
pdb:
enabled: false
minAvailable: ""
maxUnavailable: "50%"
cluster:
sync:
time:
value: 30
unit: "SECONDS"
services:
core:
http:
enabled: true
port: 18072
host: localhost
authentication:
type: basic
password: adminadmin
ingress:
enabled: false
ingressClassName: ""
# path: /management/_(.*)
# hosts:
# - ae.example.com
# annotations:
# kubernetes.io/ingress.class: nginx
# nginx.ingress.kubernetes.io/rewrite-target: /_$1
service:
# If you choose to enable this service, you'll need to expose the technical api
# on an accessible host outside of the pod: engine.http.services.core.http.host
enabled: false
externalPort: 72
# type: ClusterIP
# appProtocol: http
metrics:
enabled: false
prometheus:
enabled: true
# You need a license to use alert engine,
# to use it, encode the license file in base64 and file the license.key attribut
# On linux : `base64 -w 0 license.key`
# On macOS : `base64 license.key`
# You can also define it from command line :
# `helm install --name graviteeio-ae graviteeio/ae --set license.key=${GRAVITEESOURCE_LICENSE_B64}`
license:
name: licensekey-ae
# key: <put here your license.key file encoded in base64>