-
Notifications
You must be signed in to change notification settings - Fork 56
/
values-demo.yaml
284 lines (255 loc) · 7.94 KB
/
values-demo.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
# Demo values for testkube.
# This is a YAML-formatted file.
# Declare variables to be passed into your templates.
replicaCount: 1
image:
repository: ""
pullPolicy: Never
# Overrides the image tag whose default is the chart appVersion.
tag: ""
imagePullSecrets: []
nameOverride: "testkube"
fullnameOverride: "testkube"
serviceAccount:
# Specifies whether a service account should be created
create: true
# Annotations to add to the service account
annotations: {}
# The name of the service account to use.
# If not set and create is true, a name is generated using the fullname template
name: ""
podAnnotations: {}
podSecurityContext:
{}
# fsGroup: 2000
securityContext:
{}
# capabilities:
# drop:
# - ALL
# readOnlyRootFilesystem: true
# runAsNonRoot: true
# runAsUser: 1000
service:
type: ClusterIP
port: 80
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:
{}
# 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: 100m
# memory: 128Mi
# requests:
# cpu: 100m
# memory: 128Mi
autoscaling:
enabled: false
minReplicas: 1
maxReplicas: 100
targetCPUUtilizationPercentage: 80
# targetMemoryUtilizationPercentage: 80
nodeSelector: {}
tolerations: []
affinity: {}
# For more configuration parameters of MongoDB chart please look here:
# https://github.com/bitnami/charts/tree/master/bitnami/mongodb#parameters
mongodb:
enabled: true
nameOverride: "mongodb"
fullnameOverride: "testkube-mongodb"
architecture: "standalone"
auth:
enabled: false
# rootPassword: "123DefaultOne321"
service:
port: "27017"
portName: "mongodb"
nodePort: true
clusterIP: ""
testkube-api:
prometheus:
enabled: false
nameOverride: "api-server"
fullnameOverride: "testkube-api-server"
image:
repository: kubeshop/testkube-api-server
pullPolicy: Always
# Overrides the image tag whose default is the chart appVersion.
# TODO we should stick to static version
# tag: "latest"
service:
type: ClusterIP
port: 8088
minio:
enabled: true
nodeSelector: {}
tolerations: []
affinity: {}
image: minio/minio:latest
uiIngress:
enabled: true
annotations:
kubernetes.io/ingress.class: nginx
nginx.ingress.kubernetes.io/rewrite-target: /$1
nginx.ingress.kubernetes.io/force-ssl-redirect: "true"
nginx.ingress.kubernetes.io/ssl-redirect: "true"
nginx.ingress.kubernetes.io/enable-cors: "true"
nginx.ingress.kubernetes.io/cors-allow-methods: "GET, POST"
nginx.ingress.kubernetes.io/cors-allow-credentials: "false"
# specify the name of the global IP address resource to be associated with the HTTP(S) Load Balancer.
kubernetes.io/ingress.global-static-ip-name: testkube-demo
# add an annotation indicating the issuer to use.
# cert-manager.io/cluster-issuer: letsencrypt-prod
# controls whether the ingress is modified ‘in-place’,
# or a new one is created specifically for the HTTP01 challenge.
# acme.cert-manager.io/http01-edit-in-place: "true"
# for websockets
nginx.ingress.kubernetes.io/proxy-read-timeout: "3600"
nginx.ingress.kubernetes.io/proxy-send-timeout: "3600"
nginx.ingress.kubernetes.io/server-snippet: |
set $methodallowed "";
set $pathallowed "";
if ( $request_method = GET ){
set $methodallowed "true";
set $pathallowed "true";
}
if ( $request_method = POST ){
set $methodallowed "true";
}
if ( $uri ~ "^(.*)/tests/(.*)/executions$" ){
set $pathallowed "true";
}
if ( $uri ~ "^(.*)/test-suites/(.*)/executions$" ){
set $pathallowed "true";
}
if ( $uri ~ "^(.*)/tests$" ){
set $pathallowed "true";
}
set $condition "$methodallowed+$pathallowed";
if ( $condition != "true+true" ) {
return 401;
}
path: /results/(v\d/.*)
hosts:
- demo.testkube.io
tlsenabled: "true"
tls: # < placing a host in the TLS config will indicate a certificate should be created
- hosts:
- demo.testkube.io
secretName: testkube-demo-cert-secret
cliIngress:
enabled: true
annotations:
kubernetes.io/ingress.class: nginx
nginx.ingress.kubernetes.io/rewrite-target: /$1
nginx.ingress.kubernetes.io/force-ssl-redirect: "true"
nginx.ingress.kubernetes.io/ssl-redirect: "true"
nginx.ingress.kubernetes.io/configuration-snippet: |
more_set_input_headers "X-CLI-Ingress: true";
# parameters to check oauth token (by default github one)
oauth:
clientID: ""
clientSecret: ""
provider: "github"
scopes: ""
path: /api/(v\d/.*)
hosts:
- demo.testkube.io
tlsenabled: "false"
tls: # < placing a host in the TLS config will indicate a certificate should be created
- hosts:
- demo.testkube.io
secretName: testkube-demo-cert-secret
storage:
endpoint: ""
endpoint_port: "9000"
accessKeyId: "minio"
accessKey: "minio123"
location: ""
token: ""
SSL: false
scrapperEnabled: true
mongodb:
dsn: "mongodb://testkube-mongodb:27017"
# or you can pass mongo dsn from secret
# secretName: testkube-secrets
# secretKey: mongo-dsn
analyticsEnabled: true
slackToken: ""
executors: ""
testkube-dashboard:
enabled: true
nameOverride: "dashboard"
fullnameOverride: "testkube-dashboard"
image:
repository: kubeshop/testkube-dashboard
pullPolicy: Always
#tag: "main" #it will take the tag from appVersion
service:
type: ClusterIP
port: 8080
ingress:
enabled: "true"
annotations:
kubernetes.io/ingress.class: nginx
nginx.ingress.kubernetes.io/force-ssl-redirect: "true"
nginx.ingress.kubernetes.io/ssl-redirect: "true"
nginx.ingress.kubernetes.io/enable-cors: "true"
nginx.ingress.kubernetes.io/cors-allow-methods: "GET"
nginx.ingress.kubernetes.io/cors-allow-credentials: "false"
# specify the name of the global IP address resource to be associated with the HTTP(S) Load Balancer.
kubernetes.io/ingress.global-static-ip-name: testkube-demo
# add an annotation indicating the issuer to use.
cert-manager.io/cluster-issuer: letsencrypt-prod
# controls whether the ingress is modified ‘in-place’,
# or a new one is created specifically for the HTTP01 challenge.
acme.cert-manager.io/http01-edit-in-place: "true"
path: /
hosts:
- demo.testkube.io
- dashboard.testkube.io
tlsenabled: "true"
tls: # < placing a host in the TLS config will indicate a certificate should be created
- hosts:
- demo.testkube.io
- dashboard.testkube.io
secretName: testkube-demo-cert-secret
apiServerEndpoint: "demo.testkube.io/results" #get the address of the endpoint or set it using helm
oauth2:
enabled: false
name: oauth2-proxy
path: /oauth2
port: 4180
selector: k8s-app
image:
repository: quay.io/oauth2-proxy/oauth2-proxy
tag: latest
pullPolicy: Always
env:
clientId: ""
clientSecret: ""
githubOrg: ""
cookieSecret: ""
cookieSecure: "false"
redirectUrl: "http://demo.testkube.io/oauth2/callback"
testkube-operator:
imageProxy: "gcr.io/kubebuilder/kube-rbac-proxy:v0.8.0"