-################################################################################\r
-# Copyright (c) 2019 AT&T Intellectual Property. #\r
-# Copyright (c) 2019 Nokia. #\r
-# #\r
-# Licensed under the Apache License, Version 2.0 (the "License"); #\r
-# you may not use this file except in compliance with the License. #\r
-# You may obtain a copy of the License at #\r
-# #\r
-# http://www.apache.org/licenses/LICENSE-2.0 #\r
-# #\r
-# Unless required by applicable law or agreed to in writing, software #\r
-# distributed under the License is distributed on an "AS IS" BASIS, #\r
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. #\r
-# See the License for the specific language governing permissions and #\r
-# limitations under the License. #\r
-################################################################################\r
-\r
-\r
-\r
-kind: Deployment\r
-apiVersion: extensions/v1beta1\r
-metadata:\r
- name: {{ include "vescollector.fullname" . }}\r
- generation: 1\r
- labels:\r
- app: dcae-ves-collector\r
- cfydeployment: ves\r
- cfynode: ves\r
- cfynodeinstance: ves_uj48fg\r
- k8sdeployment: dep-dcae-ves-collector\r
- annotations:\r
- deployment.kubernetes.io/revision: '1'\r
-spec:\r
- replicas: {{ .Values.ves.replicaCount }}\r
- selector:\r
- matchLabels:\r
- app: dcae-ves-collector\r
- cfydeployment: ves\r
- cfynode: ves\r
- cfynodeinstance: ves_uj48fg\r
- k8sdeployment: dep-dcae-ves-collector\r
- template:\r
- metadata:\r
- labels:\r
- app: dcae-ves-collector\r
- cfydeployment: ves\r
- cfynode: ves\r
- cfynodeinstance: ves_uj48fg\r
- k8sdeployment: dep-dcae-ves-collector\r
- spec:\r
- volumes:\r
- - name: component-log\r
- emptyDir: {}\r
- - name: dmaap-config-file\r
- configMap:\r
- name: dmaap-configmap\r
- containers:\r
- - name: {{ include "common.namespace" . }}-{{include "common.name" . }}\r
- image: {{ .Values.ves.onapRepository }}/{{ .Values.ves.image.name }}:{{ .Values.ves.image.tag }}\r
- ports:\r
- - containerPort: 8080\r
- protocol: TCP\r
- - containerPort: 8443\r
- protocol: TCP\r
- env:\r
- - name: CONSUL_HOST\r
- value: consul-server.onap\r
- - name: CONFIG_BINDING_SERVICE\r
- value: config-binding-service\r
- - name: POD_IP\r
- valueFrom:\r
- fieldRef:\r
- apiVersion: v1\r
- fieldPath: status.podIP\r
- resources: {}\r
- volumeMounts:\r
- - name: component-log\r
- mountPath: "/opt/app/VESCollector/logs/ecomp"\r
- - name: dmaap-config-file\r
- mountPath: "/opt/app/VESCollector/etc/DmaapConfig.json"\r
- subPath: DMaapConfig.json\r
- readinessProbe:\r
- httpGet:\r
- path: "/healthcheck"\r
- port: 8080\r
- scheme: HTTP\r
- initialDelaySeconds: 5\r
- timeoutSeconds: 1\r
- periodSeconds: 15\r
- successThreshold: 1\r
- failureThreshold: 1\r
- terminationMessagePath: "/dev/termination-log"\r
- terminationMessagePolicy: File\r
- imagePullPolicy: IfNotPresent\r
- restartPolicy: Always\r
- terminationGracePeriodSeconds: 30\r
- dnsPolicy: ClusterFirst\r
- securityContext: {}\r
- imagePullSecrets:\r
- - name: onap-docker-registry-key\r
- hostname: dcae-ves-collector\r
- schedulerName: default-scheduler\r
- strategy:\r
- type: RollingUpdate\r
- rollingUpdate:\r
- maxUnavailable: 1\r
- maxSurge: 1\r
- revisionHistoryLimit: 10\r
- progressDeadlineSeconds: 600\r
+################################################################################
+# Copyright (c) 2019 AT&T Intellectual Property. #
+# Copyright (c) 2019 Nokia. #
+# #
+# Licensed under the Apache License, Version 2.0 (the "License"); #
+# you may not use this file except in compliance with the License. #
+# You may obtain a copy of the License at #
+# #
+# http://www.apache.org/licenses/LICENSE-2.0 #
+# #
+# Unless required by applicable law or agreed to in writing, software #
+# distributed under the License is distributed on an "AS IS" BASIS, #
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. #
+# See the License for the specific language governing permissions and #
+# limitations under the License. #
+################################################################################
+
+
+
+kind: Deployment
+apiVersion: apps/v1
+metadata:
+ name: {{ include "common.deploymentname.ves" . }}
+ generation: 1
+ labels:
+ app: {{ include "common.namespace.aux" . }}-{{ include "common.name.ves" . }}
+ chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
+ release: {{ .Release.Name }}
+ heritage: {{ .Release.Service }}
+ annotations:
+ deployment.kubernetes.io/revision: '1'
+spec:
+ replicas: {{ .Values.ves.replicaCount }}
+ selector:
+ matchLabels:
+ app: {{ include "common.namespace.aux" . }}-{{ include "common.name.ves" . }}
+ release: {{ .Release.Name }}
+ template:
+ metadata:
+ labels:
+ app: {{ include "common.namespace.aux" . }}-{{ include "common.name.ves" . }}
+ release: {{ .Release.Name }}
+ spec:
+ hostname: {{ include "common.name.ves" . }}
+ volumes:
+ - name: component-log
+ emptyDir: {}
+ - name: ves-config-mount
+ configMap:
+ name: {{ include "common.configmapname.ves" . }}
+ - name: ves-config-mount-properties
+ configMap:
+ name: {{ include "common.configmapname.ves" . }}-properties
+ imagePullSecrets:
+ - name: onap-docker-registry-key
+ containers:
+ - name: {{ include "common.containername.ves" . }}
+ image: {{ .Values.ves.onapRepository }}/{{ .Values.ves.image.name }}:{{ .Values.ves.image.tag }}
+ imagePullPolicy: {{ include "common.pullPolicy" . }}
+ ports:
+ - containerPort: {{ include "common.serviceport.ves.http" . }}
+ protocol: TCP
+ - containerPort: {{ include "common.serviceport.ves.https" . }}
+ protocol: TCP
+ volumeMounts:
+ - name: component-log
+ mountPath: "/opt/app/VESCollector/logs/ecomp"
+ - name: ves-config-mount
+ mountPath: "/opt/app/VESCollector/etc/DmaapConfig.json"
+ subPath: DmaapConfig.json
+ - name: ves-config-mount-properties
+ mountPath: "/opt/app/VESCollector/etc/collector.properties"
+ subPath: collector.properties
+ readinessProbe:
+ httpGet:
+ path: "/healthcheck"
+ port: {{ include "common.serviceport.ves.http" . }}
+ scheme: HTTP
+ initialDelaySeconds: 5
+ timeoutSeconds: 1
+ periodSeconds: 15
+ successThreshold: 1
+ failureThreshold: 1
+ terminationMessagePath: "/dev/termination-log"
+ terminationMessagePolicy: File
+ restartPolicy: Always