Skip to content

Commit 1897a16

Browse files
feat: add cilium nodesubnet target to hack/Makefile (#3677)
* feat: nodesubnet cilium target in makefile * chore: cleanup * Update hack/aks/Makefile Co-authored-by: Copilot <[email protected]> Signed-off-by: Santhosh Prabhu <[email protected]> * chore: make dockerfiles * fix: add description to readme --------- Signed-off-by: Santhosh Prabhu <[email protected]> Co-authored-by: Copilot <[email protected]>
1 parent 6acb114 commit 1897a16

File tree

4 files changed

+22
-5
lines changed

4 files changed

+22
-5
lines changed

cni/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ ARG OS_VERSION
66
ARG OS
77

88
# mcr.microsoft.com/oss/go/microsoft/golang:1.23-cbl-mariner2.0
9-
FROM --platform=linux/${ARCH} mcr.microsoft.com/oss/go/microsoft/golang@sha256:b06999cae63b9b6f43bcb16bd16bcbedae847684515317e15607a601ed108030 AS go
9+
FROM --platform=linux/${ARCH} mcr.microsoft.com/oss/go/microsoft/golang@sha256:bc9d564dc7279c749a9bb1abfa03f872d24f60bf7e37e61f35dda98c2ccec0c4 AS go
1010

1111
# mcr.microsoft.com/cbl-mariner/base/core:2.0
12-
FROM --platform=linux/${ARCH} mcr.microsoft.com/cbl-mariner/base/core@sha256:961bfedbbbdc0da51bc664f51d959da292eced1ad46c3bf674aba43b9be8c703 AS mariner-core
12+
FROM --platform=linux/${ARCH} mcr.microsoft.com/cbl-mariner/base/core@sha256:12480ee9f027c304fabc17d70afc7d5da6c49ad46f0401947478e7218ea0ff6c AS mariner-core
1313

1414
FROM go AS azure-vnet
1515
ARG OS

cns/Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@ ARG OS_VERSION
55
ARG OS
66

77
# mcr.microsoft.com/oss/go/microsoft/golang:1.23-cbl-mariner2.0
8-
FROM --platform=linux/${ARCH} mcr.microsoft.com/oss/go/microsoft/golang@sha256:b06999cae63b9b6f43bcb16bd16bcbedae847684515317e15607a601ed108030 AS go
8+
FROM --platform=linux/${ARCH} mcr.microsoft.com/oss/go/microsoft/golang@sha256:bc9d564dc7279c749a9bb1abfa03f872d24f60bf7e37e61f35dda98c2ccec0c4 AS go
99

1010
# mcr.microsoft.com/cbl-mariner/base/core:2.0
11-
FROM mcr.microsoft.com/cbl-mariner/base/core@sha256:961bfedbbbdc0da51bc664f51d959da292eced1ad46c3bf674aba43b9be8c703 AS mariner-core
11+
FROM mcr.microsoft.com/cbl-mariner/base/core@sha256:12480ee9f027c304fabc17d70afc7d5da6c49ad46f0401947478e7218ea0ff6c AS mariner-core
1212

1313
# mcr.microsoft.com/cbl-mariner/distroless/minimal:2.0
14-
FROM mcr.microsoft.com/cbl-mariner/distroless/minimal@sha256:7778a86d86947d5f64c1280a7ee0cf36c6c6d76b5749dd782fbcc14f113961bf AS mariner-distroless
14+
FROM mcr.microsoft.com/cbl-mariner/distroless/minimal@sha256:a2529d152e75b29502a8de264a4f3dfb8fd126d870c9bf4456d03b7a7dab7268 AS mariner-distroless
1515

1616
FROM --platform=linux/${ARCH} go AS builder
1717
ARG OS

hack/aks/Makefile

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -393,6 +393,22 @@ vnetscale-swift-up: rg-up ipv4 vnetscale-swift-net-up ## Bring up a Vnet Scale S
393393
--yes
394394
@$(MAKE) set-kubeconf
395395

396+
nodesubnet-cilium-up: rg-up ipv4 overlay-net-up ## Bring up a Nodesubnet Cilium cluster
397+
$(AZCLI) aks create -n $(CLUSTER) -g $(GROUP) -l $(REGION) \
398+
--auto-upgrade-channel $(AUTOUPGRADE) \
399+
--node-os-upgrade-channel $(NODEUPGRADE) \
400+
--kubernetes-version $(K8S_VER) \
401+
--node-count $(NODE_COUNT) \
402+
--node-vm-size $(VM_SIZE) \
403+
--load-balancer-outbound-ips $(PUBLIC_IPv4) \
404+
--network-plugin azure \
405+
--network-dataplane cilium \
406+
--vnet-subnet-id /subscriptions/$(SUB)/resourceGroups/$(GROUP)/providers/Microsoft.Network/virtualNetworks/$(VNET)/subnets/nodenet \
407+
--no-ssh-key \
408+
$(LTS_ARGS) \
409+
--yes
410+
@$(MAKE) set-kubeconf
411+
396412
cniv1-up: rg-up ipv4 overlay-net-up ## Bring up a CNIv1 cluster
397413
$(AZCLI) aks create -n $(CLUSTER) -g $(GROUP) -l $(REGION) \
398414
--auto-upgrade-channel $(AUTOUPGRADE) \

hack/aks/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ AKS Clusters
3737
vnetscale-swift-byocni-nokubeproxy-up Bring up a Vnet Scale SWIFT BYO CNI cluster without kube-proxy
3838
vnetscale-swift-cilium-up Bring up a Vnet Scale SWIFT Cilium cluster
3939
vnetscale-swift-up Bring up a Vnet Scale SWIFT AzCNI cluster
40+
nodesubnet-cilium-up Bring up a Nodesubnet Cilium cluster
4041
cniv1-up Bring up a AzCNIv1 cluster
4142
dualstack-overlay-byocni-up Bring up an dualstack overlay cluster without CNS and CNI installed
4243
cilium-dualstack-up Brings up a Cilium Dualstack Overlay cluster with Linux node only

0 commit comments

Comments
 (0)