Open lizzzcai opened 2 years ago
Thanks @lizzzcai, I think I recall this coming up before, I agree this should be fixed. The low-hanging fix would be to make sure the entire secret is copied, we can do that first.
And we can look at better syncing (with watch) if that's not currently done.
I'm not sure about decomposing the parameters into individual key-values, keeping those in sync might be a bit fragile.
I do have some work in progress to support separate secrets as discussed in https://github.com/kserve/modelmesh-serving/issues/204. Not sure how soon I'll get a chance to finish that and get it in though.
cc @chinhuang007
Thanks @njhill .
The low-hanging fix would be to make sure the entire secret is copied, we can do that first.
This can help but usually we are using cert-manager to manage the secret, so the idea in #204 probably will be a better option. (separate the tls secret from etcd secret and modelmesh help to copy the tls secret to user namespace [optional] )
Is your feature request related to a problem? If so, please describe.
When tls is enabled for etcd, user need to provide the following
model-serving-etcd
.where
etcd_connection
contains:However, the
model-serving-etcd
in user namespaceonly
containsetcd_connection
, ref. (to make it works, tls cert and key and ectd_connection have to in a singlemodel-serving-etcd
)Another limitation in
model-serving-etcd
is thatetcd_connection
is ajson string
, it is hard to refer the value (like user id and password) viavalueFrom
, and I have to maintain two sets of secret, one for modelmesh, another one for etcd.Describe your proposed solution
Options:
whole
model-serving-etcd
secret (including tls cert, key and ca and others) to user namespace. (However, it seems like the current modelmesh controller will not update the secret to the user namespace when the secret is updated in the root namespace)model-serving-etcd
, only keep the tls secret name in themodel-serving-etcd
for reference, user has to sync the tls secret to user namespace manually.Personally I prefer
option 1
if the model mesh controller is able to sync the updated secret to the user namespace automatically, and unpack theetcd_connection
as key-value pairs underdata
.Describe alternatives you have considered
Additional context