feat: Disable kube-proxy and enable Calico in eBPF mode (#677)
This commit is contained in:
1 parent
d3bf444926
commit
92f2a92cda
4 files changed
+32
-28
No files matched your search
@@ -55,5 +55,6 @@ k3s_server_manifests_urls:
|
|||||||
# (list) A flat list of templates to deploy on the primary control plane
|
# (list) A flat list of templates to deploy on the primary control plane
|
||||||
# /var/lib/rancher/k3s/server/manifests
|
# /var/lib/rancher/k3s/server/manifests
|
||||||
k3s_server_manifests_templates:
|
k3s_server_manifests_templates:
|
||||||
|
- calico-ebpf.yaml.j2
|
||||||
- calico-installation.yaml.j2
|
- calico-installation.yaml.j2
|
||||||
- kube-vip-daemonset.yaml.j2
|
- kube-vip-daemonset.yaml.j2
|
||||||
@@ -10,38 +10,25 @@ k3s_server:
|
|||||||
node-ip: "{{ ansible_host }}"
|
node-ip: "{{ ansible_host }}"
|
||||||
tls-san:
|
tls-san:
|
||||||
- "{{ kubevip_address }}"
|
- "{{ kubevip_address }}"
|
||||||
# Disable Docker - this will use the default containerd CRI
|
https-listen-port: 6443
|
||||||
docker: false
|
docker: false # Disable Docker - this will use the default containerd CRI
|
||||||
flannel-backend: "none" # This needs to be in quotes
|
flannel-backend: "none" # This needs to be in quotes
|
||||||
disable:
|
disable:
|
||||||
# Disable flannel - replaced with Calico
|
- flannel # Disable flannel - replaced with Calico
|
||||||
- flannel
|
- local-storage # Disable local-path-provisioner - installed with Flux
|
||||||
# Disable local-path-provisioner - installed with Flux
|
- metrics-server # Disable metrics-server - installed with Flux
|
||||||
- local-storage
|
- servicelb # Disable servicelb - replaced with metallb and installed with Flux
|
||||||
# Disable metrics-server - installed with Flux
|
- traefik # Disable traefik - replaced with ingress-nginx and installed with Flux
|
||||||
- metrics-server
|
|
||||||
# Disable servicelb - replaced with metallb and installed with Flux
|
|
||||||
- servicelb
|
|
||||||
# Disable traefik - replaced with ingress-nginx and installed with Flux
|
|
||||||
- traefik
|
|
||||||
disable-network-policy: true
|
disable-network-policy: true
|
||||||
disable-cloud-controller: true
|
disable-cloud-controller: true
|
||||||
|
disable-kube-proxy: true # Disable kube-proxy - replaced with Calico eBPF
|
||||||
write-kubeconfig-mode: "644"
|
write-kubeconfig-mode: "644"
|
||||||
# Network CIDR to use for pod IPs
|
cluster-cidr: "10.42.0.0/16" # Network CIDR to use for pod IPs
|
||||||
cluster-cidr: "10.42.0.0/16"
|
service-cidr: "10.43.0.0/16" # Network CIDR to use for service IPs
|
||||||
# Network CIDR to use for service IPs
|
|
||||||
service-cidr: "10.43.0.0/16"
|
|
||||||
kube-controller-manager-arg:
|
kube-controller-manager-arg:
|
||||||
# Required to monitor kube-controller-manager with kube-prometheus-stack
|
- "bind-address=0.0.0.0" # Required to monitor kube-controller-manager with kube-prometheus-stack
|
||||||
- "bind-address=0.0.0.0"
|
|
||||||
kube-proxy-arg:
|
|
||||||
# Required to monitor kube-proxy with kube-prometheus-stack
|
|
||||||
- "metrics-bind-address=0.0.0.0"
|
|
||||||
kube-scheduler-arg:
|
kube-scheduler-arg:
|
||||||
# Required to monitor kube-scheduler with kube-prometheus-stack
|
- "bind-address=0.0.0.0" # Required to monitor kube-scheduler with kube-prometheus-stack
|
||||||
- "bind-address=0.0.0.0"
|
etcd-expose-metrics: true # Required to monitor etcd with kube-prometheus-stack
|
||||||
# Required to monitor etcd with kube-prometheus-stack
|
|
||||||
etcd-expose-metrics: true
|
|
||||||
kube-apiserver-arg:
|
kube-apiserver-arg:
|
||||||
# Required for HAProxy health-checks
|
- "anonymous-auth=true" # Required for HAProxy health-checks
|
||||||
- "anonymous-auth=true"
|
|
||||||
@@ -0,0 +1,14 @@
|
|||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Namespace
|
||||||
|
metadata:
|
||||||
|
name: tigera-operator
|
||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: ConfigMap
|
||||||
|
metadata:
|
||||||
|
name: kubernetes-services-endpoint
|
||||||
|
namespace: tigera-operator
|
||||||
|
data:
|
||||||
|
KUBERNETES_SERVICE_HOST: "{{ k3s_registration_address }}"
|
||||||
|
KUBERNETES_SERVICE_PORT: "{{ k3s_server['https-listen-port'] }}"
|
||||||
@@ -7,6 +7,8 @@ spec:
|
|||||||
registry: quay.io
|
registry: quay.io
|
||||||
imagePath: calico
|
imagePath: calico
|
||||||
calicoNetwork:
|
calicoNetwork:
|
||||||
|
hostPorts: Disabled
|
||||||
|
linuxDataplane: BPF
|
||||||
# https://projectcalico.docs.tigera.io/networking/ip-autodetection
|
# https://projectcalico.docs.tigera.io/networking/ip-autodetection
|
||||||
nodeAddressAutodetectionV4:
|
nodeAddressAutodetectionV4:
|
||||||
cidrs:
|
cidrs:
|
||||||
|
|||||||
Reference in new issue
Block a user