4.5. 检索容器镜像
使用以下流程及其示例文件内容来检索使用单独的 heat 堆栈部署所需的容器镜像。通过使用边缘站点的环境文件运行 openstack container image prepare 命令,您必须确保包含可选或边缘特定服务的容器镜像。
如需更多信息,请参阅 准备容器镜像。
流程
将 Registry Service Account 凭证添加到
containers.yaml。parameter_defaults: ContainerImagePrepare: - push_destination: true set: ceph_namespace: registry.redhat.io/rhceph ceph_image: rhceph-5-rhel9 ceph_tag: latest name_prefix: openstack- namespace: registry.redhat.io/rhosp17-rhel9 tag: latest ContainerImageRegistryCredentials: # https://access.redhat.com/RegistryAuthentication registry.redhat.io: registry-service-account-username: registry-service-account-password将环境文件生成为
images-env.yaml:sudo openstack tripleo container image prepare \ -e containers.yaml \ --output-env-file images-env.yaml生成的
images-env.yaml文件是作为生成它的堆栈的 overcloud 部署过程的一部分。