--- apiVersion: apps/v1 kind: Deployment metadata: name: fpd labels: app: fpd spec: selector: matchLabels: app: fpd template: metadata: labels: app: fpd spec: containers: - name: fpd image: "${IMAGE-fpd}:${TAG-latest}" imagePullPolicy: Always env: - name: RUST_LOG valueFrom: configMapKeyRef: name: fpd-config key: rust_log - name: TOKEN valueFrom: secretKeyRef: name: fpd-secrets key: token - name: LISTEN_ADDRESS value: 0.0.0.0:3002 - name: API_BASE valueFrom: configMapKeyRef: name: fiberplane-config key: base_url - name: DATA_SOURCES_PATH value: /app/config/data_sources.yaml ports: - containerPort: 3002 volumeMounts: - mountPath: /app/config/data_sources.yaml name: data-sources subPath: data_sources.yaml volumes: - name: data-sources secret: secretName: fpd-secrets items: - key: data_sources.yaml path: data_sources.yaml