Dual Stack setup for Kubernetes does not work with RUNTIME=containerd
or RUNTIME=crio
. Make sure you are running with
default Docker container runtime.
Edit /etc/sysconfig/cilium
and modify CILIUM_OPTS and CILIUM_OPERATOR_OPTS.
#!/bin/bash | |
# For debian based distro. | |
# This will setup a complete development environment for Cilium. | |
# You can also use the cilium vagrant based environment after this setup. | |
# ./contrib/vagrant/start.sh | |
set -euxo pipefail | |
is_user_root () { [ ${EUID:-$(id -u)} -eq 0 ]; } |
#!/bin/bash | |
set -euxo pipefail | |
function setup_cilium() { | |
cat <<EOF >> /etc/sysconfig/cilium | |
CILIUM_OPERATOR_OPTS=" --debug --k8s-kubeconfig-path /var/lib/cilium/cilium.kubeconfig --kvstore etcd --kvstore-opt etcd.config=/var/lib/cilium/etcd-config.yml --cluster-pool-ipv4-cidr=10.16.0.0/12 --cluster-pool-ipv6-cidr=fd77::/112 --cluster-pool-ipv6-mask-size 120 --cluster-pool-ipv4-mask-size 24" | |
EOF | |
} |
variable "endpoint" { | |
type = string | |
description = "Endpoint of the kubernetes cluster." | |
} | |
variable "client_certificate" { | |
type = string | |
description = "Certificate to use for the kubernetes client." | |
} |
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
Vagrant.require_version ">=2.0.0" | |
Vagrant.configure("2") do |config| | |
config.vm.box = "ubuntu/focal64" | |
config.vm.provision "shell", path: "dev-setup.sh" |