mirror of
https://github.com/goharbor/harbor.git
synced 2024-12-21 08:07:59 +01:00
40 lines
869 B
YAML
40 lines
869 B
YAML
apiVersion: v1
|
|
kind: ReplicationController
|
|
metadata:
|
|
name: registry-rc
|
|
labels:
|
|
name: registry-rc
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
name: registry-apps
|
|
template:
|
|
metadata:
|
|
labels:
|
|
name: registry-apps
|
|
spec:
|
|
containers:
|
|
- name: registry-app
|
|
image: harbor/registry
|
|
imagePullPolicy: IfNotPresent
|
|
ports:
|
|
- containerPort: 5000
|
|
- containerPort: 5001
|
|
volumeMounts:
|
|
- name: config
|
|
mountPath: /etc/docker/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
|