Skip to content

Commit cdf97b3

Browse files
k-routhurbtr
andauthored
parameterize ip v4 & v6
Co-authored-by: Evan Baker <[email protected]> Signed-off-by: Keerthana Routhu <[email protected]>
1 parent 413f253 commit cdf97b3

File tree

1 file changed

+9
-12
lines changed

1 file changed

+9
-12
lines changed

hack/aks/Makefile

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -46,25 +46,22 @@ azcfg: ## Set the $AZCLI to use aks-preview
4646
@$(AZCLI) extension add --name aks-preview --yes
4747
@$(AZCLI) extension update --name aks-preview
4848

49-
public-ipv4:
50-
$(AZCLI) network public-ip create --name $(PUBLIC_IPv4) \
49+
ip:
50+
$(AZCLI) network public-ip create --name $(IP_PREFIX)-$(CLUSTER)-$(IPVERSION) \
5151
--resource-group $(GROUP) \
5252
--allocation-method Static \
5353
--ip-tags $(IP_TAG) \
5454
--location $(REGION) \
5555
--sku Standard \
5656
--tier Regional \
57-
--version IPv4
57+
--version IP$(IPVERSION)
58+
59+
ipv4:
60+
@$(MAKE) ip IPVERSION=v4
61+
62+
ipv6:
63+
@$(MAKE) ip IPVERSION=v6
5864

59-
public-ipv6:
60-
$(AZCLI) network public-ip create --name $(PUBLIC_IPv6) \
61-
--resource-group $(GROUP) \
62-
--allocation-method Static \
63-
--ip-tags $(IP_TAG) \
64-
--location $(REGION) \
65-
--sku Standard \
66-
--tier Regional \
67-
--version IPv6
6865

6966
set-kubeconf: ## Adds the kubeconf for $CLUSTER
7067
$(AZCLI) aks get-credentials -n $(CLUSTER) -g $(GROUP)

0 commit comments

Comments
 (0)