From 504bd3012ee720fbb5e6441c8c52f60b1a2b28b0 Mon Sep 17 00:00:00 2001 From: rasmus Date: Sat, 3 Aug 2024 02:47:28 +0300 Subject: [PATCH] argo config drift: doorboy --- hackerspace/doorboy.yml | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/hackerspace/doorboy.yml b/hackerspace/doorboy.yml index 1f4254e..3daeaf1 100644 --- a/hackerspace/doorboy.yml +++ b/hackerspace/doorboy.yml @@ -4,9 +4,6 @@ apiVersion: apps/v1 kind: Deployment metadata: name: doorboy-proxy - annotations: - keel.sh/policy: force - keel.sh/trigger: poll spec: revisionHistoryLimit: 0 replicas: 3 @@ -27,20 +24,30 @@ spec: operator: In values: - doorboy-proxy - topologyKey: kubernetes.io/hostname + topologyKey: topology.kubernetes.io/zone weight: 100 containers: - name: doorboy-proxy image: harbor.k-space.ee/k-space/doorboy-proxy:latest envFrom: + - secretRef: + name: inventory-mongodb - secretRef: name: doorboy-api env: - - name: MONGO_URI + - name: FLOOR_ACCESS_GROUP + value: 'k-space:floor' + - name: WORKSHOP_ACCESS_GROUP + value: 'k-space:workshop' + - name: CARD_URI + value: 'https://inventory.k-space.ee/cards' + - name: SWIPE_URI + value: 'https://inventory.k-space.ee/m/doorboy/swipe' + - name: INVENTORY_API_KEY valueFrom: secretKeyRef: - name: mongo-application-readwrite - key: connectionString.standard + name: inventory-api-key + key: INVENTORY_API_KEY securityContext: readOnlyRootFilesystem: true runAsNonRoot: true