yuryn | fcef994 | 2017-10-26 17:10:50 +0300 | [diff] [blame] | 1 | #{{ if not .Values.disableDcaeDcaeController }} |
Mike Elliott | 586f03b | 2017-09-08 12:46:15 -0400 | [diff] [blame] | 2 | apiVersion: v1 |
| 3 | kind: Service |
| 4 | metadata: |
| 5 | labels: |
| 6 | app: dcae-controller |
| 7 | version: latest |
| 8 | name: dcae-controller |
| 9 | namespace: "{{ .Values.nsPrefix }}-dcae" |
| 10 | spec: |
| 11 | ports: |
| 12 | - name: dcae-con1 |
| 13 | port: 8000 |
| 14 | protocol: TCP |
| 15 | targetPort: 8000 |
| 16 | nodePort: {{ .Values.nodePortPrefix }}34 |
| 17 | - name: dcae-con2 |
| 18 | port: 9998 |
| 19 | protocol: TCP |
| 20 | targetPort: 9998 |
| 21 | nodePort: {{ .Values.nodePortPrefix }}35 |
| 22 | selector: |
| 23 | app: dcae-controller |
| 24 | type: NodePort |
| 25 | --- |
| 26 | apiVersion: extensions/v1beta1 |
| 27 | kind: Deployment |
| 28 | metadata: |
| 29 | name: dcae-controller |
| 30 | namespace: "{{ .Values.nsPrefix }}-dcae" |
| 31 | spec: |
| 32 | selector: |
| 33 | matchLabels: |
| 34 | app: dcae-controller |
| 35 | template: |
| 36 | metadata: |
| 37 | labels: |
| 38 | app: dcae-controller |
| 39 | name: dcae-controller |
| 40 | spec: |
| 41 | containers: |
| 42 | - image: {{ .Values.image.controller }} |
| 43 | imagePullPolicy: {{ .Values.pullPolicy }} |
| 44 | name: dcae-controller |
| 45 | ports: |
| 46 | - containerPort: 8000 |
| 47 | - containerPort: 9998 |
| 48 | env: |
| 49 | # - name: KAFKA_ZOOKEEPER_CONNECT |
| 50 | # value: "zookeeper:2181" |
| 51 | # command: |
| 52 | # - start-kafka.sh |
| 53 | volumeMounts: |
| 54 | - mountPath: /opt/app/config |
| 55 | name: dcae-controller-config |
| 56 | restartPolicy: Always |
| 57 | volumes: |
| 58 | - name: dcae-controller-config |
| 59 | hostPath: |
| 60 | path: /dockerdata-nfs/{{ .Values.nsPrefix }}/dcae/dcae-controller/config |
| 61 | imagePullSecrets: |
| 62 | - name: "{{ .Values.nsPrefix }}-docker-registry-key" |
yuryn | fcef994 | 2017-10-26 17:10:50 +0300 | [diff] [blame] | 63 | #{{ end }} |