mirror of
https://github.com/prometheus-operator/kube-prometheus.git
synced 2025-08-30 10:51:17 +02:00
Psp should be deployed at the same namespace as kube-prometheus stack
Signed-off-by: ArthurSens <arthursens2005@gmail.com>
This commit is contained in:
parent
f5f72e1b50
commit
069f95148f
@ -59,6 +59,7 @@ local restrictedPodSecurityPolicy = {
|
||||
kind: 'Role',
|
||||
metadata: {
|
||||
name: 'alertmanager-' + $.values.alertmanager.name,
|
||||
namespace: $.values.common.namespace,
|
||||
},
|
||||
rules: [{
|
||||
apiGroups: ['policy'],
|
||||
@ -73,6 +74,7 @@ local restrictedPodSecurityPolicy = {
|
||||
kind: 'RoleBinding',
|
||||
metadata: {
|
||||
name: 'alertmanager-' + $.values.alertmanager.name,
|
||||
namespace: $.values.common.namespace,
|
||||
},
|
||||
roleRef: {
|
||||
apiGroup: 'rbac.authorization.k8s.io',
|
||||
@ -126,6 +128,7 @@ local restrictedPodSecurityPolicy = {
|
||||
kind: 'Role',
|
||||
metadata: {
|
||||
name: 'grafana',
|
||||
namespace: $.values.common.namespace,
|
||||
},
|
||||
rules: [{
|
||||
apiGroups: ['policy'],
|
||||
@ -140,6 +143,7 @@ local restrictedPodSecurityPolicy = {
|
||||
kind: 'RoleBinding',
|
||||
metadata: {
|
||||
name: 'grafana',
|
||||
namespace: $.values.common.namespace,
|
||||
},
|
||||
roleRef: {
|
||||
apiGroup: 'rbac.authorization.k8s.io',
|
||||
|
Loading…
x
Reference in New Issue
Block a user