Skip to content
This repository has been archived by the owner on Oct 24, 2023. It is now read-only.

Commit

Permalink
feat: Support configurable tags and `enableMultipleStandardLoadBala…
Browse files Browse the repository at this point in the history
…ncers`
  • Loading branch information
nilo19 committed Jan 5, 2021
1 parent 9d63eaf commit 4b626e0
Show file tree
Hide file tree
Showing 9 changed files with 264 additions and 228 deletions.
2 changes: 2 additions & 0 deletions docs/topics/clusterdefinitions.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,8 @@ $ aks-engine get-versions
| cloudProviderRateLimitQPSWrite | no | QPS for Azure cloudprovider write request rate limiter enforcement. Follows the same defaults calculation as cloudProviderRateLimitQPS. |
| cloudProviderDisableOutboundSNAT | no | For clusters w/ Standard LB only: enforces the disabling of outbound NAT for that load balancing rule. See [here](https://docs.microsoft.com/en-us/azure/load-balancer/load-balancer-outbound-rules-overview#disablesnat) for more details. Defaults to `false`. |
| microsoftAptRepositoryURL | no | You may configure certain Microsoft-curated apt packages to be sourced from a custom repository so long as it acts as a mirror to the data at "https://packages.microsoft.com/" (the default value). |
| enableMultipleStandardLoadBalancers | no | Using multiple standard load balancers per cluster. The `loadBalancerSku` must be `standard`. Default to false. |
| tags | no | Specify the tags which will be applied to all of the resources managed by the cloud provider, with the format `a=b,c=d`. |

#### addons

Expand Down
4 changes: 3 additions & 1 deletion parts/k8s/cloud-init/artifacts/cse_config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,9 @@ configureK8s() {
"providerVaultName": "${KMS_PROVIDER_VAULT_NAME}",
"maximumLoadBalancerRuleCount": ${MAXIMUM_LOADBALANCER_RULE_COUNT},
"providerKeyName": "k8s",
"providerKeyVersion": ""
"providerKeyVersion": "",
"enableMultipleStandardLoadBalancers": ${ENABLE_MULTIPLE_STANDARD_LOAD_BALANCERS},
"tags": "${TAGS}"
}
EOF
set -x
Expand Down
2 changes: 2 additions & 0 deletions pkg/api/convertertoapi.go
Original file line number Diff line number Diff line change
Expand Up @@ -315,6 +315,8 @@ func convertVLabsKubernetesConfig(vlabs *vlabs.KubernetesConfig, api *Kubernetes
api.CloudProviderDisableOutboundSNAT = vlabs.CloudProviderDisableOutboundSNAT
api.KubeReservedCgroup = vlabs.KubeReservedCgroup
api.MicrosoftAptRepositoryURL = vlabs.MicrosoftAptRepositoryURL
api.EnableMultipleStandardLoadBalancers = vlabs.EnableMultipleStandardLoadBalancers
api.Tags = vlabs.Tags
convertComponentsToAPI(vlabs, api)
convertAddonsToAPI(vlabs, api)
convertKubeletConfigToAPI(vlabs, api)
Expand Down
Loading

0 comments on commit 4b626e0

Please sign in to comment.