Operator Bundle简介

一个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
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值