一个operator bundle是一个特殊的container image。这个特殊的image存储了k8 manifests和与一个opearator相关联的metadata。一个bundle可以理解为一个特定版本的operator。
一个operator bundle通常是non-runnable的,但是其可以在oci-compliant container registry上一个push和pull。最终的,这个operator bundle可以被operator registry和OLM所用,用来在支持OLM的cluster上安装operator。
operator bundle格式
$ tree operator-bundle-tet
operator-bundle-tet
├── my-manifests
│ ├── etcdcluster.crd.yaml
│ └── etcdoperator.clusterserviceversion.yaml
├── metadata
│ └── annotations.yaml
└── Dockerfile
bundle manfiest格式
$ tree
/
├── manifests
│ ├── etcdcluster.crd.yaml
│ └── etcdoperator.clusterserviceversion.yaml
└── metadata
├── annotations.yaml
└── dependencies.yaml
其中, manifests和metadata的名字是可以改的,需要和annotations中的定义保持一致即可。
Bundle Annotations
annodations.yml
annotations:
operators.operatorframework.io.bundle.mediatype.v1: "registry+v1"
operators.o

最低0.47元/天 解锁文章
762

被折叠的 条评论
为什么被折叠?



