Skip to content

Instantly share code, notes, and snippets.

@devx
Created May 17, 2019 15:04
Show Gist options
  • Save devx/ed148d38bfe625f60a0e3b143e181975 to your computer and use it in GitHub Desktop.
Save devx/ed148d38bfe625f60a0e3b143e181975 to your computer and use it in GitHub Desktop.
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: istio-remote-clusterrole
rules:
- apiGroups: ["extensions"]
resources: ["podsecuritypolicies"]
resourceNames: ["psp:privileged"]
verbs: ["use"]
---
apiVersion: rbac.authorization.k8s.io/v1beta1
kind: ClusterRoleBinding
metadata:
name: istio-remote-rolebinding
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: istio-remote-clusterrole
subjects:
- kind: Group
apiGroup: rbac.authorization.k8s.io
name: system:authenticated
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment