+++ /dev/null
-# ==================================================================================
-#
-# Copyright (c) 2022 Samsung Electronics Co., Ltd. All Rights Reserved.
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-#
-# ==================================================================================
-
-# For reading secrets in Kubeflow-Pipeline and SDK
-
-kubectl create clusterrole secret_reader --verb get,list --resource secret
-kubectl create rolebinding secret_pipline_runner_rb -n traininghost --serviceaccount kubeflow:pipeline-runner --clusterrole secret_reader
-kubectl create rolebinding traininghost_default_secret_rb -n kubeflow --serviceaccount traininghost:default --clusterrole secret_reader
#copy of secrets to traininghost namespace to enable modelmanagement service to access leofs
kubectl get secret leofs-secret --namespace=kubeflow -o yaml | sed -e 's/kubeflow/traininghost/g' | kubectl apply -f -
-bin/install_rolebindings.sh
+kubectl apply -f bin/rolebindings.yaml
bin/install_databases.sh
bin/install.sh -f RECIPE_EXAMPLE/example_recipe_latest_stable.yaml
--- /dev/null
+# ==================================================================================
+#
+# Copyright (c) 2025 Kyunghee University, Mobile Communication Lab. All Rights Reserved.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+# ==================================================================================
+
+# For reading secrets in Kubeflow-Pipeline and SDK
+
+apiVersion: rbac.authorization.k8s.io/v1
+kind: ClusterRole
+metadata:
+ name: secret_reader
+rules:
+- apiGroups: [""]
+ resources: ["secrets"]
+ verbs: ["get", "list"]
+---
+apiVersion: rbac.authorization.k8s.io/v1
+kind: RoleBinding
+metadata:
+ name: secret_pipeline_runner_rb
+ namespace: traininghost
+subjects:
+- kind: ServiceAccount
+ name: pipeline-runner
+ namespace: kubeflow
+roleRef:
+ kind: ClusterRole
+ name: secret_reader
+ apiGroup: rbac.authorization.k8s.io
+---
+apiVersion: rbac.authorization.k8s.io/v1
+kind: RoleBinding
+metadata:
+ name: traininghost_default_secret_rb
+ namespace: kubeflow
+subjects:
+- kind: ServiceAccount
+ name: default
+ namespace: traininghost
+roleRef:
+ kind: ClusterRole
+ name: secret_reader
+ apiGroup: rbac.authorization.k8s.io
\ No newline at end of file
+++ /dev/null
-# ==================================================================================
-#
-# Copyright (c) 2022 Samsung Electronics Co., Ltd. All Rights Reserved.
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-#
-# ==================================================================================
-
-# For removing secrets in Kubeflow-Pipeline and SDK
-
-kubectl delete rolebinding traininghost_default_secret_rb -n kubeflow
-kubectl delete rolebinding secret_pipline_runner_rb -n traininghost
-kubectl delete clusterrole secret_reader
tools/kubeflow/bin/uninstall_kubeflow.sh
tools/leofs/bin/uninstall_leofs.sh
-bin/uninstall_rolebindings.sh
+kubectl delete -f bin/rolebindings.yaml
kubectl delete namespace traininghost
tools/nfs/delete_nfs_subdir_external_provisioner.sh