Skip to content

Commit

Permalink
parameterize ip v4 & v6
Browse files Browse the repository at this point in the history
Co-authored-by: Evan Baker <[email protected]>
Signed-off-by: Keerthana Routhu <[email protected]>
  • Loading branch information
k-routhu and rbtr authored Jan 15, 2025
1 parent 413f253 commit cdf97b3
Showing 1 changed file with 9 additions and 12 deletions.
21 changes: 9 additions & 12 deletions hack/aks/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -46,25 +46,22 @@ azcfg: ## Set the $AZCLI to use aks-preview
@$(AZCLI) extension add --name aks-preview --yes
@$(AZCLI) extension update --name aks-preview

public-ipv4:
$(AZCLI) network public-ip create --name $(PUBLIC_IPv4) \
ip:
$(AZCLI) network public-ip create --name $(IP_PREFIX)-$(CLUSTER)-$(IPVERSION) \
--resource-group $(GROUP) \
--allocation-method Static \
--ip-tags $(IP_TAG) \
--location $(REGION) \
--sku Standard \
--tier Regional \
--version IPv4
--version IP$(IPVERSION)

ipv4:
@$(MAKE) ip IPVERSION=v4

ipv6:
@$(MAKE) ip IPVERSION=v6

public-ipv6:
$(AZCLI) network public-ip create --name $(PUBLIC_IPv6) \
--resource-group $(GROUP) \
--allocation-method Static \
--ip-tags $(IP_TAG) \
--location $(REGION) \
--sku Standard \
--tier Regional \
--version IPv6

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

0 comments on commit cdf97b3

Please sign in to comment.