File tree Expand file tree Collapse file tree
charts/registry/templates Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -47,7 +47,8 @@ COPY --chown=${DRYCC_UID}:${DRYCC_GID} rootfs/bin/ /bin/
4747COPY --chown=${DRYCC_UID}:${DRYCC_GID} rootfs/opt/drycc/nginx /opt/drycc/nginx
4848COPY --chown=${DRYCC_UID}:${DRYCC_GID} rootfs/config-example.yml /opt/drycc/registry/etc/config.yml
4949
50- ENV DRYCC_REGISTRY_CONFIG /opt/drycc/registry/etc/config.yml
50+ ENV OTEL_TRACES_EXPORTER=none \
51+ DRYCC_REGISTRY_CONFIG=/opt/drycc/registry/etc/config.yml
5152
5253USER ${DRYCC_UID}
5354VOLUME ["${DRYCC_HOME_DIR}" ]
Original file line number Diff line number Diff line change 44 value: " true"
55- name: REGISTRY_LOG_LEVEL
66 value: info
7+ - name: " REGISTRY_HTTP_SECRET"
8+ valueFrom:
9+ secretKeyRef:
10+ name: registry-secret
11+ key: secret
712- name: " DRYCC_REGISTRY_REDIRECT"
813 valueFrom:
914 secretKeyRef:
Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ metadata:
66 heritage : drycc
77type : Opaque
88data :
9+ secret : {{ include "common.secrets.lookup" (dict "secret" "registry-secret" "key" "secret" "defaultValue" (randAlphaNum 32) "context" $) }}
910 username : {{ include "common.secrets.lookup" (dict "secret" "registry-secret" "key" "username" "defaultValue" (.Values.username | default (randAlphaNum 32)) "context" $) }}
1011 password : {{ include "common.secrets.lookup" (dict "secret" "registry-secret" "key" "password" "defaultValue" (.Values.password | default (randAlphaNum 32)) "context" $) }}
1112 redirect : {{ .Values.redirect | b64enc }}
Original file line number Diff line number Diff line change @@ -3,6 +3,9 @@ kind: Service
33metadata :
44 name : drycc-registry
55 annotations :
6+ prometheus.io/path : /metrics
7+ prometheus.io/port : " 9000"
8+ prometheus.io/scrape : " true"
69 {{- with .Values.service.annotations }}
710 {{- toYaml . | nindent 4 }}
811 {{- end }}
Original file line number Diff line number Diff line change @@ -9,6 +9,11 @@ storage:
99 rootdirectory : /var/lib/registry
1010http :
1111 addr : :5000
12+ debug :
13+ addr : :9000
14+ prometheus :
15+ enabled : true
16+ path : /metrics
1217 headers :
1318 X-Content-Type-Options : [nosniff]
1419health :
You can’t perform that action at this time.
0 commit comments