Skip to content

Instantly share code, notes, and snippets.

@derbeneviv
Created January 18, 2019 08:29
Show Gist options
  • Save derbeneviv/9ddf919852ee44beeb7ef7834675a9ee to your computer and use it in GitHub Desktop.
Save derbeneviv/9ddf919852ee44beeb7ef7834675a9ee to your computer and use it in GitHub Desktop.
apiVersion: extensions/v1beta1
kind: PodSecurityPolicy
metadata:
name: istio
spec:
allowPrivilegeEscalation: true
allowedCapabilities:
- NET_ADMIN
fsGroup:
rule: RunAsAny
privileged: true
runAsUser:
rule: RunAsAny
seLinux:
rule: RunAsAny
supplementalGroups:
rule: RunAsAny
volumes:
- '*'
------
apiVersion: authorization.openshift.io/v1
kind: ClusterRole
metadata:
name: istio
rules:
- apiGroups:
- extensions
attributeRestrictions: null
resourceNames:
- istio
resources:
- podsecuritypolicies
verbs:
- use
------
apiVersion: authorization.openshift.io/v1
groupNames: null
kind: ClusterRoleBinding
metadata:
name: istio-user
roleRef:
name: istio
subjects:
- kind: ServiceAccount
name: default
namespace: bluegreen
userNames:
- system:serviceaccount:bluegreen:default
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment