2017-11-24 09:02:48 +01:00
|
|
|
apiVersion: extensions/v1beta1
|
|
|
|
kind: Deployment
|
2016-11-21 09:07:04 +01:00
|
|
|
metadata:
|
2018-09-12 08:38:29 +02:00
|
|
|
name: core
|
2016-11-21 09:07:04 +01:00
|
|
|
labels:
|
2018-09-12 08:38:29 +02:00
|
|
|
name: core
|
2016-11-21 09:07:04 +01:00
|
|
|
spec:
|
|
|
|
replicas: 1
|
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
labels:
|
2018-09-12 08:38:29 +02:00
|
|
|
name: core-apps
|
2016-11-21 09:07:04 +01:00
|
|
|
spec:
|
|
|
|
containers:
|
2018-09-12 08:38:29 +02:00
|
|
|
- name: core-app
|
|
|
|
image: vmware/harbor-core:v1.2.0
|
2016-11-21 09:07:04 +01:00
|
|
|
imagePullPolicy: IfNotPresent
|
|
|
|
env:
|
|
|
|
- name: CONFIG_PATH
|
|
|
|
valueFrom:
|
|
|
|
configMapKeyRef:
|
2018-09-12 08:38:29 +02:00
|
|
|
name: harbor-core-config
|
2016-11-21 09:07:04 +01:00
|
|
|
key: CONFIG_PATH
|
|
|
|
- name: LOG_LEVEL
|
|
|
|
valueFrom:
|
|
|
|
configMapKeyRef:
|
2018-09-12 08:38:29 +02:00
|
|
|
name: harbor-core-config
|
2016-11-21 09:07:04 +01:00
|
|
|
key: LOG_LEVEL
|
2018-09-12 08:38:29 +02:00
|
|
|
- name: CORE_SECRET
|
2016-11-21 09:07:04 +01:00
|
|
|
valueFrom:
|
|
|
|
configMapKeyRef:
|
2018-09-12 08:38:29 +02:00
|
|
|
name: harbor-core-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:
|
2018-09-12 08:38:29 +02:00
|
|
|
name: harbor-core-config
|
2017-08-18 20:11:15 +02:00
|
|
|
key: JOBSERVICE_SECRET
|
2016-11-21 09:07:04 +01:00
|
|
|
- name: GODEBUG
|
|
|
|
valueFrom:
|
|
|
|
configMapKeyRef:
|
2018-09-12 08:38:29 +02:00
|
|
|
name: harbor-core-config
|
2016-11-21 09:07:04 +01:00
|
|
|
key: GODEBUG
|
|
|
|
ports:
|
|
|
|
- containerPort: 80
|
|
|
|
volumeMounts:
|
|
|
|
- name: config
|
2018-09-12 08:38:29 +02:00
|
|
|
mountPath: /etc/core
|
2016-11-21 09:07:04 +01:00
|
|
|
volumes:
|
|
|
|
- name: config
|
|
|
|
configMap:
|
2018-09-12 08:38:29 +02:00
|
|
|
name: harbor-core-config
|
2016-11-21 09:07:04 +01:00
|
|
|
items:
|
|
|
|
- key: config
|
|
|
|
path: app.conf
|
|
|
|
- key: pkey
|
2017-08-18 20:11:15 +02:00
|
|
|
path: private_key.pem
|
2017-09-25 11:25:16 +02:00
|
|
|
- key: SECRET_KEY
|
|
|
|
path: key
|