Skip to content

Instantly share code, notes, and snippets.

@alexandreroman
Created October 14, 2020 14:02
Show Gist options
  • Save alexandreroman/bdab7d8e0ab26d9480db196a1de301c3 to your computer and use it in GitHub Desktop.
Save alexandreroman/bdab7d8e0ab26d9480db196a1de301c3 to your computer and use it in GitHub Desktop.
Replace Calico by Cilium in a TKG plan for vSphere
#!/bin/sh
# Use this script to create a TKG vSphere plan leveraging the Antrea CNI.
# Then you can create a new cluster with Antrea with this command:
# $ tkg create cluster foo -p dev-antrea
set -e
export TKG_PLAN=dev
export CILIUM_VERSION=1.8
export CAPV_VERSION=0.6.6
sed '/calico-config/,$d' $HOME/.tkg/providers/infrastructure-vsphere/v$CAPV_VERSION/cluster-template-$TKG_PLAN.yaml > $HOME/.tkg/providers/infrastructure-vsphere/v$CAPV_VERSION/cluster-template-$TKG_PLAN-cilium.yaml && \
curl -s https://raw.githubusercontent.com/cilium/cilium/v${CILIUM_VERSION}/install/kubernetes/quick-install.yaml | sed 's/^/ /' >> $HOME/.tkg/providers/infrastructure-vsphere/v${CAPV_VERSION}/cluster-template-$TKG_PLAN-cilium.yaml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment