| apiVersion: apps/v1 | |
| kind: Deployment | |
| metadata: | |
| creationTimestamp: null | |
| labels: | |
| app: document-api | |
| name: document-api | |
| spec: | |
| replicas: 1 | |
| selector: | |
| matchLabels: | |
| app: document-api | |
| template: | |
| metadata: | |
| creationTimestamp: null | |
| labels: | |
| app: document-api | |
| spec: | |
| containers: | |
| - image: miralabs.azurecr.io/document-api:_BUILD__ID_ | |
| name: document-api | |
| imagePullPolicy: Always | |
| resources: {} | |
| ports: | |
| - containerPort: 80 | |
| env: | |
| - name: LOG_LEVEL | |
| valueFrom: | |
| secretKeyRef: | |
| name: mira-ai-api-secret | |
| key: LOG_LEVEL | |
| - name: CONNECTION_STRING | |
| valueFrom: | |
| secretKeyRef: | |
| name: mira-ai-api-secret | |
| key: CONNECTION_STRING | |
| - name: KEY | |
| valueFrom: | |
| secretKeyRef: | |
| name: mira-ai-api-secret | |
| key: KEY | |
| - name: ACCOUNT_NAME | |
| valueFrom: | |
| secretKeyRef: | |
| name: mira-ai-api-secret | |
| key: ACCOUNT_NAME | |
| - name: CONTAINER_NAME | |
| valueFrom: | |
| secretKeyRef: | |
| name: mira-ai-api-secret | |
| key: CONTAINER_NAME | |
| - name: DB_URI | |
| valueFrom: | |
| secretKeyRef: | |
| name: mira-ai-api-secret | |
| key: DB_URI | |
| - name: AUTH0_DOMAIN | |
| valueFrom: | |
| secretKeyRef: | |
| name: mira-ai-api-secret | |
| key: AUTH0_DOMAIN | |
| - name: AUTH0_API_AUDIENCE | |
| valueFrom: | |
| secretKeyRef: | |
| name: mira-ai-api-secret | |
| key: AUTH0_API_AUDIENCE | |
| - name: AUTH0_ISSUER | |
| valueFrom: | |
| secretKeyRef: | |
| name: mira-ai-api-secret | |
| key: AUTH0_ISSUER | |
| - name: AUTH0_ALGORITHMS | |
| valueFrom: | |
| secretKeyRef: | |
| name: mira-ai-api-secret | |
| key: AUTH0_ALGORITHMS | |
| apiVersion: v1 | |
| kind: Service | |
| metadata: | |
| name: document-api | |
| labels: | |
| run: document-api | |
| spec: | |
| type: ClusterIP | |
| selector: | |
| app: document-api | |
| ports: | |
| - protocol: TCP | |
| port: 80 | |
| targetPort: 80 | |