Scalable and distributed custom feed generator, ott - on that topic

Add database credentials to embedding service

+18
+2
helm/ott/templates/deployments.yaml
··· 20 20 - name: connector 21 21 image: "{{ .image.fqn }}" 22 22 imagePullPolicy: {{ .image.pullPolicy }} 23 + env: 24 + {{- toYaml .env | nindent 10 }} 23 25 {{- end }}
+16
helm/ott/values.yaml
··· 24 24 image: 25 25 fqn: ott-embed 26 26 pullPolicy: IfNotPresent 27 + env: 28 + - name: DATABASE_USER 29 + valueFrom: 30 + secretKeyRef: 31 + name: postgres-app 32 + key: username 33 + - name: DATABASE_PASSWORD 34 + valueFrom: 35 + secretKeyRef: 36 + name: postgres-app 37 + key: password 38 + - name: DATABASE_URL 39 + value: "postgres://$(DATABASE_USER):$(DATABASE_PASSWORD)@postgres-rw.default.svc.cluster.local:5432" 27 40 28 41 - name: ott-xrpc 29 42 image: ··· 31 44 pullPolicy: IfNotPresent 32 45 replicas: 1 33 46 replicas: 1 47 + env: 48 + - name: EXTERNAL_BASE 49 + value: localhost