Enable Istio sidecar injection for multicloud
[oom.git] / kubernetes / multicloud / charts / multicloud-windriver / templates / deployment.yaml
index 02a78bb..a48e1e1 100644 (file)
@@ -35,6 +35,8 @@ spec:
         app: {{ include "common.name" . }}
         release: {{ .Release.Name }}
       name: {{ include "common.name" . }}
+      annotations:
+        sidecar.istio.io/inject: "{{.Values.istioSidecar}}"
     spec:
      containers:
      - env:
@@ -43,7 +45,7 @@ spec:
        - name: MSB_PORT
          value: "{{ .Values.config.msbPort }}"
        - name: AAI_ADDR
-         value: aai-service.{{ include "common.namespace" . }}
+         value: aai.{{ include "common.namespace" . }}
        - name: AAI_PORT
          value: "{{ .Values.config.aai.port }}"
        - name: AAI_SCHEMA_VERSION
@@ -59,7 +61,7 @@ spec:
        - mountPath: /opt/windriver/titanium_cloud/pub/config/log.yml
          name: windriver-logconfig
          subPath: log.yml
-       image: "{{ .Values.global.repository | default .Values.repository }}/{{ .Values.image }}"
+       image: "{{ include "common.repository" . }}/{{ .Values.image }}"
        imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
        ports:
        - containerPort: {{ .Values.service.internalPort }}