config added
This commit is contained in:
parent
ae02d98d37
commit
e58373ffff
13
platformQuickStarts/helm/webgoat/templates/configmap.yaml
Normal file
13
platformQuickStarts/helm/webgoat/templates/configmap.yaml
Normal file
@ -0,0 +1,13 @@
|
||||
kind: ConfigMap
|
||||
apiVersion: v1
|
||||
metadata:
|
||||
name: {{ .Values.webgoat_server.name }}-configmap
|
||||
namespace: {{ .Values.namespace }}
|
||||
labels:
|
||||
app.kubernetes.io/part-of: {{ .Values.webgoat_server.name }}
|
||||
data:
|
||||
TZ: 'Europe/Amsterdam'
|
||||
EXCLUDE_CATEGORIES: 'CLIENT_SIDE'
|
||||
EXCLUDE_LESSONS: 'SqlInjectionAdvanced'
|
||||
WEBWOLF_HOST: '{{ .Values.webgoat_server.name }}-service'
|
||||
WEBWOLF_PORT: '9090'
|
@ -16,6 +16,10 @@ spec:
|
||||
labels:
|
||||
app: {{ .Values.webgoat_server.name }}
|
||||
spec:
|
||||
volumes:
|
||||
- name: webgoat-volume-1
|
||||
#persistentVolumeClaim:
|
||||
# claimName: {{ .Values.webgoat_server.name }}-pvc
|
||||
containers:
|
||||
- resources:
|
||||
limits:
|
||||
@ -32,7 +36,15 @@ spec:
|
||||
protocol: TCP
|
||||
image: {{ .Values.webgoat_server.image }}
|
||||
imagePullPolicy: IfNotPresent
|
||||
volumeMounts:
|
||||
- name: webgoat-volume-1
|
||||
mountPath: /home/webgoat/.webgoat-8.2.3-SNAPSHOT
|
||||
terminationMessagePolicy: File
|
||||
envFrom:
|
||||
- configMapRef:
|
||||
name: {{ .Values.webgoat_server.name }}-configmap
|
||||
- secretRef:
|
||||
name: {{ .Values.webgoat_server.name }}-secret
|
||||
restartPolicy: Always
|
||||
terminationGracePeriodSeconds: 30
|
||||
dnsPolicy: ClusterFirst
|
||||
@ -44,4 +56,4 @@ spec:
|
||||
maxUnavailable: 25%
|
||||
maxSurge: 25%
|
||||
revisionHistoryLimit: 10
|
||||
progressDeadlineSeconds: 600
|
||||
progressDeadlineSeconds: 600
|
||||
|
@ -6,9 +6,6 @@ metadata:
|
||||
name: {{ .Values.webgoat_server.name }}-wolf
|
||||
namespace: {{ .Values.namespace }}
|
||||
spec:
|
||||
tls:
|
||||
termination: edge
|
||||
insecureEdgeTerminationPolicy: Redirect
|
||||
path: /
|
||||
port:
|
||||
targetPort: 9090
|
||||
@ -16,4 +13,4 @@ spec:
|
||||
kind: Service
|
||||
name: {{ .Values.webgoat_server.name }}-service
|
||||
weight: 100
|
||||
wildcardPolicy: None
|
||||
wildcardPolicy: None
|
||||
|
7
platformQuickStarts/helm/webgoat/templates/secrets.yaml
Normal file
7
platformQuickStarts/helm/webgoat/templates/secrets.yaml
Normal file
@ -0,0 +1,7 @@
|
||||
apiVersion: v1
|
||||
kind: Secret
|
||||
metadata:
|
||||
name: {{ .Values.webgoat_server.name }}-secret
|
||||
namespace: {{ .Values.namespace }}
|
||||
stringData:
|
||||
ADMIN_PASSWORD: admin
|
Loading…
x
Reference in New Issue
Block a user