Skip to content

Commit

Permalink
Add wormhole RBAC (#869)
Browse files Browse the repository at this point in the history
  • Loading branch information
Nuckal777 authored Jan 25, 2024
1 parent 6ad5e5a commit 902282d
Showing 1 changed file with 45 additions and 1 deletion.
46 changes: 45 additions & 1 deletion charts/seed/templates/wormhole.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,48 @@
{{- if semverCompare ">= 1.24-0" .Capabilities.KubeVersion.Version -}}
apiVersion: v1
kind: ServiceAccount
metadata:
name: wormhole
namespace: kube-system
---
kind: ClusterRole
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: wormhole
rules:
- apiGroups:
- ""
resources:
- pods
verbs:
- get
- apiGroups:
- ""
resources:
- nodes
verbs:
- list
- watch
- apiGroups:
- ""
resources:
- nodes/status
verbs:
- patch
---
kind: ClusterRoleBinding
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: wormhole
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: wormhole
subjects:
- kind: ServiceAccount
name: wormhole
namespace: kube-system
---
apiVersion: apps/v1
kind: DaemonSet
metadata:
Expand Down Expand Up @@ -39,7 +83,7 @@ spec:
tolerations:
- operator: Exists
effect: NoSchedule
serviceAccountName: flannel
serviceAccountName: wormhole
containers:
- name: wormhole
image: "{{ .Values.images.wormhole.repository }}:{{ .Values.version.kubernikus }}"
Expand Down

0 comments on commit 902282d

Please sign in to comment.