8000 [WIP] Create a script to the BYO Cilium cluster by Copilot · Pull Request #3845 · Azure/azure-container-networking · GitHub
[go: up one dir, main page]

Skip to content

Conversation

Copilot
Copy link
Contributor
@Copilot Copilot AI commented Jul 18, 2025

Thanks for assigning this issue to me. I'm starting to work on it and will keep this PR's description up to date as I form a plan and make progress.

Original issue description:

Create a script under https://github.com/Azure/azure-container-networking/tree/master/hack/aks that should leverage the make file cmds mentioned below to create a byocni cluster based on the inputs.(Similar to the inputs passed to each Make cmd below). Byocni cilium should be the default setup, but it should be configurable to create other types of clusters with the existing make targets.
Steps to create:

  1. hackfile contains many helpful commands for cluster provisioning. For this scenario, we are using overlay-byocni-nokubeproxy-up. Example:
  1. Deploy CNS to Cluster. The ACN repo contains the make command to deploy CNS to the cluster. Make sure the script has these variables configurable. Run this from root. Example:
    sudo -E env "PATH=$PATH" make test-load CNS_ONLY=true CNS_VERSION=v1.5.38 AZURE_IPAM_VERSION=v0.3.0 INSTALL_CNS=true INSTALL_OVERLAY=true CNS_IMAGE_REPO=MCR
  1. This folder contains all of the cilium manifests. You will need to deploy a particular version of cilium to the cluster. Make sure the variables are configurable For example,
    export DIR=<dir> # format 1.14
    export CILIUM_IMAGE_REGISTRY=acnpublic.azurecr.io # or mcr.microsoft.com/containernetworking if you need to use the published image
    export CILIUM_VERSION_TAG=<test-tag>
    kubectl apply -f test/integration/manifests/cilium/v${DIR}/cilium-config/cilium-config.yaml
    kubectl apply -f test/integration/manifests/cilium/v${DIR}/cilium-operator/files
    kubectl apply -f test/integration/manifests/cilium/v${DIR}/cilium-agent/files
    export IPV6_HP_BPF_VERSION=<bpf version> # Needed for dualstack
    envsubst '${CILIUM_VERSION_TAG},${CILIUM_IMAGE_REGISTRY},${IPV6_HP_BPF_VERSION}' < test/integration/manifests/cilium/v${DIR}/cilium-operator/templates/deployment.yaml | kubectl apply -f -
    envsubst '${CILIUM_VERSION_TAG},${CILIUM_IMAGE_REGISTRY},${IPV6_HP_BPF_VERSION}' < test/integration/manifests/cilium/v${DIR}/cilium-agent/templates/daemonset.yaml | kubectl apply -f -

Fixes #3773.


💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update the Makefile to the BYO cluster with CNS + CNI
2 participants
0