how to create basic sku load balancer in YAML on Azure AKS

2/21/2022

By default the SKU used when creating a load balancer in AKS is standard, for development if you want to use basic SKU we have to use the command line az aks create -g RGName -n ClusterName --load-balancer-sku basic

But could not find anything on how to specify the --load-balancer-sku in the yaml file. Current YAML File AS-IS given below, what to add to make the SKU basic?

apiVersion: v1
kind: Service
metadata:
  name: hello-world-svc
spec:
  selector:
    app: hello-world-svc
  ports:
  - protocol: TCP
    port: 80
    targetPort: 3000
  type: LoadBalancer
-- Binoj Antony
azure
azure-aks
azure-load-balancer
kubernetes
yaml

1 Answer

2/21/2022

you can specify the SKU per ENV with passing a config file to the Cloud Controller Manager as of here

-- Philip Welz
Source: StackOverflow