intel-device-plugins-for-ku.../deployments/fpga_admissionwebhook/base/fpga-reader-clusterrole.yaml
Antti Kervinen 5fe8174077 fpga_plugin: add kustomization files
- Add script/fpga-plugin-prepare-for-kustomization.sh, creates contents
  for the secret needed by the fpga plugin webhook.
- Single-command fpga plugin + webhook deployment for both modes:
  - `kubectl create -k deployments/fpga_plugin/overlays/af`
  - `kubectl create -k deployments/fpga_plugin/overlays/region`
- Change intel-fpga-plugin image CMD to ENTRYPOINT.
2020-02-24 16:32:26 +02:00

22 lines
486 B
YAML

apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: fpga-reader
rules:
- apiGroups: ["fpga.intel.com"]
resources: ["acceleratorfunctions", "fpgaregions"]
verbs: ["get", "list", "watch"]
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: default-fpga-reader
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: fpga-reader
subjects:
- kind: ServiceAccount
name: default
namespace: default