summaryrefslogtreecommitdiffstats
path: root/kud/demo/composite-firewall/sink/templates/rolebinding.yaml
diff options
context:
space:
mode:
authorTodd Malsbary <todd.malsbary@intel.com>2021-06-03 17:05:16 -0700
committerTodd Malsbary <todd.malsbary@intel.com>2021-06-04 14:25:36 -0700
commit225885f76eef52ac1b7d14353833d0b318359d9c (patch)
tree4fdc2b8cfb088cc23bbc5776edb136e2a7c711e4 /kud/demo/composite-firewall/sink/templates/rolebinding.yaml
parent99f2be307f194e1f6a60e4098e82f6775c8dad5b (diff)
The sink app needs the CAP_NET_RAW capability
The CAP_NET_RAW capability is not available with the default PodSecurityPolicy. Create a service account and role binding to the privileged policy and specify the sink to use it. Issue-ID: MULTICLOUD-1310 Signed-off-by: Todd Malsbary <todd.malsbary@intel.com> Change-Id: Ib00ee1e8797d497d024a167fc9a0336d4c2a7ae1
Diffstat (limited to 'kud/demo/composite-firewall/sink/templates/rolebinding.yaml')
-rw-r--r--kud/demo/composite-firewall/sink/templates/rolebinding.yaml14
1 files changed, 14 insertions, 0 deletions
diff --git a/kud/demo/composite-firewall/sink/templates/rolebinding.yaml b/kud/demo/composite-firewall/sink/templates/rolebinding.yaml
new file mode 100644
index 00000000..14c5b758
--- /dev/null
+++ b/kud/demo/composite-firewall/sink/templates/rolebinding.yaml
@@ -0,0 +1,14 @@
+{{- if .Values.rbac.create }}
+apiVersion: rbac.authorization.k8s.io/v1
+kind: RoleBinding
+metadata:
+ name: {{ include "sink.fullname" . }}
+roleRef:
+ apiGroup: rbac.authorization.k8s.io
+ kind: ClusterRole
+ name: psp:privileged
+subjects:
+- kind: ServiceAccount
+ name: {{ include "sink.serviceAccountName" . }}
+ namespace: {{ $.Release.Namespace }}
+{{- end }}