Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
1de0d2bf
Commit
1de0d2bf
authored
Jun 12, 2018
by
Jing Ai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update Calico addon yamls to make it work for both 2.x and 3.x. versions.
Co-authored-by:
Casey Davenport
<
casey@tigera.io
>
parent
68bea2f4
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
150 additions
and
2 deletions
+150
-2
calico-clusterrole.yaml
...r/addons/calico-policy-controller/calico-clusterrole.yaml
+14
-2
calico-node-daemonset.yaml
...ddons/calico-policy-controller/calico-node-daemonset.yaml
+22
-0
clusterinformations-crd.yaml
...ons/calico-policy-controller/clusterinformations-crd.yaml
+15
-0
felixconfigurations-crd.yaml
...ons/calico-policy-controller/felixconfigurations-crd.yaml
+15
-0
globalnetworksets-crd.yaml
...ddons/calico-policy-controller/globalnetworksets-crd.yaml
+15
-0
hostendpoints-crd.yaml
...er/addons/calico-policy-controller/hostendpoints-crd.yaml
+15
-0
networkpolicies-crd.yaml
.../addons/calico-policy-controller/networkpolicies-crd.yaml
+15
-0
typha-deployment.yaml
...ter/addons/calico-policy-controller/typha-deployment.yaml
+2
-0
typha-vertical-autoscaler-clusterrole.yaml
...icy-controller/typha-vertical-autoscaler-clusterrole.yaml
+14
-0
typha-vertical-autoscaler-clusterrolebinding.yaml
...troller/typha-vertical-autoscaler-clusterrolebinding.yaml
+15
-0
typha-vertical-autoscaler-serviceaccount.yaml
...-controller/typha-vertical-autoscaler-serviceaccount.yaml
+8
-0
No files found.
cluster/addons/calico-policy-controller/calico-clusterrole.yaml
View file @
1de0d2bf
...
@@ -36,6 +36,7 @@ rules:
...
@@ -36,6 +36,7 @@ rules:
-
get
-
get
-
list
-
list
-
watch
-
watch
-
patch
-
apiGroups
:
[
"
"
]
-
apiGroups
:
[
"
"
]
resources
:
resources
:
-
nodes
-
nodes
...
@@ -51,17 +52,28 @@ rules:
...
@@ -51,17 +52,28 @@ rules:
-
get
-
get
-
list
-
list
-
watch
-
watch
-
apiGroups
:
[
"
networking.k8s.io"
]
resources
:
-
networkpolicies
verbs
:
-
watch
-
list
-
apiGroups
:
[
"
crd.projectcalico.org"
]
-
apiGroups
:
[
"
crd.projectcalico.org"
]
resources
:
resources
:
-
globalfelixconfigs
-
globalfelixconfigs
-
felixconfigurations
-
bgppeers
-
globalbgpconfigs
-
globalbgpconfigs
-
bgpconfigurations
-
ippools
-
ippools
-
globalnetworkpolicies
-
globalnetworkpolicies
-
globalnetworksets
-
networkpolicies
-
clusterinformations
-
hostendpoints
verbs
:
verbs
:
-
create
-
create
-
get
-
get
-
list
-
list
-
update
-
update
-
patch
-
delete
-
watch
-
watch
cluster/addons/calico-policy-controller/calico-node-daemonset.yaml
View file @
1de0d2bf
...
@@ -45,14 +45,22 @@ spec:
...
@@ -45,14 +45,22 @@ spec:
value
:
"
calico-typha"
value
:
"
calico-typha"
-
name
:
FELIX_DEFAULTENDPOINTTOHOSTACTION
-
name
:
FELIX_DEFAULTENDPOINTTOHOSTACTION
value
:
"
ACCEPT"
value
:
"
ACCEPT"
-
name
:
FELIX_HEALTHENABLED
value
:
"
true"
-
name
:
FELIX_IPV6SUPPORT
-
name
:
FELIX_IPV6SUPPORT
value
:
"
false"
value
:
"
false"
-
name
:
FELIX_LOGSEVERITYSYS
-
name
:
FELIX_LOGSEVERITYSYS
value
:
"
none"
value
:
"
none"
-
name
:
FELIX_LOGSEVERITYSCREEN
value
:
"
info"
-
name
:
FELIX_PROMETHEUSMETRICSENABLED
-
name
:
FELIX_PROMETHEUSMETRICSENABLED
value
:
"
true"
value
:
"
true"
-
name
:
FELIX_HEALTHENABLED
-
name
:
FELIX_HEALTHENABLED
value
:
"
true"
value
:
"
true"
-
name
:
FELIX_REPORTINGINTERVALSECS
value
:
"
0"
-
name
:
FELIX_TYPHAK8SSERVICENAME
value
:
"
calico-typha"
-
name
:
IP
-
name
:
IP
value
:
"
"
value
:
"
"
-
name
:
NO_DEFAULT_POOLS
-
name
:
NO_DEFAULT_POOLS
...
@@ -84,6 +92,12 @@ spec:
...
@@ -84,6 +92,12 @@ spec:
-
mountPath
:
/etc/calico
-
mountPath
:
/etc/calico
name
:
etc-calico
name
:
etc-calico
readOnly
:
true
readOnly
:
true
-
mountPath
:
/var/run/calico
name
:
var-run-calico
readOnly
:
false
-
mountPath
:
/var/lib/calico
name
:
var-lib-calico
readOnly
:
false
# This container installs the Calico CNI binaries
# This container installs the Calico CNI binaries
# and CNI network config file on each node.
# and CNI network config file on each node.
-
name
:
install-cni
-
name
:
install-cni
...
@@ -149,6 +163,14 @@ spec:
...
@@ -149,6 +163,14 @@ spec:
-
name
:
cni-net-dir
-
name
:
cni-net-dir
hostPath
:
hostPath
:
path
:
/etc/cni/net.d
path
:
/etc/cni/net.d
# Used to
-
name
:
var-run-calico
hostPath
:
path
:
/var/run/calico
# Used to
-
name
:
var-lib-calico
hostPath
:
path
:
/var/lib/calico
tolerations
:
tolerations
:
# Make sure calico/node gets scheduled on all nodes.
# Make sure calico/node gets scheduled on all nodes.
-
effect
:
NoSchedule
-
effect
:
NoSchedule
...
...
cluster/addons/calico-policy-controller/clusterinformations-crd.yaml
0 → 100644
View file @
1de0d2bf
apiVersion
:
apiextensions.k8s.io/v1beta1
kind
:
CustomResourceDefinition
metadata
:
name
:
clusterinformations.crd.projectcalico.org
labels
:
kubernetes.io/cluster-service
:
"
true"
addonmanager.kubernetes.io/mode
:
Reconcile
spec
:
scope
:
Cluster
group
:
crd.projectcalico.org
version
:
v1
names
:
kind
:
ClusterInformation
plural
:
clusterinformations
singular
:
clusterinformation
cluster/addons/calico-policy-controller/felixconfigurations-crd.yaml
0 → 100644
View file @
1de0d2bf
apiVersion
:
apiextensions.k8s.io/v1beta1
kind
:
CustomResourceDefinition
metadata
:
name
:
felixconfigurations.crd.projectcalico.org
labels
:
kubernetes.io/cluster-service
:
"
true"
addonmanager.kubernetes.io/mode
:
Reconcile
spec
:
scope
:
Cluster
group
:
crd.projectcalico.org
version
:
v1
names
:
kind
:
FelixConfiguration
plural
:
felixconfigurations
singular
:
felixconfiguration
cluster/addons/calico-policy-controller/globalnetworksets-crd.yaml
0 → 100644
View file @
1de0d2bf
apiVersion
:
apiextensions.k8s.io/v1beta1
kind
:
CustomResourceDefinition
metadata
:
name
:
globalnetworksets.crd.projectcalico.org
labels
:
kubernetes.io/cluster-service
:
"
true"
addonmanager.kubernetes.io/mode
:
Reconcile
spec
:
scope
:
Cluster
group
:
crd.projectcalico.org
version
:
v1
names
:
kind
:
GlobalNetworkSet
plural
:
globalnetworksets
singular
:
globalnetworkset
cluster/addons/calico-policy-controller/hostendpoints-crd.yaml
0 → 100644
View file @
1de0d2bf
apiVersion
:
apiextensions.k8s.io/v1beta1
kind
:
CustomResourceDefinition
metadata
:
name
:
hostendpoints.crd.projectcalico.org
labels
:
kubernetes.io/cluster-service
:
"
true"
addonmanager.kubernetes.io/mode
:
Reconcile
spec
:
scope
:
Cluster
group
:
crd.projectcalico.org
version
:
v1
names
:
kind
:
HostEndpoint
plural
:
hostendpoints
singular
:
hostendpoint
cluster/addons/calico-policy-controller/networkpolicies-crd.yaml
0 → 100644
View file @
1de0d2bf
apiVersion
:
apiextensions.k8s.io/v1beta1
kind
:
CustomResourceDefinition
metadata
:
name
:
networkpolicies.crd.projectcalico.org
labels
:
kubernetes.io/cluster-service
:
"
true"
addonmanager.kubernetes.io/mode
:
Reconcile
spec
:
scope
:
Namespaced
group
:
crd.projectcalico.org
version
:
v1
names
:
kind
:
NetworkPolicy
plural
:
networkpolicies
singular
:
networkpolicy
cluster/addons/calico-policy-controller/typha-deployment.yaml
View file @
1de0d2bf
...
@@ -44,6 +44,8 @@ spec:
...
@@ -44,6 +44,8 @@ spec:
value
:
"
9093"
value
:
"
9093"
-
name
:
TYPHA_DATASTORETYPE
-
name
:
TYPHA_DATASTORETYPE
value
:
"
kubernetes"
value
:
"
kubernetes"
-
name
:
TYPHA_REPORTINGINTERVALSECS
value
:
"
0"
-
name
:
TYPHA_MAXCONNECTIONSLOWERLIMIT
-
name
:
TYPHA_MAXCONNECTIONSLOWERLIMIT
value
:
"
1"
value
:
"
1"
-
name
:
TYPHA_HEALTHENABLED
-
name
:
TYPHA_HEALTHENABLED
...
...
cluster/addons/calico-policy-controller/typha-vertical-autoscaler-clusterrole.yaml
0 → 100644
View file @
1de0d2bf
apiVersion
:
rbac.authorization.k8s.io/v1
kind
:
ClusterRole
metadata
:
name
:
typha-cpva
labels
:
kubernetes.io/cluster-service
:
"
true"
addonmanager.kubernetes.io/mode
:
Reconcile
rules
:
-
apiGroups
:
[
"
"
]
resources
:
[
"
nodes"
]
verbs
:
[
"
list"
]
-
apiGroups
:
[
"
apps"
,
"
extensions"
]
resources
:
[
"
deployments"
]
verbs
:
[
"
patch"
]
cluster/addons/calico-policy-controller/typha-vertical-autoscaler-clusterrolebinding.yaml
0 → 100644
View file @
1de0d2bf
apiVersion
:
rbac.authorization.k8s.io/v1
kind
:
ClusterRoleBinding
metadata
:
name
:
typha-cpva
labels
:
kubernetes.io/cluster-service
:
"
true"
addonmanager.kubernetes.io/mode
:
Reconcile
roleRef
:
apiGroup
:
rbac.authorization.k8s.io
kind
:
ClusterRole
name
:
typha-cpva
subjects
:
-
kind
:
ServiceAccount
name
:
typha-cpva
namespace
:
kube-system
cluster/addons/calico-policy-controller/typha-vertical-autoscaler-serviceaccount.yaml
0 → 100644
View file @
1de0d2bf
apiVersion
:
v1
kind
:
ServiceAccount
metadata
:
name
:
typha-cpva
namespace
:
kube-system
labels
:
kubernetes.io/cluster-service
:
"
true"
addonmanager.kubernetes.io/mode
:
Reconcile
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment