UNCLASSIFIED - NO CUI

Skip to content
Snippets Groups Projects

enabling mTLS for gitlab

Merged Jordan Olachea requested to merge bb-1045 into main
Compare and
9 files
+ 108
2
Compare changes
  • Side-by-side
  • Inline
Files
9
{{ if .Values.istio.enabled }}
apiVersion: security.istio.io/v1beta1
kind: PeerAuthentication
metadata:
name: gitlab-metrics-exception
namespace: {{ .Release.Namespace }}
spec:
mtls:
mode: {{ .Values.istio.mtls.mode }}
selector:
matchLabels:
app: gitlab-exporter
portLevelMtls:
"9168":
mode: PERMISSIVE
{{- end }}
---
# metrics for gitlab but only when gitlab runner is enabled
{{ if .Values.istio.enabled }}
apiVersion: security.istio.io/v1beta1
kind: PeerAuthentication
metadata:
name: gitlab-metrics-runner-exception
namespace: {{ .Release.Namespace }}
spec:
mtls:
mode: {{ .Values.istio.mtls.mode }}
selector:
matchLabels:
app: gitlab-runner-gitlab-runner
portLevelMtls:
"9252":
mode: PERMISSIVE
{{- end }}
\ No newline at end of file
Loading