Skip to content
Merged
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
28 changes: 28 additions & 0 deletions hack/aks/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,21 @@ PUBLIC_IP_ID ?= /subscriptions/$(SUB)/resourceGroups/$(GROUP)/providers/
PUBLIC_IPv4 ?= $(PUBLIC_IP_ID)/$(IP_PREFIX)-$(CLUSTER)-v4
PUBLIC_IPv6 ?= $(PUBLIC_IP_ID)/$(IP_PREFIX)-$(CLUSTER)-v6
KUBE_PROXY_JSON_PATH ?= ./kube-proxy.json
LTS ?= false

# overrideable variables
SUB ?= $(AZURE_SUBSCRIPTION)
CLUSTER ?= $(USER)-$(REGION)
GROUP ?= $(CLUSTER)
VNET ?= $(CLUSTER)

# Long Term Support (LTS)
ifeq ($(LTS),true)
LTS = --k8s-support-plan AKSLongTermSupport --tier premium
else
LTS =
endif

##@ Help

help: ## Display this help
Expand Down Expand Up @@ -88,6 +96,7 @@ vars: ## Show the input vars configured for the cluster commands
@echo NODE_COUNT=$(NODE_COUNT)
@echo VMSS_NAME=$(VMSS_NAME)
@echo K8S_VER=$(K8S_VER)
@echo LTS=$(if $(LTS),$(LTS),empty)


##@ SWIFT Infra
Expand Down Expand Up @@ -133,6 +142,7 @@ nodesubnet-byocni-nokubeproxy-up: rg-up ipv4 overlay-net-up ## Brings up an Node
--os-sku $(OS_SKU) \
--no-ssh-key \
--kube-proxy-config $(KUBE_PROXY_JSON_PATH) \
$(LTS) \
--yes
@$(MAKE) set-kubeconf

Expand All @@ -150,6 +160,7 @@ overlay-byocni-up: rg-up ipv4 overlay-net-up ## Brings up an Overlay BYO CNI clu
--vnet-subnet-id /subscriptions/$(SUB)/resourceGroups/$(GROUP)/providers/Microsoft.Network/virtualNetworks/$(VNET)/subnets/nodenet \
--no-ssh-key \
--os-sku $(OS_SKU) \
$(LTS) \
--yes
@$(MAKE) set-kubeconf
ifeq ($(OS),windows)
Expand All @@ -170,6 +181,7 @@ overlay-byocni-nokubeproxy-up: rg-up ipv4 overlay-net-up ## Brings up an Overlay
--vnet-subnet-id /subscriptions/$(SUB)/resourceGroups/$(GROUP)/providers/Microsoft.Network/virtualNetworks/$(VNET)/subnets/nodenet \
--no-ssh-key \
--kube-proxy-config $(KUBE_PROXY_JSON_PATH) \
$(LTS) \
--yes
@$(MAKE) set-kubeconf

Expand All @@ -187,6 +199,7 @@ overlay-cilium-up: rg-up ipv4 overlay-net-up ## Brings up an Overlay Cilium clus
--pod-cidr 192.168.0.0/16 \
--vnet-subnet-id /subscriptions/$(SUB)/resourceGroups/$(GROUP)/providers/Microsoft.Network/virtualNetworks/$(VNET)/subnets/nodenet \
--no-ssh-key \
$(LTS) \
--yes
@$(MAKE) set-kubeconf

Expand All @@ -203,6 +216,7 @@ overlay-up: rg-up ipv4 overlay-net-up ## Brings up an Overlay AzCNI cluster
--pod-cidr 192.168.0.0/16 \
--vnet-subnet-id /subscriptions/$(SUB)/resourceGroups/$(GROUP)/providers/Microsoft.Network/virtualNetworks/$(VNET)/subnets/nodenet \
--no-ssh-key \
$(LTS) \
--yes
@$(MAKE) set-kubeconf

Expand All @@ -219,6 +233,7 @@ swift-byocni-up: rg-up ipv4 swift-net-up ## Bring up a SWIFT BYO CNI cluster
--pod-subnet-id /subscriptions/$(SUB)/resourceGroups/$(GROUP)/providers/Microsoft.Network/virtualNetworks/$(VNET)/subnets/podnet \
--no-ssh-key \
--os-sku $(OS_SKU) \
$(LTS) \
--yes
ifeq ($(OS),windows)
@$(MAKE) windows-swift-nodepool-up
Expand All @@ -239,6 +254,7 @@ swift-byocni-nokubeproxy-up: rg-up ipv4 swift-net-up ## Bring up a SWIFT BYO CNI
--no-ssh-key \
--os-sku $(OS_SKU) \
--kube-proxy-config $(KUBE_PROXY_JSON_PATH) \
$(LTS) \
--yes
@$(MAKE) set-kubeconf

Expand All @@ -256,6 +272,7 @@ swift-cilium-up: rg-up ipv4 swift-net-up ## Bring up a SWIFT Cilium cluster
--vnet-subnet-id /subscriptions/$(SUB)/resourceGroups/$(GROUP)/providers/Microsoft.Network/virtualNetworks/$(VNET)/subnets/nodenet \
--pod-subnet-id /subscriptions/$(SUB)/resourceGroups/$(GROUP)/providers/Microsoft.Network/virtualNetworks/$(VNET)/subnets/podnet \
--no-ssh-key \
$(LTS) \
--yes
@$(MAKE) set-kubeconf

Expand All @@ -271,6 +288,7 @@ swift-up: rg-up ipv4 swift-net-up ## Bring up a SWIFT AzCNI cluster
--vnet-subnet-id /subscriptions/$(SUB)/resourceGroups/$(GROUP)/providers/Microsoft.Network/virtualNetworks/$(VNET)/subnets/nodenet \
--pod-subnet-id /subscriptions/$(SUB)/resourceGroups/$(GROUP)/providers/Microsoft.Network/virtualNetworks/$(VNET)/subnets/podnet \
--no-ssh-key \
$(LTS) \
--yes
@$(MAKE) set-kubeconf

Expand All @@ -285,6 +303,7 @@ swiftv2-multitenancy-cluster-up: rg-up ipv4
--load-balancer-outbound-ips $(PUBLIC_IPv4) \
--nodepool-tags fastpathenabled=true \
--no-ssh-key \
$(LTS) \
--yes
@$(MAKE) set-kubeconf

Expand Down Expand Up @@ -315,6 +334,7 @@ vnetscale-swift-byocni-up: rg-up ipv4 vnetscale-swift-net-up ## Bring up a Vnet
--no-ssh-key \
--os-sku $(OS_SKU) \
--pod-ip-allocation-mode StaticBlock \
$(LTS) \
--yes
@$(MAKE) set-kubeconf

Expand All @@ -333,6 +353,7 @@ vnetscale-swift-byocni-nokubeproxy-up: rg-up ipv4 vnetscale-swift-net-up ## Brin
--os-sku $(OS_SKU) \
--kube-proxy-config $(KUBE_PROXY_JSON_PATH) \
--pod-ip-allocation-mode StaticBlock \
$(LTS) \
--yes
@$(MAKE) set-kubeconf

Expand All @@ -351,6 +372,7 @@ vnetscale-swift-cilium-up: rg-up ipv4 vnetscale-swift-net-up ## Bring up a Vnet
--pod-subnet-id /subscriptions/$(SUB)/resourceGroups/$(GROUP)/providers/Microsoft.Network/virtualNetworks/$(VNET)/subnets/podnet \
--no-ssh-key \
--pod-ip-allocation-mode StaticBlock \
$(LTS) \
--yes
@$(MAKE) set-kubeconf

Expand All @@ -367,6 +389,7 @@ vnetscale-swift-up: rg-up ipv4 vnetscale-swift-net-up ## Bring up a Vnet Scale S
--pod-subnet-id /subscriptions/$(SUB)/resourceGroups/$(GROUP)/providers/Microsoft.Network/virtualNetworks/$(VNET)/subnets/podnet \
--no-ssh-key \
--pod-ip-allocation-mode StaticBlock \
$(LTS) \
--yes
@$(MAKE) set-kubeconf

Expand All @@ -383,6 +406,7 @@ cniv1-up: rg-up ipv4 overlay-net-up ## Bring up a CNIv1 cluster
--vnet-subnet-id /subscriptions/$(SUB)/resourceGroups/$(GROUP)/providers/Microsoft.Network/virtualNetworks/$(VNET)/subnets/nodenet \
--os-sku $(OS_SKU) \
--no-ssh-key \
$(LTS) \
--yes
@$(MAKE) set-kubeconf
ifeq ($(OS),windows)
Expand All @@ -403,6 +427,7 @@ dualstack-overlay-up: rg-up ipv4 ipv6 overlay-net-up ## Brings up an dualstack O
--ip-families ipv4,ipv6 \
--aks-custom-headers AKSHTTPCustomFeatures=Microsoft.ContainerService/AzureOverlayDualStackPreview \
--no-ssh-key \
$(LTS) \
--yes
@$(MAKE) set-kubeconf

Expand All @@ -420,6 +445,7 @@ dualstack-overlay-byocni-up: rg-up ipv4 ipv6 overlay-net-up ## Brings up an dual
--ip-families ipv4,ipv6 \
--aks-custom-headers AKSHTTPCustomFeatures=Microsoft.ContainerService/AzureOverlayDualStackPreview \
--no-ssh-key \
$(LTS) \
--yes
@$(MAKE) set-kubeconf
ifeq ($(OS),windows)
Expand All @@ -441,6 +467,7 @@ cilium-dualstack-up: rg-up ipv4 ipv6 overlay-net-up ## Brings up a Cilium Dualst
--ip-families ipv4,ipv6 \
--aks-custom-headers AKSHTTPCustomFeatures=Microsoft.ContainerService/AzureOverlayDualStackPreview \
--no-ssh-key \
$(LTS) \
--yes
@$(MAKE) set-kubeconf

Expand All @@ -459,6 +486,7 @@ dualstack-byocni-nokubeproxy-up: rg-up ipv4 ipv6 overlay-net-up ## Brings up a D
--aks-custom-headers AKSHTTPCustomFeatures=Microsoft.ContainerService/AzureOverlayDualStackPreview \
--no-ssh-key \
--kube-proxy-config $(KUBE_PROXY_JSON_PATH) \
$(LTS) \
--yes
@$(MAKE) set-kubeconf

Expand Down
Loading