Skip to content

Update the Makefile to the BYO cluster with CNS + CNI #3773

@vipul-21

Description

@vipul-21

Update the makefile 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). Make it universal and allow for other byocni scenarios. byocni cilium can be the default if the user does not specify another scenario.
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 -

Metadata

Metadata

Assignees

Labels

ciInfra or tooling.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions