Created
October 14, 2020 14:02
-
-
Save alexandreroman/bdab7d8e0ab26d9480db196a1de301c3 to your computer and use it in GitHub Desktop.
Replace Calico by Cilium in a TKG plan for vSphere
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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