ghp: deploy service-token fork image + wire GHP_AUTH_SERVICE_TOKENS #372
@@ -34,7 +34,7 @@ spec:
|
|||||||
type: RuntimeDefault
|
type: RuntimeDefault
|
||||||
containers:
|
containers:
|
||||||
- name: ghp
|
- name: ghp
|
||||||
image: ghcr.io/goodtune/ghp:0.20.0
|
image: artifactapi.k8s.syd1.au.unkin.net/docker-internal/ghp:v0.20.0-unkin4
|
||||||
imagePullPolicy: IfNotPresent
|
imagePullPolicy: IfNotPresent
|
||||||
# Drop the image's default --migrate so replicas never race migrations;
|
# Drop the image's default --migrate so replicas never race migrations;
|
||||||
# schema is applied by the wave-1 migrate hook Job instead.
|
# schema is applied by the wave-1 migrate hook Job instead.
|
||||||
@@ -88,6 +88,17 @@ spec:
|
|||||||
secretKeyRef:
|
secretKeyRef:
|
||||||
name: ghp-app
|
name: ghp-app
|
||||||
key: encryption_key
|
key: encryption_key
|
||||||
|
# Static admin service token for machine callers (the Vault ghp
|
||||||
|
# secrets engine authenticates with it to mint scoped tokens).
|
||||||
|
# optional: ghp runs fine without it until Ben seeds `service_token`
|
||||||
|
# into kv/kubernetes/namespace/ghp/default/app; the ghp-app reloader
|
||||||
|
# annotation then rolls this Deployment to pick it up.
|
||||||
|
- name: GHP_AUTH_SERVICE_TOKENS
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: ghp-app
|
||||||
|
key: service_token
|
||||||
|
optional: true
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: github-app
|
- name: github-app
|
||||||
mountPath: /etc/ghp/github-app
|
mountPath: /etc/ghp/github-app
|
||||||
|
|||||||
Reference in New Issue
Block a user