-
Notifications
You must be signed in to change notification settings - Fork 88
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
35aaf55
commit 123739c
Showing
12 changed files
with
252 additions
and
0 deletions.
There are no files selected for viewing
18 changes: 18 additions & 0 deletions
18
resources/v4.0/base/PodSecurityPolicy-ClusterRoleBinding.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: ClusterRoleBinding | ||
metadata: | ||
creationTimestamp: null | ||
labels: | ||
application-name: directpv.min.io | ||
application-type: CSIDriver | ||
directpv.min.io/created-by: kubectl-directpv | ||
directpv.min.io/version: v1beta1 | ||
name: psp-directpv-min-io | ||
roleRef: | ||
apiGroup: rbac.authorization.k8s.io | ||
kind: ClusterRole | ||
name: directpv-min-io | ||
subjects: | ||
- apiGroup: rbac.authorization.k8s.io | ||
kind: Group | ||
name: system:serviceaccounts:directpv-min-io |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
apiVersion: policy/v1beta1 | ||
kind: PodSecurityPolicy | ||
metadata: | ||
creationTimestamp: null | ||
labels: | ||
application-name: directpv.min.io | ||
application-type: CSIDriver | ||
directpv.min.io/created-by: kubectl-directpv | ||
directpv.min.io/version: v1beta1 | ||
name: directpv-min-io | ||
spec: | ||
allowedCapabilities: | ||
- '*' | ||
allowedHostPaths: | ||
- pathPrefix: /proc | ||
readOnly: true | ||
- pathPrefix: /sys | ||
- pathPrefix: /run/udev/data | ||
readOnly: true | ||
- pathPrefix: /var/lib/directpv | ||
- pathPrefix: /csi | ||
- pathPrefix: /var/lib/kubelet | ||
fsGroup: | ||
rule: RunAsAny | ||
hostPID: true | ||
privileged: true | ||
runAsUser: | ||
rule: RunAsAny | ||
seLinux: | ||
rule: RunAsAny | ||
supplementalGroups: | ||
rule: RunAsAny | ||
volumes: | ||
- hostPath |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
apiVersion: kustomize.config.k8s.io/v1beta1 | ||
kind: Kustomization | ||
|
||
resources: | ||
- ../../base | ||
- PodSecurityPolicy.yaml | ||
- PodSecurityPolicy-ClusterRoleBinding.yaml | ||
|
||
images: | ||
- name: quay.io/minio/directpv | ||
digest: sha256:98c23183f3abb8d9b6e0c300677605cc822e039fc81ce0e5dd8bef1006547627 |
18 changes: 18 additions & 0 deletions
18
resources/v4.0/legacy/PodSecurityPolicy-ClusterRoleBinding.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: ClusterRoleBinding | ||
metadata: | ||
creationTimestamp: null | ||
labels: | ||
application-name: directpv.min.io | ||
application-type: CSIDriver | ||
directpv.min.io/created-by: kubectl-directpv | ||
directpv.min.io/version: v1beta1 | ||
name: psp-directpv-min-io | ||
roleRef: | ||
apiGroup: rbac.authorization.k8s.io | ||
kind: ClusterRole | ||
name: directpv-min-io | ||
subjects: | ||
- apiGroup: rbac.authorization.k8s.io | ||
kind: Group | ||
name: system:serviceaccounts:directpv-min-io |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
apiVersion: policy/v1beta1 | ||
kind: PodSecurityPolicy | ||
metadata: | ||
creationTimestamp: null | ||
labels: | ||
application-name: directpv.min.io | ||
application-type: CSIDriver | ||
directpv.min.io/created-by: kubectl-directpv | ||
directpv.min.io/version: v1beta1 | ||
name: directpv-min-io | ||
spec: | ||
allowedCapabilities: | ||
- '*' | ||
allowedHostPaths: | ||
- pathPrefix: /proc | ||
readOnly: true | ||
- pathPrefix: /sys | ||
- pathPrefix: /run/udev/data | ||
readOnly: true | ||
- pathPrefix: /var/lib/directpv | ||
- pathPrefix: /csi | ||
- pathPrefix: /var/lib/kubelet | ||
fsGroup: | ||
rule: RunAsAny | ||
hostPID: true | ||
privileged: true | ||
runAsUser: | ||
rule: RunAsAny | ||
seLinux: | ||
rule: RunAsAny | ||
supplementalGroups: | ||
rule: RunAsAny | ||
volumes: | ||
- hostPath |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
apiVersion: kustomize.config.k8s.io/v1beta1 | ||
kind: Kustomization | ||
|
||
resources: | ||
- ../../legacy | ||
- PodSecurityPolicy-ClusterRoleBinding.yaml | ||
- PodSecurityPolicy.yaml | ||
|
||
images: | ||
- name: quay.io/minio/directpv | ||
digest: sha256:98c23183f3abb8d9b6e0c300677605cc822e039fc81ce0e5dd8bef1006547627 |
18 changes: 18 additions & 0 deletions
18
resources/v4.0/openshift-with-legacy/PodSecurityPolicy-ClusterRoleBinding.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: ClusterRoleBinding | ||
metadata: | ||
creationTimestamp: null | ||
labels: | ||
application-name: directpv.min.io | ||
application-type: CSIDriver | ||
directpv.min.io/created-by: kubectl-directpv | ||
directpv.min.io/version: v1beta1 | ||
name: psp-directpv-min-io | ||
roleRef: | ||
apiGroup: rbac.authorization.k8s.io | ||
kind: ClusterRole | ||
name: directpv-min-io | ||
subjects: | ||
- apiGroup: rbac.authorization.k8s.io | ||
kind: Group | ||
name: system:serviceaccounts:directpv-min-io |
34 changes: 34 additions & 0 deletions
34
resources/v4.0/openshift-with-legacy/PodSecurityPolicy.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
apiVersion: policy/v1beta1 | ||
kind: PodSecurityPolicy | ||
metadata: | ||
creationTimestamp: null | ||
labels: | ||
application-name: directpv.min.io | ||
application-type: CSIDriver | ||
directpv.min.io/created-by: kubectl-directpv | ||
directpv.min.io/version: v1beta1 | ||
name: directpv-min-io | ||
spec: | ||
allowedCapabilities: | ||
- '*' | ||
allowedHostPaths: | ||
- pathPrefix: /proc | ||
readOnly: true | ||
- pathPrefix: /sys | ||
- pathPrefix: /run/udev/data | ||
readOnly: true | ||
- pathPrefix: /var/lib/directpv | ||
- pathPrefix: /csi | ||
- pathPrefix: /var/lib/kubelet | ||
fsGroup: | ||
rule: RunAsAny | ||
hostPID: true | ||
privileged: true | ||
runAsUser: | ||
rule: RunAsAny | ||
seLinux: | ||
rule: RunAsAny | ||
supplementalGroups: | ||
rule: RunAsAny | ||
volumes: | ||
- hostPath |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
apiVersion: kustomize.config.k8s.io/v1beta1 | ||
kind: Kustomization | ||
|
||
resources: | ||
- ../../openshift-with-legacy | ||
- PodSecurityPolicy-ClusterRoleBinding.yaml | ||
- PodSecurityPolicy.yaml | ||
|
||
images: | ||
- name: quay.io/minio/directpv | ||
digest: sha256:98c23183f3abb8d9b6e0c300677605cc822e039fc81ce0e5dd8bef1006547627 |
18 changes: 18 additions & 0 deletions
18
resources/v4.0/openshift/PodSecurityPolicy-ClusterRoleBinding.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: ClusterRoleBinding | ||
metadata: | ||
creationTimestamp: null | ||
labels: | ||
application-name: directpv.min.io | ||
application-type: CSIDriver | ||
directpv.min.io/created-by: kubectl-directpv | ||
directpv.min.io/version: v1beta1 | ||
name: psp-directpv-min-io | ||
roleRef: | ||
apiGroup: rbac.authorization.k8s.io | ||
kind: ClusterRole | ||
name: directpv-min-io | ||
subjects: | ||
- apiGroup: rbac.authorization.k8s.io | ||
kind: Group | ||
name: system:serviceaccounts:directpv-min-io |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
apiVersion: policy/v1beta1 | ||
kind: PodSecurityPolicy | ||
metadata: | ||
creationTimestamp: null | ||
labels: | ||
application-name: directpv.min.io | ||
application-type: CSIDriver | ||
directpv.min.io/created-by: kubectl-directpv | ||
directpv.min.io/version: v1beta1 | ||
name: directpv-min-io | ||
spec: | ||
allowedCapabilities: | ||
- '*' | ||
allowedHostPaths: | ||
- pathPrefix: /proc | ||
readOnly: true | ||
- pathPrefix: /sys | ||
- pathPrefix: /run/udev/data | ||
readOnly: true | ||
- pathPrefix: /var/lib/directpv | ||
- pathPrefix: /csi | ||
- pathPrefix: /var/lib/kubelet | ||
fsGroup: | ||
rule: RunAsAny | ||
hostPID: true | ||
privileged: true | ||
runAsUser: | ||
rule: RunAsAny | ||
seLinux: | ||
rule: RunAsAny | ||
supplementalGroups: | ||
rule: RunAsAny | ||
volumes: | ||
- hostPath |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
apiVersion: kustomize.config.k8s.io/v1beta1 | ||
kind: Kustomization | ||
|
||
resources: | ||
- ../../openshift | ||
- PodSecurityPolicy-ClusterRoleBinding.yaml | ||
- PodSecurityPolicy.yaml | ||
|
||
images: | ||
- name: quay.io/minio/directpv | ||
digest: sha256:98c23183f3abb8d9b6e0c300677605cc822e039fc81ce0e5dd8bef1006547627 |