harbor/make/kubernetes/jobservice/jobservice.deploy.yaml

61 lines
1.6 KiB
YAML
Raw Normal View History

apiVersion: extensions/v1beta1
kind: Deployment
2016-11-21 09:07:04 +01:00
metadata:
name: jobservice
2016-11-21 09:07:04 +01:00
labels:
name: jobservice
2016-11-21 09:07:04 +01:00
spec:
replicas: 1
template:
metadata:
labels:
name: jobservice-apps
spec:
containers:
- name: jobservice-app
image: vmware/harbor-jobservice:v1.2.0
2016-11-21 09:07:04 +01:00
imagePullPolicy: IfNotPresent
env:
- name: CORE_SECRET
2016-11-21 09:07:04 +01:00
valueFrom:
configMapKeyRef:
name: harbor-jobservice-config
key: CORE_SECRET
2017-08-18 20:11:15 +02:00
- name: JOBSERVICE_SECRET
2016-11-21 09:07:04 +01:00
valueFrom:
configMapKeyRef:
name: harbor-jobservice-config
2017-08-18 20:11:15 +02:00
key: JOBSERVICE_SECRET
2016-11-21 09:07:04 +01:00
- name: CONFIG_PATH
valueFrom:
configMapKeyRef:
name: harbor-jobservice-config
key: CONFIG_PATH
- name: LOG_LEVEL
valueFrom:
configMapKeyRef:
name: harbor-jobservice-config
key: LOG_LEVEL
- name: GODEBUG
valueFrom:
configMapKeyRef:
name: harbor-jobservice-config
key: GODEBUG
ports:
- containerPort: 80
volumeMounts:
- name: config
mountPath: /etc/jobservice
- name: logs
mountPath: /var/log/jobs
volumes:
- name: config
configMap:
name: harbor-jobservice-config
items:
- key: config
path: app.conf
- name: logs
persistentVolumeClaim:
claimName: log-pvc