diff --git a/iac/createResources.bicep b/iac/createResources.bicep index 2091a13..5ed8447 100644 --- a/iac/createResources.bicep +++ b/iac/createResources.bicep @@ -1250,13 +1250,16 @@ resource aks 'Microsoft.ContainerService/managedClusters@2022-09-02-preview' = { type: 'SystemAssigned' } properties: { + networkProfile: { + networkPlugin: 'azure' + } dnsPrefix: aksClusterDnsPrefix nodeResourceGroup: aksClusterNodeResourceGroup agentPoolProfiles: [ { name: 'agentpool' osDiskSizeGB: 0 // Specifying 0 will apply the default disk size for that agentVMSize. - count: 3 + count: 1 vmSize: 'standard_d2s_v3' osType: 'Linux' mode: 'System' diff --git a/src/ContosoTraders.Api.Products/Manifests/Deployment.yaml b/src/ContosoTraders.Api.Products/Manifests/Deployment.yaml index 2421372..597b849 100644 --- a/src/ContosoTraders.Api.Products/Manifests/Deployment.yaml +++ b/src/ContosoTraders.Api.Products/Manifests/Deployment.yaml @@ -13,7 +13,14 @@ spec: app: contoso-traders-products spec: nodeSelector: - "kubernetes.io/os": linux + kubernetes.io/role: agent + beta.kubernetes.io/os: linux + type: virtual-kubelet + tolerations: + - key: virtual-kubelet.io/provider + operator: Exists + - key: azure.com/aci + effect: NoSchedule containers: - name: contoso-traders-products #Note: The '{ENVIRONMENT}' token will be substituted with the value of the ENVIRONMENT github secret by github workflow. @@ -34,5 +41,5 @@ spec: cpu: 100m memory: 128Mi limits: - cpu: 250m - memory: 256Mi + cpu: 100m + memory: 128Mi