From c0019996a1968d832bbc0f2c7cdf5d7e361f4bd9 Mon Sep 17 00:00:00 2001 From: Travis Nielsen Date: Tue, 6 Apr 2021 12:05:24 -0600 Subject: [PATCH] ceph: set default service account in scc The security context constraints need to grant access to the new default service account that is applied to the mons previous using the built-in default service account. Signed-off-by: Travis Nielsen --- Documentation/ceph-openshift.md | 2 +- cluster/examples/kubernetes/ceph/operator-openshift.yaml | 2 +- cluster/examples/kubernetes/ceph/scc.yaml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Documentation/ceph-openshift.md b/Documentation/ceph-openshift.md index 5c5497838..a5053e740 100644 --- a/Documentation/ceph-openshift.md +++ b/Documentation/ceph-openshift.md @@ -80,7 +80,7 @@ users: # This assumes running in the default sample "rook-ceph" namespace. # If other namespaces or service accounts are configured, they need to be updated here. - system:serviceaccount:rook-ceph:rook-ceph-system - - system:serviceaccount:rook-ceph:default + - system:serviceaccount:rook-ceph:rook-ceph-default - system:serviceaccount:rook-ceph:rook-ceph-mgr - system:serviceaccount:rook-ceph:rook-ceph-osd ``` diff --git a/cluster/examples/kubernetes/ceph/operator-openshift.yaml b/cluster/examples/kubernetes/ceph/operator-openshift.yaml index f7496bf7e..b9fd89541 100644 --- a/cluster/examples/kubernetes/ceph/operator-openshift.yaml +++ b/cluster/examples/kubernetes/ceph/operator-openshift.yaml @@ -46,7 +46,7 @@ users: # This assumes running in the default sample "rook-ceph" namespace. # If other namespaces or service accounts are configured, they need to be updated here. - system:serviceaccount:rook-ceph:rook-ceph-system # serviceaccount:namespace:operator - - system:serviceaccount:rook-ceph:default # serviceaccount:namespace:cluster + - system:serviceaccount:rook-ceph:rook-ceph-default # serviceaccount:namespace:cluster - system:serviceaccount:rook-ceph:rook-ceph-mgr # serviceaccount:namespace:cluster - system:serviceaccount:rook-ceph:rook-ceph-osd # serviceaccount:namespace:cluster --- diff --git a/cluster/examples/kubernetes/ceph/scc.yaml b/cluster/examples/kubernetes/ceph/scc.yaml index 88dc4883f..e17c7fa8b 100644 --- a/cluster/examples/kubernetes/ceph/scc.yaml +++ b/cluster/examples/kubernetes/ceph/scc.yaml @@ -39,7 +39,7 @@ users: # This assumes running in the default sample "rook-ceph" namespace. # If other namespaces or service accounts are configured, they need to be updated here. - system:serviceaccount:rook-ceph:rook-ceph-system # serviceaccount:namespace:operator - - system:serviceaccount:rook-ceph:default # serviceaccount:namespace:cluster + - system:serviceaccount:rook-ceph:rook-ceph-default # serviceaccount:namespace:cluster - system:serviceaccount:rook-ceph:rook-ceph-mgr # serviceaccount:namespace:cluster - system:serviceaccount:rook-ceph:rook-ceph-osd # serviceaccount:namespace:cluster ---