From b520a62e44df6c4f9ada4992041a06e84c622020 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Fri, 20 Dec 2019 14:40:36 +0000 Subject: feat(infra/k8s): Deploy sync-gcsr container into cgit pod This actually works - who would have thought! --- infra/kubernetes/cgit/config.yaml | 23 ++++++++++++++++++----- 1 file changed, 18 insertions(+), 5 deletions(-) (limited to 'infra/kubernetes') diff --git a/infra/kubernetes/cgit/config.yaml b/infra/kubernetes/cgit/config.yaml index 569d279e00..f59a237aaa 100644 --- a/infra/kubernetes/cgit/config.yaml +++ b/infra/kubernetes/cgit/config.yaml @@ -31,7 +31,7 @@ spec: fsGroup: 1000 containers: - 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" ] env: - name: HOME @@ -39,11 +39,24 @@ spec: volumeMounts: - name: git-volume 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: - - name: cgit-secrets - secret: - secretName: cgit-secrets - defaultMode: 256 - name: git-volume emptyDir: {} --- -- cgit 1.4.1