mirror of
https://github.com/goharbor/harbor.git
synced 2024-12-29 12:07:56 +01:00
38 lines
838 B
YAML
38 lines
838 B
YAML
apiVersion: extensions/v1beta1
|
|
kind: Deployment
|
|
metadata:
|
|
name: registry
|
|
labels:
|
|
name: registry
|
|
spec:
|
|
replicas: 1
|
|
template:
|
|
metadata:
|
|
labels:
|
|
name: registry-apps
|
|
spec:
|
|
containers:
|
|
- name: registry-app
|
|
image: vmware/registry:2.6.2-photon
|
|
imagePullPolicy: IfNotPresent
|
|
ports:
|
|
- containerPort: 5000
|
|
- containerPort: 5001
|
|
volumeMounts:
|
|
- name: config
|
|
mountPath: /etc/registry
|
|
- name: storage
|
|
mountPath: /storage
|
|
volumes:
|
|
- name: config
|
|
configMap:
|
|
name: harbor-registry-config
|
|
items:
|
|
- key: config
|
|
path: config.yml
|
|
- key: cert
|
|
path: root.crt
|
|
- name: storage
|
|
persistentVolumeClaim:
|
|
claimName: registry-pvc
|