mirror of
https://github.com/goharbor/harbor.git
synced 2024-12-24 17:47:46 +01:00
7873a0312a
1. Update the nginx.conf 2. Update Makefile 3. Update docker-compose 4. Update image name 5. Rename folder ui to core 6. Change the harbor-ui's package name to core 7. Remove unused static file on harbor-core 8. Remove unused code for harbor-portal Signed-off-by: Qian Deng <dengq@vmware.com>
234 lines
7.3 KiB
YAML
234 lines
7.3 KiB
YAML
apiVersion: extensions/v1beta1
|
|
kind: Deployment
|
|
metadata:
|
|
name: adminserver
|
|
labels:
|
|
name: adminserver
|
|
spec:
|
|
replicas: 1
|
|
template:
|
|
metadata:
|
|
labels:
|
|
name: adminserver-apps
|
|
spec:
|
|
containers:
|
|
- name: adminserver-app
|
|
image: vmware/harbor-adminserver:v1.2.0
|
|
imagePullPolicy: IfNotPresent
|
|
env:
|
|
- name: LOG_LEVEL
|
|
valueFrom:
|
|
configMapKeyRef:
|
|
name: harbor-adminserver-config
|
|
key: LOG_LEVEL
|
|
- name: JSON_CFG_STORE_PATH
|
|
valueFrom:
|
|
configMapKeyRef:
|
|
name: harbor-adminserver-config
|
|
key: JSON_CFG_STORE_PATH
|
|
- name: EXT_ENDPOINT
|
|
valueFrom:
|
|
configMapKeyRef:
|
|
name: harbor-adminserver-config
|
|
key: EXT_ENDPOINT
|
|
- name: AUTH_MODE
|
|
valueFrom:
|
|
configMapKeyRef:
|
|
name: harbor-adminserver-config
|
|
key: AUTH_MODE
|
|
- name: SELF_REGISTRATION
|
|
valueFrom:
|
|
configMapKeyRef:
|
|
name: harbor-adminserver-config
|
|
key: SELF_REGISTRATION
|
|
- name: LDAP_URL
|
|
valueFrom:
|
|
configMapKeyRef:
|
|
name: harbor-adminserver-config
|
|
key: LDAP_URL
|
|
- name: LDAP_SEARCH_DN
|
|
valueFrom:
|
|
configMapKeyRef:
|
|
name: harbor-adminserver-config
|
|
key: LDAP_SEARCH_DN
|
|
- name: LDAP_SEARCH_PWD
|
|
valueFrom:
|
|
configMapKeyRef:
|
|
name: harbor-adminserver-config
|
|
key: LDAP_SEARCH_PWD
|
|
- name: LDAP_BASE_DN
|
|
valueFrom:
|
|
configMapKeyRef:
|
|
name: harbor-adminserver-config
|
|
key: LDAP_BASE_DN
|
|
- name: LDAP_FILTER
|
|
valueFrom:
|
|
configMapKeyRef:
|
|
name: harbor-adminserver-config
|
|
key: LDAP_FILTER
|
|
- name: LDAP_UID
|
|
valueFrom:
|
|
configMapKeyRef:
|
|
name: harbor-adminserver-config
|
|
key: LDAP_UID
|
|
- name: LDAP_SCOPE
|
|
valueFrom:
|
|
configMapKeyRef:
|
|
name: harbor-adminserver-config
|
|
key: LDAP_SCOPE
|
|
- name: LDAP_TIMEOUT
|
|
valueFrom:
|
|
configMapKeyRef:
|
|
name: harbor-adminserver-config
|
|
key: LDAP_TIMEOUT
|
|
- name: DATABASE_TYPE
|
|
valueFrom:
|
|
configMapKeyRef:
|
|
name: harbor-adminserver-config
|
|
key: DATABASE_TYPE
|
|
- name: MYSQL_HOST
|
|
valueFrom:
|
|
configMapKeyRef:
|
|
name: harbor-adminserver-config
|
|
key: MYSQL_HOST
|
|
- name: MYSQL_PORT
|
|
valueFrom:
|
|
configMapKeyRef:
|
|
name: harbor-adminserver-config
|
|
key: MYSQL_PORT
|
|
- name: MYSQL_USR
|
|
valueFrom:
|
|
configMapKeyRef:
|
|
name: harbor-adminserver-config
|
|
key: MYSQL_USR
|
|
- name: MYSQL_PWD
|
|
valueFrom:
|
|
configMapKeyRef:
|
|
name: harbor-adminserver-config
|
|
key: MYSQL_PWD
|
|
- name: MYSQL_DATABASE
|
|
valueFrom:
|
|
configMapKeyRef:
|
|
name: harbor-adminserver-config
|
|
key: MYSQL_DATABASE
|
|
- name: REGISTRY_URL
|
|
valueFrom:
|
|
configMapKeyRef:
|
|
name: harbor-adminserver-config
|
|
key: REGISTRY_URL
|
|
- name: TOKEN_SERVICE_URL
|
|
valueFrom:
|
|
configMapKeyRef:
|
|
name: harbor-adminserver-config
|
|
key: TOKEN_SERVICE_URL
|
|
- name: EMAIL_HOST
|
|
valueFrom:
|
|
configMapKeyRef:
|
|
name: harbor-adminserver-config
|
|
key: EMAIL_HOST
|
|
- name: EMAIL_PORT
|
|
valueFrom:
|
|
configMapKeyRef:
|
|
name: harbor-adminserver-config
|
|
key: EMAIL_PORT
|
|
- name: EMAIL_USR
|
|
valueFrom:
|
|
configMapKeyRef:
|
|
name: harbor-adminserver-config
|
|
key: EMAIL_USR
|
|
- name: EMAIL_PWD
|
|
valueFrom:
|
|
configMapKeyRef:
|
|
name: harbor-adminserver-config
|
|
key: EMAIL_PWD
|
|
- name: EMAIL_SSL
|
|
valueFrom:
|
|
configMapKeyRef:
|
|
name: harbor-adminserver-config
|
|
key: EMAIL_SSL
|
|
- name: EMAIL_FROM
|
|
valueFrom:
|
|
configMapKeyRef:
|
|
name: harbor-adminserver-config
|
|
key: EMAIL_FROM
|
|
- name: EMAIL_IDENTITY
|
|
valueFrom:
|
|
configMapKeyRef:
|
|
name: harbor-adminserver-config
|
|
key: EMAIL_IDENTITY
|
|
- name: HARBOR_ADMIN_PASSWORD
|
|
valueFrom:
|
|
configMapKeyRef:
|
|
name: harbor-adminserver-config
|
|
key: HARBOR_ADMIN_PASSWORD
|
|
- name: PROJECT_CREATION_RESTRICTION
|
|
valueFrom:
|
|
configMapKeyRef:
|
|
name: harbor-adminserver-config
|
|
key: PROJECT_CREATION_RESTRICTION
|
|
- name: VERIFY_REMOTE_CERT
|
|
valueFrom:
|
|
configMapKeyRef:
|
|
name: harbor-adminserver-config
|
|
key: VERIFY_REMOTE_CERT
|
|
- name: MAX_JOB_WORKERS
|
|
valueFrom:
|
|
configMapKeyRef:
|
|
name: harbor-adminserver-config
|
|
key: MAX_JOB_WORKERS
|
|
- name: CORE_SECRET
|
|
valueFrom:
|
|
configMapKeyRef:
|
|
name: harbor-adminserver-config
|
|
key: CORE_SECRET
|
|
- name: JOBSERVICE_SECRET
|
|
valueFrom:
|
|
configMapKeyRef:
|
|
name: harbor-adminserver-config
|
|
key: JOBSERVICE_SECRET
|
|
- name: TOKEN_EXPIRATION
|
|
valueFrom:
|
|
configMapKeyRef:
|
|
name: harbor-adminserver-config
|
|
key: TOKEN_EXPIRATION
|
|
- name: CFG_EXPIRATION
|
|
valueFrom:
|
|
configMapKeyRef:
|
|
name: harbor-adminserver-config
|
|
key: CFG_EXPIRATION
|
|
- name: GODEBUG
|
|
valueFrom:
|
|
configMapKeyRef:
|
|
name: harbor-adminserver-config
|
|
key: GODEBUG
|
|
- name: ADMIRAL_URL
|
|
valueFrom:
|
|
configMapKeyRef:
|
|
name: harbor-adminserver-config
|
|
key: ADMIRAL_URL
|
|
- name: WITH_NOTARY
|
|
valueFrom:
|
|
configMapKeyRef:
|
|
name: harbor-adminserver-config
|
|
key: WITH_NOTARY
|
|
- name: RESET
|
|
valueFrom:
|
|
configMapKeyRef:
|
|
name: harbor-adminserver-config
|
|
key: RESET
|
|
#Workaround the volume API issue.
|
|
- name: IMAGE_STORE_PATH
|
|
value: "/"
|
|
ports:
|
|
- containerPort: 80
|
|
volumeMounts:
|
|
- name: config
|
|
mountPath: /etc/adminserver/
|
|
volumes:
|
|
- name: config
|
|
configMap:
|
|
name: harbor-adminserver-config
|
|
items:
|
|
- key: SECRET_KEY
|
|
path: key
|