Feature: Image CRD Image hub
Add image controller. Store need this CRD
sealos push kuberetes:v1.25.0 registry, sealos push need to apply image CRD.
kubectl get AppImage kubernetes -oyaml
Maybe image. hub is not benifit from crd controller.
Pros:
- Build in k8s manage enabled , such as
kubctl, k8s ui(crd section) support.
Cons:
- Implemetion
coment/rate/installed countdata will update frequently as crd will not fit. - we will also implement an
api-frontendto exposeapi-server-image hub crdto let seos accesalbe.
Seems next.js is very suitable for developing imagehub
Pros:
- use apiserver token or kubeconfig, separate authentication is no longer required
- No need to introduce a database
Cons:
- How to search images?
about performance:
- Satisfy performance requirements for a considerable period of time. I think this arch can serve 10k+ developers.
- We can use an interface, If the performance is not satisfied, this interface can be reimplemented on pgsql
- Apiserver also support using other storage to replace etcd
about expose api-server:
Just use next.js server side to query apiserver.
3. Apiserver also support using other storage to replace etcd
We need structed database along side with etcd. Not replace it?
We can do this when we need it, etcd can meet performance requirements for a long time