Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DRAFT] AKS autoscaling using ACI virtual nodes #78

Draft
wants to merge 6 commits into
base: main
Choose a base branch
from
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.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 4 additions & 1 deletion iac/createResources.bicep
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
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