blob: 6099ad3d79f85554c063189550fa5eac9030015b [file] [log] [blame]
Andy Bavier7a080492018-08-30 14:26:09 -07001---
2
3# Copyright 2018-present Open Networking Foundation
4#
5# Licensed under the Apache License, Version 2.0 (the "License");
6# you may not use this file except in compliance with the License.
7# You may obtain a copy of the License at
8#
9# http://www.apache.org/licenses/LICENSE-2.0
10#
11# Unless required by applicable law or agreed to in writing, software
12# distributed under the License is distributed on an "AS IS" BASIS,
13# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14# See the License for the specific language governing permissions and
15# limitations under the License.
16
17
18apiVersion: batch/v1
19kind: Job
20metadata:
21 name: {{ template "ponsim-pod.fullname" . }}-ponsim-pod
22 labels:
23 app: {{ template "ponsim-pod.name" . }}
24 chart: {{ template "ponsim-pod.chart" . }}
25 release: {{ .Release.Name }}
26 heritage: {{ .Release.Service }}
27spec:
28 backoffLimit: 12
29 template:
30 metadata:
31 labels:
32 app: {{ template "ponsim-pod.name" . }}
33 release: {{ .Release.Name }}
34 annotations:
35 checksum/config: {{ include (print $.Template.BasePath "/tosca-configmap.yaml") . | sha256sum }}
36 spec:
37 restartPolicy: OnFailure
38 containers:
39 - name: {{ .Chart.Name }}-ponsim-pod
40 image: {{ tpl .Values.tosca_loaderImage . | quote }}
41 imagePullPolicy: {{ .Values.imagePullPolicy }}
42 env:
43 - name: XOS_USER
44 value: {{ .Values.xosAdminUser }}
45 - name: XOS_PASSWD
46 valueFrom:
47 secretKeyRef:
48 name: xos-admin-passwd-secret
49 key: password
50 volumeMounts:
51 - name: ponsim-pod-tosca
52 mountPath: /opt/tosca
53 volumes:
54 - name: ponsim-pod-tosca
55 configMap:
56 name: ponsim-pod-tosca