feat(infra/k8s): Deploy sync-gcsr container into cgit pod

This actually works - who would have thought!
This commit is contained in:
Vincent Ambo 2019-12-20 14:40:36 +00:00
parent 15076ed228
commit b520a62e44

View file

@ -31,7 +31,7 @@ spec:
fsGroup: 1000 fsGroup: 1000
containers: containers:
- name: cgit - name: cgit
image: nixery.local/shell/third_party.git/third_party.google-cloud-sdk/services.cgit-taz:{{ gitHEAD }} image: nixery.local/shell/services.cgit-taz:{{ gitHEAD }}
command: [ "cgit-launch" ] command: [ "cgit-launch" ]
env: env:
- name: HOME - name: HOME
@ -39,11 +39,24 @@ spec:
volumeMounts: volumeMounts:
- name: git-volume - name: git-volume
mountPath: /git mountPath: /git
- name: sync-gcsr
image: nixery.local/shell/services.sync-gcsr:{{ gitHEAD }}
command: [ "sync-gcsr" ]
env:
- name: SYNC_USER
valueFrom:
secretKeyRef:
name: gcsr-secrets
key: username
- name: SYNC_PASS
valueFrom:
secretKeyRef:
name: gcsr-secrets
key: password
volumeMounts:
- name: git-volume
mountPath: /git
volumes: volumes:
- name: cgit-secrets
secret:
secretName: cgit-secrets
defaultMode: 256
- name: git-volume - name: git-volume
emptyDir: {} emptyDir: {}
--- ---