2016-11-21 09:07:04 +01:00
|
|
|
apiVersion: v1
|
|
|
|
kind: ReplicationController
|
|
|
|
metadata:
|
|
|
|
name: ui-rc
|
|
|
|
labels:
|
|
|
|
name: ui-rc
|
|
|
|
spec:
|
|
|
|
replicas: 1
|
|
|
|
selector:
|
|
|
|
name: ui-apps
|
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
name: ui-apps
|
|
|
|
spec:
|
|
|
|
containers:
|
|
|
|
- name: ui-app
|
2017-09-25 11:25:16 +02:00
|
|
|
image: vmware/harbor-ui:v1.2.0
|
2016-11-21 09:07:04 +01:00
|
|
|
imagePullPolicy: IfNotPresent
|
|
|
|
env:
|
|
|
|
- name: CONFIG_PATH
|
|
|
|
valueFrom:
|
|
|
|
configMapKeyRef:
|
|
|
|
name: harbor-ui-config
|
|
|
|
key: CONFIG_PATH
|
|
|
|
- name: LOG_LEVEL
|
|
|
|
valueFrom:
|
|
|
|
configMapKeyRef:
|
|
|
|
name: harbor-ui-config
|
|
|
|
key: LOG_LEVEL
|
|
|
|
- name: UI_SECRET
|
|
|
|
valueFrom:
|
|
|
|
configMapKeyRef:
|
|
|
|
name: harbor-ui-config
|
|
|
|
key: UI_SECRET
|
2017-08-18 20:11:15 +02:00
|
|
|
- name: JOBSERVICE_SECRET
|
2016-11-21 09:07:04 +01:00
|
|
|
valueFrom:
|
|
|
|
configMapKeyRef:
|
|
|
|
name: harbor-ui-config
|
2017-08-18 20:11:15 +02:00
|
|
|
key: JOBSERVICE_SECRET
|
2016-11-21 09:07:04 +01:00
|
|
|
- name: GODEBUG
|
|
|
|
valueFrom:
|
|
|
|
configMapKeyRef:
|
|
|
|
name: harbor-ui-config
|
|
|
|
key: GODEBUG
|
|
|
|
ports:
|
|
|
|
- containerPort: 80
|
|
|
|
volumeMounts:
|
|
|
|
- name: config
|
|
|
|
mountPath: /etc/ui
|
|
|
|
volumes:
|
|
|
|
- name: config
|
|
|
|
configMap:
|
|
|
|
name: harbor-ui-config
|
|
|
|
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
|