31 lines
642 B
YAML
31 lines
642 B
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: harbor-core
|
|
namespace: harbor
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: harbor-core
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: harbor-core
|
|
spec:
|
|
containers:
|
|
- name: core
|
|
image: goharbor/harbor-core:v2.10.0
|
|
env:
|
|
- name: CORE_SECRET
|
|
value: "notasecret"
|
|
ports:
|
|
- containerPort: 8080
|
|
volumeMounts:
|
|
- name: core-data
|
|
mountPath: /data
|
|
volumes:
|
|
- name: core-data
|
|
persistentVolumeClaim:
|
|
claimName: core-pvc
|