X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=ric-aux%2F80-Auxiliary-Functions%2Fhelm%2Fves%2Ftemplates%2Fves-deployment.yaml;h=41751f34d7b3a73f6e4b6ae6b0276a180081b45c;hb=9ed8818a3833973d754030f8043c73b582cd437d;hp=05040f8d88344cfe69a2c54f7de15ec2079b02ca;hpb=7dcc52697c36fa991a0281cacc732b738337ded6;p=it%2Fdep.git diff --git a/ric-aux/80-Auxiliary-Functions/helm/ves/templates/ves-deployment.yaml b/ric-aux/80-Auxiliary-Functions/helm/ves/templates/ves-deployment.yaml index 05040f8d..41751f34 100644 --- a/ric-aux/80-Auxiliary-Functions/helm/ves/templates/ves-deployment.yaml +++ b/ric-aux/80-Auxiliary-Functions/helm/ves/templates/ves-deployment.yaml @@ -1,80 +1,80 @@ -################################################################################ -# 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: extensions/v1beta1 -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: dmaap-config-file - configMap: - name: {{ include "common.configmapname.ves" . }} - imagePullPolicy: {{ include "common.pullPolicy" . }} - imagePullSecrets: - - name: onap-docker-registry-key - containers: - - name: {{ include "common.containername.ves" . }} - image: {{ .Values.ves.onapRepository }}/{{ .Values.ves.image.name }}:{{ .Values.ves.image.tag }} - ports: - - containerPort: {{ include "common.serviceport.ves.http.container" . }} - protocol: TCP - - containerPort: {{ include "common.serviceport.ves.https.container" . }} - protocol: TCP - volumeMounts: - - name: component-log - mountPath: "/opt/app/VESCollector/logs/ecomp" - - name: dmaap-config-file - mountPath: "/opt/app/VESCollector/etc/DmaapConfig.json" - subPath: DMaapConfig.json - readinessProbe: - httpGet: - path: "/healthcheck" - port: {{ include "common.serviceport.ves.http.container" . }} - scheme: HTTP - initialDelaySeconds: 5 - timeoutSeconds: 1 - periodSeconds: 15 - successThreshold: 1 - failureThreshold: 1 - terminationMessagePath: "/dev/termination-log" - terminationMessagePolicy: File +################################################################################ +# 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: extensions/v1beta1 +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: dmaap-config-file + configMap: + name: {{ include "common.configmapname.ves" . }} + 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.container" . }} + protocol: TCP + - containerPort: {{ include "common.serviceport.ves.https.container" . }} + protocol: TCP + volumeMounts: + - name: component-log + mountPath: "/opt/app/VESCollector/logs/ecomp" + - name: dmaap-config-file + mountPath: "/opt/app/VESCollector/etc/DmaapConfig.json" + subPath: DMaapConfig.json + readinessProbe: + httpGet: + path: "/healthcheck" + port: {{ include "common.serviceport.ves.http.container" . }} + scheme: HTTP + initialDelaySeconds: 5 + timeoutSeconds: 1 + periodSeconds: 15 + successThreshold: 1 + failureThreshold: 1 + terminationMessagePath: "/dev/termination-log" + terminationMessagePolicy: File restartPolicy: Always \ No newline at end of file