-
Notifications
You must be signed in to change notification settings - Fork 431
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Generate calico templates from source and update to 3.22
- Loading branch information
Cecile Robert-Michon
committed
Feb 1, 2022
1 parent
6cc55e0
commit a5b8626
Showing
20 changed files
with
57,513 additions
and
36,198 deletions.
There are no files selected for viewing
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
Large diffs are not rendered by default.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
apiVersion: kustomize.config.k8s.io/v1beta1 | ||
kind: Kustomization | ||
resources: | ||
- ../calico | ||
patches: | ||
- patches/calico-config.yaml | ||
patches: | ||
- target: | ||
group: apps | ||
version: v1 | ||
kind: DaemonSet | ||
name: calico-node | ||
namespace: kube-system | ||
path: patches/calico-node.yaml |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
kind: ConfigMap | ||
apiVersion: v1 | ||
metadata: | ||
name: calico-config | ||
namespace: kube-system | ||
data: | ||
cni_network_config: |- | ||
{ | ||
"name": "k8s-pod-network", | ||
"cniVersion": "0.3.1", | ||
"plugins": [ | ||
{ | ||
"type": "calico", | ||
"log_level": "info", | ||
"log_file_path": "/var/log/calico/cni/cni.log", | ||
"datastore_type": "kubernetes", | ||
"nodename": "__KUBERNETES_NODE_NAME__", | ||
"mtu": 1500, | ||
"ipam": { | ||
"type": "host-local", | ||
"subnet": "usePodCidr" | ||
}, | ||
"policy": { | ||
"type": "k8s" | ||
}, | ||
"kubernetes": { | ||
"kubeconfig": "__KUBECONFIG_FILEPATH__" | ||
} | ||
}, | ||
{ | ||
"type": "portmap", | ||
"snat": true, | ||
"capabilities": {"portMappings": true} | ||
}, | ||
{ | ||
"type": "bandwidth", | ||
"capabilities": {"bandwidth": true} | ||
} | ||
] | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
- op: add | ||
path: "/spec/template/spec/containers/0/env/-" | ||
value: | ||
# https://docs.projectcalico.org/reference/public-cloud/azure#azure-user-defined-routes | ||
name: CALICO_IPv6POOL_CIDR | ||
value: "2001:1234:5678:9a40::/58" | ||
- op: add | ||
path: "/spec/template/spec/containers/0/env/-" | ||
value: | ||
name: IP6 | ||
value: "autodetect" | ||
- op: add | ||
path: "/spec/template/spec/containers/0/env/-" | ||
value: | ||
name: FELIX_IPV6SUPPORT | ||
value: "true" | ||
|
||
|
Oops, something went wrong.