Merge "[COMMON] new logConfiguration chart"
[oom.git] / kubernetes / dcaegen2 / components / dcae-bootstrap / templates / deployment.yaml
index 9009f6b..5c96138 100644 (file)
@@ -16,7 +16,7 @@
 # limitations under the License.
 # ============LICENSE_END=========================================================
 
-apiVersion: extensions/v1beta1
+apiVersion: apps/v1
 kind: Deployment
 metadata:
   name: {{ include "common.fullname" . }}
@@ -28,6 +28,9 @@ metadata:
     heritage: {{ .Release.Service }}
 spec:
   replicas: 1
+  selector:
+    matchLabels:
+      app: {{ include "common.name" . }}
   template:
     metadata:
       labels:
@@ -74,7 +77,6 @@ spec:
           - dcae-inventory-api
           - "-t"
           - "15"
-
         env:
         - name: NAMESPACE
           valueFrom:
@@ -96,6 +98,15 @@ spec:
         volumeMounts:
         - mountPath: /opt/app/osaaf
           name: tls-info
+      - name: init-consul
+        image: {{ .Values.global.consulLoaderRepository }}/{{ .Values.global.consulLoaderImage }}
+        imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
+        args:
+        - --service
+        - "config-binding-service|config-binding-service.{{ include "common.namespace" . }}|10000"
+        - --service
+        - "config_binding_service|config-binding-service.{{ include "common.namespace" . }}|10000"
+        resources: {}
       containers:
         - name: {{ include "common.name" . }}
           image: "{{ include "common.repository" . }}/{{ .Values.image }}"