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