Created
September 25, 2021 20:54
-
-
Save avoidik/d54991b9273a6798d502e98cce55df8d to your computer and use it in GitHub Desktop.
This file contains hidden or 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
- name: CALICO_IPV4POOL_CIDR | |
value: "172.16.0.0/16" | |
- name: IP_AUTODETECTION_METHOD | |
value: "interface=eth1" |
This file contains hidden or 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
apiVersion: kubeadm.k8s.io/v1beta2 | |
kind: ClusterConfiguration | |
kubernetesVersion: 1.21.1 | |
controlPlaneEndpoint: "k8s-master:6443" | |
networking: | |
podSubnet: 172.16.0.0/16 | |
--- | |
apiVersion: kubeadm.k8s.io/v1beta2 | |
kind: InitConfiguration | |
nodeRegistration: | |
criSocket: unix:///var/run/crio/crio.sock | |
localAPIEndpoint: | |
advertiseAddress: 192.168.50.101 | |
bindPort: 6443 | |
--- | |
kind: KubeletConfiguration | |
apiVersion: kubelet.config.k8s.io/v1beta1 | |
cgroupDriver: systemd | |
--- |
Author
avoidik
commented
Sep 25, 2021
all calico settings can be defined via tigera-operator as follows:
kubectl create -f - <<EOF
---
apiVersion: operator.tigera.io/v1
kind: Installation
metadata:
name: default
spec:
calicoNetwork:
containerIPForwarding: Enabled
nodeAddressAutodetectionV4:
interface: eth1
ipPools:
- name: default-ipv4-ippool
blockSize: 24
cidr: 10.244.0.0/16
encapsulation: VXLANCrossSubnet
natOutgoing: Enabled
nodeSelector: all()
---
apiVersion: operator.tigera.io/v1
kind: APIServer
metadata:
name: default
spec: {}
EOF
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment