Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion iac/createResources.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
13 changes: 10 additions & 3 deletions src/ContosoTraders.Api.Products/Manifests/Deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -34,5 +41,5 @@ spec:
cpu: 100m
memory: 128Mi
limits:
cpu: 250m
memory: 256Mi
cpu: 100m
memory: 128Mi