blob: 880bc556128f3d2ac29507735df14a4525d1c437 [file] [log] [blame]
Krzysztof Opasiakc0a57f82020-03-23 15:50:13 +01001{{/*
pramod47b1b822018-08-28 15:41:45 +00002# Copyright © 2018 Amdocs, Bell Canada
Sylvain Desbureaux93a5b492020-11-27 11:07:42 +01003# Copyright © 2020 Orange
pramod47b1b822018-08-28 15:41:45 +00004#
5# Licensed under the Apache License, Version 2.0 (the "License");
6# you may not use this file except in compliance with the License.
7# You may obtain a copy of the License at
8#
9# http://www.apache.org/licenses/LICENSE-2.0
10#
11# Unless required by applicable law or agreed to in writing, software
12# distributed under the License is distributed on an "AS IS" BASIS,
13# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14# See the License for the specific language governing permissions and
15# limitations under the License.
Krzysztof Opasiakc0a57f82020-03-23 15:50:13 +010016*/}}
pramod47b1b822018-08-28 15:41:45 +000017
Sylvain Desbureaux93a5b492020-11-27 11:07:42 +010018{{ include "common.service" . }}
19---
20{{ include "common.headlessService" . }}
Andreas Geisslerba1200c2022-04-07 17:02:59 +020021{{- if (include "common.onServiceMesh" .) }}
22{{- if eq (default "istio" .Values.global.serviceMesh.engine) "istio" }}
23---
24apiVersion: security.istio.io/v1beta1
25kind: PeerAuthentication
26metadata:
27 name: {{ include "common.servicename" . }}
28 namespace: {{ include "common.namespace" . }}
29spec:
30 selector:
31 matchLabels:
32 app: {{ include "common.servicename" . }}
33 portLevelMtls:
34 {{ .Values.service.internalPort }}:
35 mode: DISABLE
36{{- end}}
37{{- end}}