Skip to content

Commit

Permalink
remove pod security policy (#1822)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangzujian committed Aug 18, 2022
1 parent 725957a commit 9937ef8
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 133 deletions.
5 changes: 0 additions & 5 deletions charts/templates/ovn-CR.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,6 @@ metadata:
rbac.authorization.k8s.io/system-only: "true"
name: system:ovn
rules:
- apiGroups: ['policy']
resources: ['podsecuritypolicies']
verbs: ['use']
resourceNames:
- kube-ovn
- apiGroups:
- "kubeovn.io"
resources:
Expand Down
7 changes: 0 additions & 7 deletions charts/templates/ovnconfig-cm.yaml

This file was deleted.

10 changes: 0 additions & 10 deletions dist/images/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1604,11 +1604,6 @@ metadata:
rbac.authorization.k8s.io/system-only: "true"
name: system:ovn
rules:
- apiGroups: ['policy']
resources: ['podsecuritypolicies']
verbs: ['use']
resourceNames:
- kube-ovn
- apiGroups:
- "kubeovn.io"
resources:
Expand Down Expand Up @@ -2104,11 +2099,6 @@ metadata:
rbac.authorization.k8s.io/system-only: "true"
name: system:ovn
rules:
- apiGroups: ['policy']
resources: ['podsecuritypolicies']
verbs: ['use']
resourceNames:
- kube-ovn
- apiGroups:
- "kubeovn.io"
resources:
Expand Down
34 changes: 0 additions & 34 deletions yamls/ovn-dpdk.yaml
Original file line number Diff line number Diff line change
@@ -1,32 +1,3 @@
apiVersion: policy/v1beta1
kind: PodSecurityPolicy
metadata:
name: kube-ovn
annotations:
seccomp.security.alpha.kubernetes.io/allowedProfileNames: '*'
spec:
privileged: true
allowPrivilegeEscalation: true
allowedCapabilities:
- '*'
volumes:
- '*'
hostNetwork: true
hostPorts:
- min: 0
max: 65535
hostIPC: true
hostPID: true
runAsUser:
rule: 'RunAsAny'
seLinux:
rule: 'RunAsAny'
supplementalGroups:
rule: 'RunAsAny'
fsGroup:
rule: 'RunAsAny'

---
apiVersion: v1
kind: ServiceAccount
metadata:
Expand All @@ -41,11 +12,6 @@ metadata:
rbac.authorization.k8s.io/system-only: "true"
name: system:ovn
rules:
- apiGroups: ['policy']
resources: ['podsecuritypolicies']
verbs: ['use']
resourceNames:
- kube-ovn
- apiGroups:
- "kubeovn.io"
resources:
Expand Down
34 changes: 0 additions & 34 deletions yamls/ovn-ha.yaml
Original file line number Diff line number Diff line change
@@ -1,32 +1,3 @@
apiVersion: policy/v1beta1
kind: PodSecurityPolicy
metadata:
name: kube-ovn
annotations:
seccomp.security.alpha.kubernetes.io/allowedProfileNames: '*'
spec:
privileged: true
allowPrivilegeEscalation: true
allowedCapabilities:
- '*'
volumes:
- '*'
hostNetwork: true
hostPorts:
- min: 0
max: 65535
hostIPC: true
hostPID: true
runAsUser:
rule: 'RunAsAny'
seLinux:
rule: 'RunAsAny'
supplementalGroups:
rule: 'RunAsAny'
fsGroup:
rule: 'RunAsAny'

---
apiVersion: v1
kind: ServiceAccount
metadata:
Expand All @@ -40,11 +11,6 @@ metadata:
rbac.authorization.k8s.io/system-only: "true"
name: system:ovn
rules:
- apiGroups: ['policy']
resources: ['podsecuritypolicies']
verbs: ['use']
resourceNames:
- kube-ovn
- apiGroups:
- "kubeovn.io"
resources:
Expand Down
43 changes: 0 additions & 43 deletions yamls/ovn.yaml
Original file line number Diff line number Diff line change
@@ -1,41 +1,3 @@
apiVersion: policy/v1beta1
kind: PodSecurityPolicy
metadata:
name: kube-ovn
annotations:
seccomp.security.alpha.kubernetes.io/allowedProfileNames: '*'
spec:
privileged: true
allowPrivilegeEscalation: true
allowedCapabilities:
- '*'
volumes:
- '*'
hostNetwork: true
hostPorts:
- min: 0
max: 65535
hostIPC: true
hostPID: true
runAsUser:
rule: 'RunAsAny'
seLinux:
rule: 'RunAsAny'
supplementalGroups:
rule: 'RunAsAny'
fsGroup:
rule: 'RunAsAny'

---

apiVersion: v1
kind: ConfigMap
metadata:
name: ovn-config
namespace: kube-system
data:
defaultNetworkType: geneve
---
apiVersion: v1
kind: ServiceAccount
metadata:
Expand All @@ -49,11 +11,6 @@ metadata:
rbac.authorization.k8s.io/system-only: "true"
name: system:ovn
rules:
- apiGroups: ['policy']
resources: ['podsecuritypolicies']
verbs: ['use']
resourceNames:
- kube-ovn
- apiGroups:
- "kubeovn.io"
resources:
Expand Down

0 comments on commit 9937ef8

Please sign in to comment.