Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
1f0c5e15
Commit
1f0c5e15
authored
Oct 27, 2017
by
Slava Semushin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
examples/podsecuritypolicy/rbac: fix names in comments and sync with examples repository.
parent
b00c15f1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
12 deletions
+18
-12
bindings.yaml
examples/podsecuritypolicy/rbac/bindings.yaml
+5
-5
policies.yaml
examples/podsecuritypolicy/rbac/policies.yaml
+9
-1
roles.yaml
examples/podsecuritypolicy/rbac/roles.yaml
+4
-6
No files found.
examples/podsecuritypolicy/rbac/bindings.yaml
View file @
1f0c5e15
# privileged
PSP gives the privilegedPSP
role
# to the group privileged.
# privileged
-psp-users gives the privileged-psp-user
role
# to the group privileged
-psp-users
.
apiVersion
:
rbac.authorization.k8s.io/v1
kind
:
ClusterRoleBinding
metadata
:
...
...
@@ -13,8 +13,8 @@ roleRef:
kind
:
ClusterRole
name
:
privileged-psp-user
---
# restricted
PSP grants the restrictedPSP
role to
# the groups restricted
and privileged
.
# restricted
-psp-users grants the restricted-psp-user
role to
# the groups restricted
-psp-users and privileged-psp-users
.
apiVersion
:
rbac.authorization.k8s.io/v1
kind
:
ClusterRoleBinding
metadata
:
...
...
@@ -32,7 +32,7 @@ roleRef:
name
:
restricted-psp-user
---
# edit grants edit role to the groups
# restricted
and privileged
.
# restricted
-psp-users and privileged-psp-users
.
apiVersion
:
rbac.authorization.k8s.io/v1
kind
:
ClusterRoleBinding
metadata
:
...
...
examples/podsecuritypolicy/rbac/policies.yaml
View file @
1f0c5e15
...
...
@@ -16,6 +16,12 @@ spec:
-
'
*'
allowedCapabilities
:
-
'
*'
hostPID
:
true
hostIPC
:
true
hostNetwork
:
true
hostPorts
:
-
min
:
1
max
:
65536
---
apiVersion
:
extensions/v1beta1
kind
:
PodSecurityPolicy
...
...
@@ -38,4 +44,6 @@ spec:
-
'
configMap'
-
'
persistentVolumeClaim'
-
'
projected'
hostPID
:
false
hostIPC
:
false
hostNetwork
:
false
examples/podsecuritypolicy/rbac/roles.yaml
View file @
1f0c5e15
# restrictedPSP grants access to use
# the restricted PSP.
# restricted-psp-user grants access to use the restricted PSP.
apiVersion
:
rbac.authorization.k8s.io/v1
kind
:
ClusterRole
metadata
:
name
:
restricted-psp-user
rules
:
rules
:
-
apiGroups
:
-
extensions
resources
:
...
...
@@ -14,13 +13,12 @@ rules:
verbs
:
-
use
---
# privilegedPSP grants access to use the privileged
# PSP.
# privileged-psp-user grants access to use the privileged PSP.
apiVersion
:
rbac.authorization.k8s.io/v1
kind
:
ClusterRole
metadata
:
name
:
privileged-psp-user
rules
:
rules
:
-
apiGroups
:
-
extensions
resources
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment