diff options
author | Jack Lucas <jflos@sonoris.net> | 2022-05-03 14:08:47 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2022-05-03 14:08:47 +0000 |
commit | fae3ac622e2c990c15c9954792270c91634f1f57 (patch) | |
tree | 72da91d96613c260e475890c14cc514341d7d76e /kubernetes/common/mariadb-galera/templates/service.yaml | |
parent | a5c5eea4fe3c17594d1ab6629d3f730a0cdc4f03 (diff) | |
parent | ba1200c2bc0c51411ca49efb17f179441285c215 (diff) |
Merge "[COMMON][MARIABD] MariaDB ServiceMesh compatibility"
Diffstat (limited to 'kubernetes/common/mariadb-galera/templates/service.yaml')
-rw-r--r-- | kubernetes/common/mariadb-galera/templates/service.yaml | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/kubernetes/common/mariadb-galera/templates/service.yaml b/kubernetes/common/mariadb-galera/templates/service.yaml index 75aff985e5..880bc55612 100644 --- a/kubernetes/common/mariadb-galera/templates/service.yaml +++ b/kubernetes/common/mariadb-galera/templates/service.yaml @@ -18,3 +18,20 @@ {{ include "common.service" . }} --- {{ include "common.headlessService" . }} +{{- if (include "common.onServiceMesh" .) }} +{{- if eq (default "istio" .Values.global.serviceMesh.engine) "istio" }} +--- +apiVersion: security.istio.io/v1beta1 +kind: PeerAuthentication +metadata: + name: {{ include "common.servicename" . }} + namespace: {{ include "common.namespace" . }} +spec: + selector: + matchLabels: + app: {{ include "common.servicename" . }} + portLevelMtls: + {{ .Values.service.internalPort }}: + mode: DISABLE +{{- end}} +{{- end}} |