feat: implement calico cni - too many problems with flannel (#94)

Signed-off-by: Devin Buhl <devin.kray@gmail.com>
This commit is contained in:
Devin Buhl authored and GitHub committed 2021-10-03 16:58:30 -04:00
1 parent 49a659e674
commit 4bf2f2fbe0
4 files changed
+25 -2

No files matched your search

+1 -1
View File
@@ -20,7 +20,7 @@ The following components will be installed in your [k3s](https://k3s.io/) cluste
Feel free to read up on any of these technologies before you get started to be more familiar with them. Feel free to read up on any of these technologies before you get started to be more familiar with them.
- [cert-manager](https://cert-manager.io/) - SSL certificates - with Cloudflare DNS challenge - [cert-manager](https://cert-manager.io/) - SSL certificates - with Cloudflare DNS challenge
- [flannel](https://github.com/flannel-io/flannel) - default CNI provided by k3s - [calico](https://www.tigera.io/project-calico/) - CNI (container network interface)
- [flux](https://toolkit.fluxcd.io/) - GitOps tool for deploying manifests from the `cluster` directory - [flux](https://toolkit.fluxcd.io/) - GitOps tool for deploying manifests from the `cluster` directory
- [hajimari](https://github.com/toboshii/hajimari) - start page with ingress discovery - [hajimari](https://github.com/toboshii/hajimari) - start page with ingress discovery
- [kube-vip](https://kube-vip.io/) - layer 2 load balancer for the Kubernetes control plane - [kube-vip](https://kube-vip.io/) - layer 2 load balancer for the Kubernetes control plane
@@ -25,8 +25,14 @@ k3s_use_unsupported_config: false
# (string) Control Plane registration address # (string) Control Plane registration address
k3s_registration_address: "{{ kubevip_address }}" k3s_registration_address: "{{ kubevip_address }}"
# (list) A list of URLs to deploy on the primary control plane. Read notes below.
k3s_server_manifests_urls:
- url: https://docs.projectcalico.org/archive/v3.20/manifests/tigera-operator.yaml
filename: tigera-operator.yaml
# (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-installation.yaml.j2"
- "kube-vip-rbac.yaml.j2" - "kube-vip-rbac.yaml.j2"
- "kube-vip-daemonset.yaml.j2" - "kube-vip-daemonset.yaml.j2"
@@ -12,8 +12,9 @@ k3s_server:
# kube-vip # kube-vip
- "{{ kubevip_address }}" - "{{ kubevip_address }}"
docker: false docker: false
flannel-backend: "host-gw" # This needs to be in quotes flannel-backend: "none" # This needs to be in quotes
disable: disable:
- flannel
- traefik - traefik
- servicelb - servicelb
- metrics-server - metrics-server
@@ -0,0 +1,16 @@
---
apiVersion: operator.tigera.io/v1
kind: Installation
metadata:
name: default
spec:
calicoNetwork:
# Note: The ipPools section cannot be modified post-install.
ipPools:
- blockSize: 26
cidr: "{{ k3s_server['cluster-cidr'] }}"
encapsulation: "VXLANCrossSubnet"
natOutgoing: Enabled
nodeSelector: all()
nodeMetricsPort: 9091
typhaMetricsPort: 9093