mirror.gcr.io for harbor

This commit is contained in:
rasmus 2024-04-28 05:09:50 +03:00
parent f3cceca1c3
commit 07af1aa0bd

View File

@ -396,7 +396,7 @@ spec:
terminationGracePeriodSeconds: 120
containers:
- name: core
image: goharbor/harbor-core:v2.4.2
image: mirror.gcr.io/goharbor/harbor-core:v2.4.2
startupProbe:
httpGet:
path: /api/v2.0/ping
@ -500,7 +500,7 @@ spec:
terminationGracePeriodSeconds: 120
containers:
- name: jobservice
image: goharbor/harbor-jobservice:v2.4.2
image: mirror.gcr.io/goharbor/harbor-jobservice:v2.4.2
readinessProbe:
httpGet:
path: /api/v1/stats
@ -571,7 +571,7 @@ spec:
automountServiceAccountToken: false
containers:
- name: portal
image: goharbor/harbor-portal:v2.4.2
image: mirror.gcr.io/goharbor/harbor-portal:v2.4.2
readinessProbe:
httpGet:
path: /
@ -625,7 +625,7 @@ spec:
terminationGracePeriodSeconds: 120
containers:
- name: registry
image: goharbor/registry-photon:v2.4.2
image: mirror.gcr.io/goharbor/registry-photon:v2.4.2
readinessProbe:
httpGet:
path: /
@ -652,7 +652,7 @@ spec:
mountPath: /etc/registry/config.yml
subPath: config.yml
- name: registryctl
image: goharbor/harbor-registryctl:v2.4.2
image: mirror.gcr.io/goharbor/harbor-registryctl:v2.4.2
readinessProbe:
httpGet:
path: /api/health
@ -743,7 +743,7 @@ spec:
# for more detail.
# we may remove it after several releases
- name: "data-migrator"
image: goharbor/harbor-db:v2.4.2
image: mirror.gcr.io/goharbor/harbor-db:v2.4.2
command: ["/bin/sh"]
args: ["-c", "[ -e /var/lib/postgresql/data/postgresql.conf ] && [ ! -d /var/lib/postgresql/data/pgdata ] && mkdir -m 0700 /var/lib/postgresql/data/pgdata && mv /var/lib/postgresql/data/* /var/lib/postgresql/data/pgdata/ || true"]
volumeMounts:
@ -755,7 +755,7 @@ spec:
# use this init container to correct the permission
# as "fsGroup" applied before the init container running, the container has enough permission to execute the command
- name: "data-permissions-ensurer"
image: goharbor/harbor-db:v2.4.2
image: mirror.gcr.io/goharbor/harbor-db:v2.4.2
command: ["/bin/sh"]
args: ["-c", "chmod -R 700 /var/lib/postgresql/data/pgdata || true"]
volumeMounts:
@ -764,7 +764,7 @@ spec:
subPath:
containers:
- name: database
image: goharbor/harbor-db:v2.4.2
image: mirror.gcr.io/goharbor/harbor-db:v2.4.2
readinessProbe:
exec:
command:
@ -838,7 +838,7 @@ spec:
terminationGracePeriodSeconds: 120
containers:
- name: redis
image: goharbor/redis-photon:v2.4.2
image: mirror.gcr.io/goharbor/redis-photon:v2.4.2
readinessProbe:
tcpSocket:
port: 6379
@ -895,7 +895,7 @@ spec:
automountServiceAccountToken: false
containers:
- name: trivy
image: goharbor/trivy-adapter-photon:v2.4.2
image: mirror.gcr.io/goharbor/trivy-adapter-photon:v2.4.2
imagePullPolicy: IfNotPresent
securityContext:
privileged: false