Skip to content

Commit 4b09cd3

Browse files
author
lijianguo
committed
feat(registry): add affinity
1 parent cd9c847 commit 4b09cd3

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

charts/registry/templates/registry-deployment.yaml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ spec:
2222
labels:
2323
app: drycc-registry
2424
spec:
25+
{{- if .Values.global.common }}
26+
{{- include "common.affinity" (dict "key" "app" "values" (list "drycc-registry")) | indent 6 }}
27+
{{- end }}
2528
serviceAccount: drycc-registry
2629
initContainers:
2730
- name: drycc-registry-init
@@ -70,9 +73,9 @@ spec:
7073
mountPath: /var/lib/registry
7174
- name: objectstorage-creds
7275
mountPath: /var/run/secrets/drycc/objectstore/creds
73-
securityContext:
74-
fsGroup: 1001
75-
runAsGroup: 1001
76+
securityContext:
77+
fsGroup: 1001
78+
runAsGroup: 1001
7679
runAsUser: 1001
7780
volumes:
7881
- name: registry-storage

0 commit comments

Comments
 (0)