Primer commit
This commit is contained in:
30
deployments/core.yaml
Normal file
30
deployments/core.yaml
Normal file
@ -0,0 +1,30 @@
|
||||
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
|
Reference in New Issue
Block a user