shifu
shifu copied to clipboard
suggest to rename the related shifu resources because they are confusing
In our project, there are some concepts such as devices, controllers, deviceshifu, etc. But the names of these Kubernetes resources are confusing for users, such as:
- the controller name is crd-controller-manager in crd-system namespace.
- the device pod name is a pure device name and in devices namespace.
- the deviceshifu pod name start with edgedevice- and is in the default namespace.
In order to make users understand the shifu resources easily and make the components' relationship clear, I suggest renaming these resources such as:
- make 2 namespaces, one named shifu-system which manages all the CRs, and another one named Shifu which manages the device's related resources including edge device and deviceShifu.
- the device pod/service/ConfigMap, etc. start with "device-" in the namespace "shifu"
- the deviceShifu pod/service/ConfigMap, etc. starts with "deviceshifu-" or "shifu-" in the namespace "shifu".
- the controller-related resource start with "shifu-controller-" in the namespace "shifu-system".
Multi-tenant consideration: For the resources in namespace "shifu", we also can consider just letting users decide the namespace name because the users can have permission to do resource isolation. Please consider the multi-tenant management use cases.
Hi @ujnzxw , thanks a lot for opening this issue! What do you think of this naming convention? namespaces:
-
shifu-control-plane
// this ns will holdshifuController
andshifud
related pod/svc/cm, etc. -
shifu-data-plane
// this ns will holddeviceShifu
related pod/svc/cm, etc.
For all deviceShifu pods, it will start with a prefix deviceShifu-
. For example, deviceShifu-camera
.
As for multi-tenancy use cases, we can have a suffix appended to the namespaces.
For example, shifu-control-plane-tenant1
, shifu-data-plane-tenant-1
, etc.
What's your opinion on this? Thanks!
Closing this for now as we have renamed related resources
For Shifu component related they are in namespace shifu-crd-system
And for deviceShifu related they are in deviceshifu
namespace with a deviceshifu-
prefix for deployment
, service
and configmap