X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=kubernetes%2Fcommon%2Fmariadb-galera%2Ftemplates%2Fservice.yaml;h=2dea4e9ac11ec6d33626566dabb71c44d097c644;hb=5faef933c24e27e439bd109c29a0278f43e95968;hp=880bc556128f3d2ac29507735df14a4525d1c437;hpb=ba1200c2bc0c51411ca49efb17f179441285c215;p=oom.git diff --git a/kubernetes/common/mariadb-galera/templates/service.yaml b/kubernetes/common/mariadb-galera/templates/service.yaml index 880bc55612..2dea4e9ac1 100644 --- a/kubernetes/common/mariadb-galera/templates/service.yaml +++ b/kubernetes/common/mariadb-galera/templates/service.yaml @@ -15,11 +15,13 @@ # limitations under the License. */}} +{{- if not .Values.global.mariadbGalera.useOperator }} {{ include "common.service" . }} --- {{ include "common.headlessService" . }} +{{- end }} {{- if (include "common.onServiceMesh" .) }} -{{- if eq (default "istio" .Values.global.serviceMesh.engine) "istio" }} +{{- if eq (default "istio" .Values.global.serviceMesh.engine) "istio" }} --- apiVersion: security.istio.io/v1beta1 kind: PeerAuthentication @@ -31,7 +33,7 @@ spec: matchLabels: app: {{ include "common.servicename" . }} portLevelMtls: - {{ .Values.service.internalPort }}: - mode: DISABLE -{{- end}} -{{- end}} + '{{ .Values.service.internalPort }}': + mode: STRICT +{{- end }} +{{- end }}