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
|
27
deployments/database.yaml
Normal file
27
deployments/database.yaml
Normal file
@ -0,0 +1,27 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: harbor-database
|
||||
namespace: harbor
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: harbor-database
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: harbor-database
|
||||
spec:
|
||||
containers:
|
||||
- name: database
|
||||
image: goharbor/harbor-db:v2.10.0
|
||||
ports:
|
||||
- containerPort: 5432
|
||||
volumeMounts:
|
||||
- name: db-data
|
||||
mountPath: /var/lib/postgresql/data
|
||||
volumes:
|
||||
- name: db-data
|
||||
persistentVolumeClaim:
|
||||
claimName: database-pvc
|
28
deployments/jobservice.yaml
Normal file
28
deployments/jobservice.yaml
Normal file
@ -0,0 +1,28 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: harbor-jobservice
|
||||
namespace: harbor
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: harbor-jobservice
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: harbor-jobservice
|
||||
spec:
|
||||
containers:
|
||||
- name: jobservice
|
||||
image: goharbor/harbor-jobservice:v2.10.0
|
||||
ports:
|
||||
- containerPort: 8080
|
||||
volumeMounts:
|
||||
- name: jobservice-data
|
||||
mountPath: /var/jobservice
|
||||
volumes:
|
||||
- name: jobservice-data
|
||||
persistentVolumeClaim:
|
||||
claimName: jobservice-pvc
|
||||
|
20
deployments/portal.yaml
Normal file
20
deployments/portal.yaml
Normal file
@ -0,0 +1,20 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: harbor-portal
|
||||
namespace: harbor
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: harbor-portal
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: harbor-portal
|
||||
spec:
|
||||
containers:
|
||||
- name: portal
|
||||
image: goharbor/harbor-portal:v2.10.0
|
||||
ports:
|
||||
- containerPort: 8080
|
27
deployments/registry.yaml
Normal file
27
deployments/registry.yaml
Normal file
@ -0,0 +1,27 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: harbor-registry
|
||||
namespace: harbor
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: harbor-registry
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: harbor-registry
|
||||
spec:
|
||||
containers:
|
||||
- name: registry
|
||||
image: goharbor/registry-photon:v2.10.0
|
||||
ports:
|
||||
- containerPort: 5000
|
||||
volumeMounts:
|
||||
- name: registry-data
|
||||
mountPath: /storage
|
||||
volumes:
|
||||
- name: registry-data
|
||||
persistentVolumeClaim:
|
||||
claimName: registry-pvc
|
Reference in New Issue
Block a user