Skip to content

Commit 6a62abe

Browse files
committed
address PR comments
1 parent e8bf9c4 commit 6a62abe

File tree

1 file changed

+16
-32
lines changed

1 file changed

+16
-32
lines changed

hack/aks/Makefile

Lines changed: 16 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -8,22 +8,22 @@ AZIMG = mcr.microsoft.com/azure-cli
88
AZCLI ?= docker run --rm -v $(AZCFG):/root/.azure -v $(KUBECFG):/root/.kube -v $(SSH):/root/.ssh -v $(PWD):/root/tmpsrc $(AZIMG) az
99

1010
# overrideable defaults
11-
AUTOUPGRADE ?= patch
12-
K8S_VER ?= 1.30
13-
NODE_COUNT ?= 2
14-
NODE_COUNT_WIN ?= $(NODE_COUNT)
15-
NODEUPGRADE ?= NodeImage
16-
OS ?= linux # Used to signify if you want to bring up a windows nodePool on byocni clusters
17-
OS_SKU ?= Ubuntu
18-
OS_SKU_WIN ?= Windows2022
19-
REGION ?= westus2
20-
VM_SIZE ?= Standard_B2s
21-
VM_SIZE_WIN ?= Standard_B2s
22-
IP_TAG ?= FirstPartyUsage=/DelegatedNetworkControllerTest
23-
IP_PREFIX ?= serviceTaggedIp
24-
PUBLIC_IP_ID ?= /subscriptions/$(SUB)/resourceGroups/$(GROUP)/providers/Microsoft.Network/publicIPAddresses
25-
PUBLIC_IPv4 ?= $(PUBLIC_IP_ID)/$(IP_PREFIX)-$(CLUSTER)-v4
26-
PUBLIC_IPv6 ?= $(PUBLIC_IP_ID)/$(IP_PREFIX)-$(CLUSTER)-v6
11+
AUTOUPGRADE ?= patch
12+
K8S_VER ?= 1.30
13+
NODE_COUNT ?= 2
14+
NODE_COUNT_WIN ?= $(NODE_COUNT)
15+
NODEUPGRADE ?= NodeImage
16+
OS ?= linux # Used to signify if you want to bring up a windows nodePool on byocni clusters
17+
OS_SKU ?= Ubuntu
18+
OS_SKU_WIN ?= Windows2022
19+
REGION ?= westus2
20+
VM_SIZE ?= Standard_B2s
21+
VM_SIZE_WIN ?= Standard_B2s
22+
IP_TAG ?= FirstPartyUsage=/DelegatedNetworkControllerTest
23+
IP_PREFIX ?= serviceTaggedIp
24+
PUBLIC_IP_ID ?= /subscriptions/$(SUB)/resourceGroups/$(GROUP)/providers/Microsoft.Network/publicIPAddresses
25+
PUBLIC_IPv4 ?= $(PUBLIC_IP_ID)/$(IP_PREFIX)-$(CLUSTER)-v4
26+
PUBLIC_IPv6 ?= $(PUBLIC_IP_ID)/$(IP_PREFIX)-$(CLUSTER)-v6
2727
KUBE_PROXY_JSON_PATH ?= ./kube-proxy.json
2828

2929
# overrideable variables
@@ -94,22 +94,6 @@ vars: ## Show the input vars configured for the cluster commands
9494
rg-up: ## Create resource group
9595
@$(AZCLI) group create --location $(REGION) --name $(GROUP)
9696

97-
ip:
98-
$(AZCLI) network public-ip create --name $(IP_PREFIX)-$(CLUSTER)-$(IPVERSION) \
99-
--resource-group $(GROUP) \
100-
--allocation-method Static \
101-
--ip-tags $(IP_TAG) \
102-
--location $(REGION) \
103-
--sku Standard \
104-
--tier Regional \
105-
--version IP$(IPVERSION)
106-
107-
ipv4:
108-
@$(MAKE) ip IPVERSION=v4
109-
110-
ipv6:
111-
@$(MAKE) ip IPVERSION=v6
112-
11397
rg-down: ## Delete resource group
11498
$(AZCLI) group delete -g $(GROUP) --yes
11599

0 commit comments

Comments
 (0)