|
1 | | -#apiVersion: apps/v1 |
2 | | -#kind: Deployment |
3 | | -#metadata: |
4 | | -# labels: |
5 | | -# io.kompose.service: tes |
6 | | -# name: tes |
7 | | -#spec: |
8 | | -# replicas: 1 |
9 | | -# selector: |
10 | | -# matchLabels: |
11 | | -# io.kompose.service: tes |
12 | | -# strategy: |
13 | | -# type: Recreate |
14 | | -# template: |
15 | | -# metadata: |
16 | | -# labels: |
17 | | -# io.kompose.service: tes |
18 | | -# aadpodidbinding: {{ .Values.identity.name }} |
19 | | -# spec: |
20 | | -# containers: |
21 | | -# - env: |
22 | | -# - name: DefaultStorageAccountName |
23 | | -# value: {{ .Values.persistence.storageAccount }} |
24 | | -# - name: AzureServicesAuthConnectionString |
25 | | -# value: {{ .Values.config.azureServicesAuthConnectionString }} |
26 | | -# - name: ApplicationInsightsAccountName |
27 | | -# value: {{ .Values.config.applicationInsightsAccountName }} |
28 | | -# - name: CosmosDbAccountName |
29 | | -# value: {{ .Values.config.cosmosDbAccountName }} |
30 | | -# - name: AzureOfferDurableId |
31 | | -# value: {{ .Values.config.azureOfferDurableId }} |
32 | | -# - name: BatchAccountName |
33 | | -# value: {{ .Values.config.batchAccountName }} |
34 | | -# - name: BatchNodesSubnetId |
35 | | -# value: {{ .Values.config.batchNodesSubnetId }} |
36 | | -# - name: BlobxferImageName |
37 | | -# value: {{ .Values.config.blobxferImageName }} |
38 | | -# - name: DisableBatchNodesPublicIpAddress |
39 | | -# value: {{ .Values.config.disableBatchNodesPublicIpAddress | quote }} |
40 | | -# - name: DisableBatchScheduling |
41 | | -# value: {{ .Values.config.disableBatchScheduling | quote }} |
42 | | -# - name: DockerInDockerImageName |
43 | | -# value: {{ .Values.config.dockerInDockerImageName }} |
44 | | -# - name: UsePreemptibleVmsOnly |
45 | | -# value: {{ .Values.config.usePreemptibleVmsOnly | quote}} |
46 | | -# - name: MarthaUrl |
47 | | -# value: {{ .Values.config.drsUrl }} |
48 | | -# - name: CromwellDrsLocalizerImageName |
49 | | -# value: {{ .Values.cromwell.image | replace "cromwell" "cromwell-drs-localizer" }} |
50 | | -# image: {{ .Values.tes.image }} |
51 | | -# name: tes |
52 | | -# ports: |
53 | | -# - containerPort: {{ .Values.tes.port }} |
54 | | -# resources: {} |
55 | | -# restartPolicy: Always |
56 | | -#status: {} |
57 | | -# |
58 | | -#--- |
59 | | -# |
60 | | -#apiVersion: v1 |
61 | | -#kind: Service |
62 | | -#metadata: |
63 | | -# labels: |
64 | | -# io.kompose.service: tes |
65 | | -# name: tes |
66 | | -#spec: |
67 | | -# ports: |
68 | | -# - name: {{ .Values.tes.port | quote }} |
69 | | -# port: {{ .Values.tes.port }} |
70 | | -# targetPort: {{ .Values.tes.port }} |
71 | | -# selector: |
72 | | -# io.kompose.service: tes |
73 | | -#status: |
74 | | -# loadBalancer: {} |
75 | | -# |
| 1 | +{{- if .Values.cromwell.enabled }} |
| 2 | +apiVersion: apps/v1 |
| 3 | +kind: Deployment |
| 4 | +metadata: |
| 5 | + labels: |
| 6 | + {{- include "app.labels" . | nindent 4 }} |
| 7 | + name: {{ include "app.fullname" . }}-tes-depl |
| 8 | +spec: |
| 9 | + replicas: 1 |
| 10 | + selector: |
| 11 | + matchLabels: |
| 12 | + io.kompose.service: tes |
| 13 | + strategy: |
| 14 | + type: Recreate |
| 15 | + template: |
| 16 | + metadata: |
| 17 | + labels: |
| 18 | + io.kompose.service: tes |
| 19 | + aadpodidbinding: {{ .Values.identity.name }} |
| 20 | + spec: |
| 21 | + containers: |
| 22 | + - env: |
| 23 | + - name: AllowedHosts |
| 24 | + value: {{ .Values.tes.allowedHosts | quote }} |
| 25 | + - name: ApplicationInsights_Connection_String |
| 26 | + value: {{ .Values.config.applicationInsightsConnectionString }} |
| 27 | + - name: AzureOfferDurableId |
| 28 | + value: {{ .Values.tes.azureOfferDurableId }} |
| 29 | + - name: BatchAccount__AccountName |
| 30 | + value: {{ .Values.config.batchAccountName }} |
| 31 | + - name: BatchAccount__BaseUrl |
| 32 | + value: "https://{{ .Values.config.batchAccountName }}.{{ .Values.config.region }}.batch.azure.com" |
| 33 | + - name: BatchAccount__AppKey |
| 34 | + value: {{ .Values.config.batchAccountKey }} |
| 35 | + - name: BatchAccount__Region |
| 36 | + value: {{ .Values.config.region }} |
| 37 | + - name: BatchAccount__ResourceGroup |
| 38 | + value: {{ .Values.config.resourceGroup }} |
| 39 | + - name: BatchAccount__SubscriptionId |
| 40 | + value: {{ .Values.config.subscriptionId }} |
| 41 | + - name: BatchImageGen1__NodeAgentSkuId |
| 42 | + value: {{ .Values.tes.batchImageGen1.nodeAgentSkuId }} |
| 43 | + - name: BatchImageGen1__Offer |
| 44 | + value: {{ .Values.tes.batchImageGen1.offer }} |
| 45 | + - name: BatchImageGen1__Publisher |
| 46 | + value: {{ .Values.tes.batchImageGen1.publisher }} |
| 47 | + - name: BatchImageGen1__Sku |
| 48 | + value: {{ .Values.tes.batchImageGen1.sku }} |
| 49 | + - name: BatchImageGen1__Version |
| 50 | + value: {{ .Values.tes.batchImageGen1.version }} |
| 51 | + - name: BatchImageGen2__NodeAgentSkuId |
| 52 | + value: {{ .Values.tes.batchImageGen2.nodeAgentSkuId }} |
| 53 | + - name: BatchImageGen2__Offer |
| 54 | + value: {{ .Values.tes.batchImageGen2.offer }} |
| 55 | + - name: BatchImageGen2__Publisher |
| 56 | + value: {{ .Values.tes.batchImageGen2.publisher }} |
| 57 | + - name: BatchImageGen2__Sku |
| 58 | + value: {{ .Values.tes.batchImageGen2.sku | quote }} |
| 59 | + - name: BatchImageGen2__Version |
| 60 | + value: {{ .Values.tes.batchImageGen2.version }} |
| 61 | + - name: BatchNodes__DisablePublicIpAddress |
| 62 | + value: {{ .Values.tes.batchNodes.disablePublicIpAddress | quote }} |
| 63 | + # Not currently working |
| 64 | + # - name: BatchNodes__SubnetId |
| 65 | + # value: {{ .Values.config.batchNodesSubnetId }} |
| 66 | + - name: BatchScheduling__Disable |
| 67 | + value: {{ .Values.tes.batchScheduling.disable | quote }} |
| 68 | + - name: BatchScheduling__PoolRotationForcedDays |
| 69 | + value: {{ .Values.tes.batchScheduling.poolRotationForcedDays | quote }} |
| 70 | + # Name needs to be unique per LZ with max length 9. coa-ABCDEF-coa-rls -> ABCDEF |
| 71 | + # Caution!! Consider hardening this to ensure uniqueness. |
| 72 | + - name: BatchScheduling__Prefix |
| 73 | + value: {{ .Values.fullnameOverride | substr 4 10 }} |
| 74 | + - name: BatchScheduling__UsePreemptibleVmsOnly |
| 75 | + value: {{ .Values.tes.batchScheduling.usePreemptibleVmsOnly | quote}} |
| 76 | + - name: ContainerRegistry__AutoDiscoveryEnabled |
| 77 | + value: {{ .Values.tes.containerRegistry.autoDiscoveryEnabled | quote }} |
| 78 | + - name: ContainerRegistry__RegistryInfoCacheExpirationInHour |
| 79 | + value: {{ .Values.tes.containerRegistry.registryInfoCacheExpirationInHour | quote }} |
| 80 | + - name: Logging__LogLevel__Default |
| 81 | + value: {{ .Values.tes.logLevel }} |
| 82 | + - name: Martha__Url |
| 83 | + value: {{ .Values.config.drsUrl }} |
| 84 | + - name: Martha__CromwellDrsLocalizer |
| 85 | + value: {{ .Values.cromwell.image | replace "cromwell" "cromwell-drs-localizer" }} |
| 86 | + - name: RetryPolicy__MaxRetryCount |
| 87 | + value: {{ .Values.tes.retryPolicy.maxRetryCount | quote }} |
| 88 | + - name: RetryPolicy__ExponentialBackOffExponent |
| 89 | + value: {{ .Values.tes.retryPolicy.exponentialBackOffExponent | quote }} |
| 90 | + - name: Terra__LandingZoneId |
| 91 | + value: {{ .Values.config.landingZoneId }} |
| 92 | + - name: Terra__LandingZoneApiHost |
| 93 | + value: {{ .Values.persistence.workspaceManager.url }} |
| 94 | + - name: Terra__SasTokenExpirationInSeconds |
| 95 | + value: {{ .Values.tes.sasTokenExpirationInSeconds | quote }} |
| 96 | + - name: Terra__WsmApiHost |
| 97 | + value: {{ .Values.persistence.workspaceManager.url }} |
| 98 | + - name: Terra__WorkspaceStorageContainerResourceId |
| 99 | + value: {{ .Values.persistence.workspaceManager.containerResourceId }} |
| 100 | + - name: Terra__WorkspaceStorageContainerName |
| 101 | + value: {{ .Values.persistence.blobContainer }} |
| 102 | + - name: Terra__WorkspaceStorageAccountName |
| 103 | + value: {{ .Values.persistence.storageAccount }} |
| 104 | + - name: Terra__WorkspaceId |
| 105 | + value: {{ .Values.persistence.workspaceManager.workspaceId }} |
| 106 | + - name: TesPostgreSql__ServerName |
| 107 | + value: {{ include "app.fullname" . }} |
| 108 | + - name: TesPostgreSql__ServerNameSuffix |
| 109 | + value: "-postgres" |
| 110 | + - name: TesPostgreSql__ServerSslMode |
| 111 | + value: Disable |
| 112 | + - name: TesPostgreSql__ServerPort |
| 113 | + value: {{ .Values.postgres.port | quote }} |
| 114 | + - name: TesPostgreSql__DatabaseName |
| 115 | + value: {{ .Values.postgres.tes.dbname }} |
| 116 | + - name: TesPostgreSql__DatabaseUserLogin |
| 117 | + value: {{ .Values.postgres.user | quote }} |
| 118 | + - name: TesPostgreSql__DatabaseUserPassword |
| 119 | + value: {{ include "dbPassword" . | b64enc | quote }} |
| 120 | + image: {{ .Values.tes.image }} |
| 121 | + name: tes |
| 122 | + ports: |
| 123 | + - containerPort: {{ .Values.tes.port }} |
| 124 | + resources: |
| 125 | + requests: |
| 126 | + cpu: "1.5" |
| 127 | + memory: "3072Mi" |
| 128 | + limits: |
| 129 | + cpu: "8.0" |
| 130 | + memory: "8192Mi" |
| 131 | + restartPolicy: Always |
| 132 | +status: {} |
| 133 | +{{ end }} |
| 134 | +--- |
| 135 | +{{- if .Values.cromwell.enabled }} |
| 136 | +apiVersion: v1 |
| 137 | +kind: Service |
| 138 | +metadata: |
| 139 | + labels: |
| 140 | + {{- include "app.labels" . | nindent 4 }} |
| 141 | + name: {{ include "app.fullname" . }}-tes-svc |
| 142 | +spec: |
| 143 | + ports: |
| 144 | + - name: {{ .Values.tes.port | quote }} |
| 145 | + port: {{ .Values.tes.port }} |
| 146 | + targetPort: {{ .Values.tes.port }} |
| 147 | + selector: |
| 148 | + io.kompose.service: tes |
| 149 | +status: |
| 150 | + loadBalancer: {} |
| 151 | +{{ end }} |
0 commit comments