Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
Kubespray
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Model registry
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Mirror
Kubespray
Commits
9ce34be2
Unverified
Commit
9ce34be2
authored
4 years ago
by
Sebastian
Committed by
GitHub
4 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Added missing permissions for operator. (#6683)
Related commit:
https://github.com/cilium/cilium/commit/976337b750ac8110b128fa25105e2fcc91ccd223
parent
79226d08
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
roles/network_plugin/cilium/templates/cilium-cr.yml.j2
+19
-0
19 additions, 0 deletions
roles/network_plugin/cilium/templates/cilium-cr.yml.j2
with
19 additions
and
0 deletions
roles/network_plugin/cilium/templates/cilium-cr.yml.j2
+
19
−
0
View file @
9ce34be2
...
@@ -69,6 +69,25 @@ rules:
...
@@ -69,6 +69,25 @@ rules:
- get
- get
- list
- list
- watch
- watch
{% if cilium_version | regex_replace('v') is version('1.8', '>=') %}
# For cilium-operator running in HA mode.
#
# Cilium operator running in HA mode requires the use of ResourceLock for Leader Election
# between mulitple running instances.
# The preferred way of doing this is to use LeasesResourceLock as edits to Leases are less
# common and fewer objects in the cluster watch "all Leases".
# The support for leases was introduced in coordination.k8s.io/v1 during Kubernetes 1.14 release.
# In Cilium we currently don't support HA mode for K8s version < 1.14. This condition make sure
# that we only authorize access to leases resources in supported K8s versions.
- apiGroups:
- coordination.k8s.io
resources:
- leases
verbs:
- create
- get
- update
{% endif %}
---
---
apiVersion: rbac.authorization.k8s.io/v1
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
kind: ClusterRole
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment