opennebula-flow

Opennebula Flow Docker Image

自动构建

该镜像提供OpenNebula的Helm chart及相关镜像,支持在Kubernetes集群上部署和管理OpenNebula云平台,用于虚拟化资源调度与云计算环境构建。

下载次数: 0状态:自动构建维护者:kvaps仓库类型:镜像最近更新:
下载命令
点击查看

Kube-OpenNebula

Helm chart and OpenNebula images ready to deploy on Kubernetes

Quick start

Control plane

  • Create namespace:

    bash
    kubectl create namespace opennebula
    
  • Deploy OpenNebula:

    bash
    cp helm/opennebula/values.yaml values.yaml
    vim values.yaml
    helm install opennebula helm/opennebula -f values.yaml --set oned.createCluster=1 --wait
    

Compute nodes

  • To deploy external compute node your hosts should have libvirtd and qemu-kvm installed and configured https://github.com/OpenNebula/one/tree/release-5.10.1/share/pkgs/sudoers.
    However you can just install opennebula-node meta-package.

  • Get OpenNebula's ssh-key, and place it to /var/lib/one/.ssh/authorized_keys on every node to allow OpenNebula login via ssh.

    bash
    kubectl exec opennebula-opennebula-oned-0 -c oned -- ssh-keygen -y -f /var/lib/one/.ssh/id_rsa
    
  • Create new host via OpenNebula Interface.

  • Check is everything is fine
    You should be able login via ssh from oned pod to every node. You can check that by executing the following command:

    bash
    kubectl exec -ti opennebula-opennebula-oned-0 ssh <node>
    

Customization

Sometimes you need to perform some customization, eg. update sunstone views and addtitional drivers, etc.

All these customizations could be done by updating dockerimages, you can find some examples here, or by simple using extraVolumes and extraVolumeMounts in chart values.

Production setup

Production install assumes having persistent storage.

OpenNebula requires one ReadWriteOnce persistent volume per each oned-instance where database files will be stored, even https://kubernetes.io/blog/2019/04/04/kubernetes-1.14-local-persistent-volumes-ga/ enough for that, however it also requires one shared (ReadWriteMany) persistent volume for virtual machine logs and vnc tokens, take a look at https://github.com/helm/charts/tree/master/stable/nfs-server-provisioner if you'r storage does not support ReadWriteMany.

Example production configuration can be found here

Upgrade notes

The minor upgrades can be performed by standard way using rolling update, however major updates should be performed by fully chart reinstallation. You have to remove the old chart, and install new one, however your data should be saved on persistent volumes, thus new images will perform database migration on their first start.

Perform backup:

bash
# Find the leader pod
kubectl get pod -l role=leader
# Perform the backup
kubectl exec <leader_pod> -c oned -- bash -c 'mysqldump -h$DB_SERVER -u$DB_USER -p$DB_PASSWORD $DB_NAME | gzip -9' > backup.sql.gz

Minor upgrade:

bash
helm upgrade opennebula helm/opennebula -f values.yaml -f secrets.yaml --wait

Major upgrade:

bash
# Remove the chart
helm remove opennebula opennebula
# Deploy the new chart
helm install opennebula opennebula -f values.yaml -f secrets.yaml --wait

kvaps 命名空间的其他可用镜像:

镜像拉取方式

您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。

轩辕镜像加速拉取命令点我查看更多 opennebula-flow 镜像标签

docker pull docker.xuanyuan.run/kvaps/opennebula-flow:<标签>

DockerHub 原生拉取命令

docker pull kvaps/opennebula-flow:<标签>
专业版 · 高速稳定拉取镜像
50GB 仅 ¥8/年
高速镜像下载在线技术支持专业版保障服务可用付费会员免广告