Skip to content

Commit

Permalink
Update CNIs
Browse files Browse the repository at this point in the history
Canal: v3.18
Cilium: v1.9
Flannel: 0.14.0-rc1

Signed-off-by: Ganesh Maharaj Mahalingam <[email protected]>
  • Loading branch information
Ganesh Maharaj Mahalingam authored and dklyle committed May 18, 2021
1 parent f9b2600 commit 6b56a90
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 4 deletions.
2 changes: 2 additions & 0 deletions clr-k8s-examples/0-canal/overlays/v3.18/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
resources:
- canal/canal.yaml
5 changes: 5 additions & 0 deletions clr-k8s-examples/0-cilium/overlays/v1.9/values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
ipam:
mode: "cluster-pool"
operator:
clusterPoolIPv4PodCIDR: "10.244.0.0/16"
clusterPoolIPv4MaskSize: 24
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
resources:
- flannel/Documentation/kube-flannel.yml
12 changes: 8 additions & 4 deletions clr-k8s-examples/create_stack.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,10 @@ LOAD_BALANCER_IP=${LOAD_BALANCER_IP:-""}
LOAD_BALANCER_PORT="${LOAD_BALANCER_PORT:-6444}"

# versions
CANAL_VER="${CLRK8S_CANAL_VER:-v3.10}"
CILIUM_VER="${CLRK8S_CILIUM_VER:-v1.6.4}"
FLANNEL_VER="${CLRK8S_FLANNEL_VER:-960b3243b9a7faccdfe7b3c09097105e68030ea7}"
CANAL_VER="${CLRK8S_CANAL_VER:-v3.18}"
CILIUM_VER="${CLRK8S_CILIUM_VER:-v1.9}"
FLANNEL_VER="${CLRK8S_FLANNEL_VER:-v0.14.0-rc1}"
CILIUM_VAL_OVERRIDE=""
K8S_VER="${CLRK8S_K8S_VER:-}"
KATA_VER="${CLRK8S_KATA_VER:-1.9.1-kernel-config}"
ROOK_VER="${CLRK8S_ROOK_VER:-v1.2.6}"
Expand Down Expand Up @@ -167,7 +168,10 @@ function cni() {

get_repo "${CILIUM_URL}" "${CILIUM_DIR}/overlays/${CILIUM_VER}"
set_repo_version "${CILIUM_VER}" "${CILIUM_DIR}/overlays/${CILIUM_VER}/cilium/"
helm template "${CILIUM_DIR}/overlays/${CILIUM_VER}/cilium/install/kubernetes/cilium" --namespace kube-system --set global.containerRuntime.integration="$RUNNER" | kubectl apply -f -
if [ -f "${CILIUM_DIR}/overlays/${CILIUM_VER}/values.yaml" ]; then
CILIUM_VAL_OVERRIDE="--values ${CILIUM_DIR}/overlays/${CILIUM_VER}/values.yaml"
fi
helm template "${CILIUM_DIR}/overlays/${CILIUM_VER}/cilium/install/kubernetes/cilium" ${CILIUM_VAL_OVERRIDE} --namespace kube-system --set global.containerRuntime.integration="$RUNNER" | kubectl apply -f -
;;
*)
echo"Unknown cni $CNI"
Expand Down

0 comments on commit 6b56a90

Please sign in to comment.