2023-07-24 17:24:40 +03:00

36 lines
786 B
YAML

{{- if not (eq .Values.kind "Vanilla") -}}
{{- if and (eq "standalone" .Values.appsec.mode) (eq .Values.appsec.playground false) }}
apiVersion: v1
kind: Service
metadata:
name: {{ .Values.appsec.learning.name }}-svc
namespace: {{ .Release.Namespace }}
spec:
ports:
- name: "http"
port: 80
targetPort: 8080
- name: "https"
port: 443
targetPort: 8080
selector:
app: {{ .Values.appsec.learning.name }}-lbl
---
apiVersion: v1
kind: Service
metadata:
name: {{ .Values.appsec.storage.name }}-svc
namespace: {{ .Release.Namespace }}
spec:
ports:
- name: "http"
port: 80
targetPort: 8080
- name: "https"
port: 443
targetPort: 8080
selector:
app: {{ .Values.appsec.storage.name }}-lbl
{{- end }}
{{- end }}