|
| 1 | +apiVersion: apps/v1 |
| 2 | +kind: Deployment |
| 3 | + |
| 4 | +metadata: |
| 5 | + name: voucher-webapi |
| 6 | + namespace: utu-taxfree |
| 7 | + labels: |
| 8 | + app: voucher-webapi |
| 9 | + run: voucher-webapi |
| 10 | + |
| 11 | +spec: |
| 12 | + replicas: 1 |
| 13 | + selector: |
| 14 | + matchLabels: |
| 15 | + run: voucher-webapi |
| 16 | + |
| 17 | + template: |
| 18 | + metadata: |
| 19 | + labels: |
| 20 | + app: voucher-webapi |
| 21 | + run: voucher-webapi |
| 22 | + |
| 23 | + spec: |
| 24 | + containers: |
| 25 | + - name: voucher-webapi |
| 26 | + image: uturegistry.azurecr.io/voucher.webapi |
| 27 | + livenessProbe: |
| 28 | + httpGet: |
| 29 | + path: /hc |
| 30 | + port: 80 |
| 31 | + initialDelaySeconds: 30 |
| 32 | + periodSeconds: 30 |
| 33 | + timeoutSeconds: 15 |
| 34 | + failureThreshold: 10 |
| 35 | + env: |
| 36 | + - name: ASPNETCORE_ENVIRONMENT |
| 37 | + value: "Development" |
| 38 | + - name: KeyVaultName |
| 39 | + value: "UTU-KV-AppSettings-Dev" |
| 40 | + - name: KeyVaultUserIdentityId |
| 41 | + value: "b1470371-ef6e-42e7-8288-1bb5f61f3728" |
| 42 | + - name: Blob__VoucherContainer |
| 43 | + value: "dev-vouchers" |
| 44 | + - name: Blob__TaxfreeFolder |
| 45 | + value: "taxfree" |
| 46 | + - name: Blob__ReceiptFolder |
| 47 | + value: "receipt" |
| 48 | + - name: Blob__MemberPicturesContainer |
| 49 | + value: "dev-memberpictures" |
| 50 | + - name: ApplicationsInsights__ConnectionString |
| 51 | + value: "InstrumentationKey=d7ec8ebc-ba2a-4f7f-90bb-a6ac05e1fe88" |
| 52 | + - name: DBSettings__HealthConnectionString |
| 53 | + valueFrom: |
| 54 | + secretKeyRef: |
| 55 | + name: taxfree-app-secret |
| 56 | + key: HEALTH_CONNECTION_STRING |
| 57 | + - name: DBSettings__ConnectionString |
| 58 | + valueFrom: |
| 59 | + secretKeyRef: |
| 60 | + name: taxfree-app-secret |
| 61 | + key: MONGODB_CONNECTION_STRING |
| 62 | + - name: DBSettings__Database |
| 63 | + value: "UTU-PromotionEngine-Dev" |
| 64 | + - name: DBSettings__GenericDB |
| 65 | + value: "UTU-Generic-Dev" |
| 66 | + - name: JWT__ValidIssuer |
| 67 | + value: "https://utuapi-auth-dev.azurewebsites.net" |
| 68 | + - name: JWT__ValidAudience |
| 69 | + value: "https://utuapi-auth-dev.azurewebsites.net" |
| 70 | + - name: JWT__Secret |
| 71 | + valueFrom: |
| 72 | + secretKeyRef: |
| 73 | + name: taxfree-app-secret |
| 74 | + key: JWT_SECRET |
| 75 | + - name: MassTransitSettings__HostName |
| 76 | + valueFrom: |
| 77 | + secretKeyRef: |
| 78 | + name: taxfree-app-secret |
| 79 | + key: RABBITMQ_HOST_NAME |
| 80 | + - name: MassTransitSettings__VirtualHost |
| 81 | + valueFrom: |
| 82 | + secretKeyRef: |
| 83 | + name: taxfree-app-secret |
| 84 | + key: RABBITMQ_VIRTUAL_HOST |
| 85 | + - name: MassTransitSettings__UserName |
| 86 | + valueFrom: |
| 87 | + secretKeyRef: |
| 88 | + name: taxfree-app-secret |
| 89 | + key: RABBITMQ_USER_NAME |
| 90 | + - name: MassTransitSettings__Password |
| 91 | + valueFrom: |
| 92 | + secretKeyRef: |
| 93 | + name: taxfree-app-secret |
| 94 | + key: RABBITMQ_PASSWORD |
| 95 | + - name: AzureServiceBusSettings__ConnectionString |
| 96 | + valueFrom: |
| 97 | + secretKeyRef: |
| 98 | + name: taxfree-app-secret |
| 99 | + key: AZURE_SERVICE_BUS_CONNECTION_STRING |
| 100 | + - name: SendGridSettings__ApiKey |
| 101 | + valueFrom: |
| 102 | + secretKeyRef: |
| 103 | + name: taxfree-app-secret |
| 104 | + key: SENDGRID_API_KEY |
| 105 | + - name: SendGridSettings__FromEmail |
| 106 | + |
| 107 | + - name: AzureCognitiveServices__Endpoint |
| 108 | + value: "https://utu-cognitive-services-dev.cognitiveservices.azure.com" |
| 109 | + - name: AzureCognitiveServices__SubscriptionKey |
| 110 | + value: "da95a31f4d98448b9d0a605f04b6152b" |
| 111 | + - name: AzureCognitiveServices__TaxfreeClassifyUrl |
| 112 | + value: "/customvision/v3.0/Prediction/df759587-1b45-4e13-90b6-dc0db8625b7b/classify/iterations/Iteration8/url" |
| 113 | + - name: BlobStorageSettings__ConnectionString |
| 114 | + valueFrom: |
| 115 | + secretKeyRef: |
| 116 | + name: taxfree-app-secret |
| 117 | + key: BLOB_STORAGE_CONNECTION_STRING |
| 118 | + - name: BlobStorageSettings__BaseURI |
| 119 | + value: "https://utustorage.blob.core.windows.net" |
| 120 | + - name: APIClientSettings__AuthApiUrl |
| 121 | + value: "https://utuapi-auth-dev.azurewebsites.net" |
| 122 | + - name: APIClientSettings__CMSApiUrl |
| 123 | + value: "https://utuapi-cms-dev.azurewebsites.net" |
| 124 | + - name: APIClientSettings__ExchangeApiUrl |
| 125 | + value: "https://utuapi-exchange-dev.azurewebsites.net" |
| 126 | + - name: APIClientSettings__APIKey |
| 127 | + valueFrom: |
| 128 | + secretKeyRef: |
| 129 | + name: taxfree-app-secret |
| 130 | + key: UTU_API_KEY |
| 131 | + - name: EPPlus__ExcelPackage__LicenseContext |
| 132 | + value: "NonCommercial" |
| 133 | + - name: utuLogoUrl |
| 134 | + value: "https://utuwsimages.blob.core.windows.net/websiteimages/211004%20-%20utu%20logo%20-%20512x512%20JPG.jpg" |
| 135 | + - name: VoucherDailyTransactionReportTemplateId |
| 136 | + value: "d-de2bde74209241c8b5e9d66b50dc395e" |
| 137 | + - name: AllowedHosts |
| 138 | + value: "*" |
| 139 | + - name: DomainPath |
| 140 | + value: "http://utuaksapi-dev.westeurope.cloudapp.azure.com/" |
| 141 | + |
| 142 | + resources: |
| 143 | + requests: |
| 144 | + cpu: "200m" #20% of a core |
| 145 | + memory: "200Mi" |
| 146 | + limits: |
| 147 | + cpu: "200m" #20% of a core |
| 148 | + memory: "200Mi" |
| 149 | + imagePullPolicy: Always |
| 150 | + |
| 151 | + restartPolicy: Always |
| 152 | + terminationGracePeriodSeconds: 30 |
| 153 | + dnsPolicy: ClusterFirst |
0 commit comments