110 lines
2.5 KiB
YAML
110 lines
2.5 KiB
YAML
apiVersion: v1
|
|
kind: Namespace
|
|
metadata:
|
|
name: harbor
|
|
---
|
|
apiVersion: v1
|
|
kind: Secret
|
|
metadata:
|
|
name: harbor-values
|
|
namespace: harbor
|
|
annotations:
|
|
kube-1password: igey7vjjiqmj25v64eck7cyj34
|
|
kube-1password/vault: Kubernetes
|
|
kube-1password/secret-text-key: values.yaml
|
|
type: Opaque
|
|
---
|
|
apiVersion: helm.fluxcd.io/v1
|
|
kind: HelmRelease
|
|
metadata:
|
|
name: harbor
|
|
namespace: harbor
|
|
spec:
|
|
chart:
|
|
repository: https://helm.goharbor.io
|
|
name: harbor
|
|
version: 1.5.3
|
|
maxHistory: 4
|
|
skipCRDs: false
|
|
valuesFrom:
|
|
- secretKeyRef:
|
|
name: harbor-values
|
|
namespace: harbor
|
|
key: values.yaml
|
|
optional: false
|
|
values:
|
|
updateStrategy:
|
|
type: Recreate
|
|
expose:
|
|
tls:
|
|
certSource: secret
|
|
secret:
|
|
secretName: harbor-harbor-ingress
|
|
portal:
|
|
replicas: 2
|
|
resources:
|
|
requests:
|
|
memory: 64Mi
|
|
affinity:
|
|
podAntiAffinity:
|
|
requiredDuringSchedulingIgnoredDuringExecution:
|
|
- labelSelector:
|
|
matchExpressions:
|
|
- key: component
|
|
operator: In
|
|
values:
|
|
- portal
|
|
- key: app
|
|
operator: In
|
|
values:
|
|
- harbor
|
|
topologyKey: kubernetes.io/hostname
|
|
core:
|
|
replicas: 2
|
|
resources:
|
|
requests:
|
|
memory: 64Mi
|
|
affinity:
|
|
podAntiAffinity:
|
|
requiredDuringSchedulingIgnoredDuringExecution:
|
|
- labelSelector:
|
|
matchExpressions:
|
|
- key: component
|
|
operator: In
|
|
values:
|
|
- core
|
|
- key: app
|
|
operator: In
|
|
values:
|
|
- harbor
|
|
topologyKey: kubernetes.io/hostname
|
|
jobservice:
|
|
replicas: 1
|
|
resources:
|
|
requests:
|
|
memory: 64Mi
|
|
registry:
|
|
replicas: 2
|
|
registry:
|
|
resources:
|
|
requests:
|
|
memory: 64Mi
|
|
controller:
|
|
resources:
|
|
requests:
|
|
memory: 64Mi
|
|
affinity:
|
|
podAntiAffinity:
|
|
requiredDuringSchedulingIgnoredDuringExecution:
|
|
- labelSelector:
|
|
matchExpressions:
|
|
- key: component
|
|
operator: In
|
|
values:
|
|
- registry
|
|
- key: app
|
|
operator: In
|
|
values:
|
|
- harbor
|
|
topologyKey: kubernetes.io/hostname
|