All Projects → kvaps → kube-opennebula

kvaps / kube-opennebula

Licence: Apache-2.0 license
Helm chart and OpenNebula images ready to deploy on Kubernetes

Programming Languages

shell
77523 projects
Dockerfile
14818 projects
Smarty
1635 projects

Projects that are alternatives of or similar to kube-opennebula

ship-it
Wattpad's tool for continuously deploying code to Kubernetes quickly, safely, and observably.
Stars: ✭ 14 (-67.44%)
Mutual labels:  helm
presto-chart
Highly configurable Helm Presto Chart
Stars: ✭ 23 (-46.51%)
Mutual labels:  helm
moadsd-ng
The MOADSD-NG project does provide a simple way to setup a hybrid cloud security demo, playground and learning environment within the clouds.
Stars: ✭ 13 (-69.77%)
Mutual labels:  helm
helm-certgen
Helm plugin for generation of TLS certificates
Stars: ✭ 15 (-65.12%)
Mutual labels:  helm
kubernetes-apim
Kubernetes and Helm resources for WSO2 API Manager
Stars: ✭ 66 (+53.49%)
Mutual labels:  helm
datahub
JupyterHubs for use by Berkeley enrolled students
Stars: ✭ 40 (-6.98%)
Mutual labels:  helm
examples
Examples to demonstrate how to use PipeCD
Stars: ✭ 21 (-51.16%)
Mutual labels:  helm
monokle
🧐 Monokle streamlines the process of creating, analyzing, and deploying Kubernetes configurations by providing a unified visual tool for authoring YAML manifests, validating policies, and managing live clusters.
Stars: ✭ 795 (+1748.84%)
Mutual labels:  helm
camunda-helm
Camunda public Kubernetes Helm repo and charts
Stars: ✭ 33 (-23.26%)
Mutual labels:  helm
helm-pass
Moved to gitlab
Stars: ✭ 22 (-48.84%)
Mutual labels:  helm
charts
Deploy Kubernetes Helm Charts for Check Point CloudGuard
Stars: ✭ 18 (-58.14%)
Mutual labels:  helm
helm-lsp
lsp-mode ❤️ helm
Stars: ✭ 80 (+86.05%)
Mutual labels:  helm
auth
Go library for generating JWT Tokens, authorizing HTTP requests, etc.
Stars: ✭ 31 (-27.91%)
Mutual labels:  helm
alfresco-identity-service
Repository for the Alfresco Identity Service
Stars: ✭ 33 (-23.26%)
Mutual labels:  helm
zammad-helm
Zammad Helm chart for Kubernetes
Stars: ✭ 42 (-2.33%)
Mutual labels:  helm
helm-charts
Source & Repo of https://charts.kubesphere.io/main & https://charts.kubesphere.io/test
Stars: ✭ 85 (+97.67%)
Mutual labels:  helm
yaml-update-action
Update YAML property with dynamic values
Stars: ✭ 81 (+88.37%)
Mutual labels:  helm
action-setup-kube-tools
Github Action that setup Kubernetes tools (kubectl, kustomize, helm, kubeconform, conftest, yq, rancher, tilt, skaffold) very fast and cache them on the runner. Please [✩Star] if you're using it!
Stars: ✭ 45 (+4.65%)
Mutual labels:  helm
camunda-cloud-helm
Camunda Platform 8 Self-Managed Helm charts
Stars: ✭ 41 (-4.65%)
Mutual labels:  helm
helm-charts
Community maintained Helm charts for Flux
Stars: ✭ 66 (+53.49%)
Mutual labels:  helm

Kube-OpenNebula

Helm chart and OpenNebula images ready to deploy on Kubernetes

Quick start

Control plane

  • Create namespace:

    kubectl create namespace opennebula
  • Install Helm repo:

    helm repo add kvaps https://kvaps.github.io/charts
  • Deploy OpenNebula:

    # download example values
    helm show values kvaps/opennebula --version 1.2.0 > values.yaml
    
    # install release
    helm install opennebula kvaps/opennebula --version 1.2.0 \
      --namespace opennebula \
      --set oned.createCluster=1 \
      -f values.yaml \
      --wait

Compute nodes

  • To deploy external compute node your hosts should have libvirtd and qemu-kvm installed and configured 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.

    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:

    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 local volumes enough for that, however it also requires one shared (ReadWriteMany) persistent volume for virtual machine logs and vnc tokens, take a look at nfs-server-provisioner if you'r storage does not support ReadWriteMany.

Example production configuration can be found here

Backups and restore

Find current leader:

kubectl get pod -n opennebula -l role=leader

Perform backup:

kubectl exec -n opennebula -c oned <leader_pod> -- sh -c 'mysqldump -h$DB_SERVER -u$DB_USER -p$DB_PASSWD $DB_NAME | gzip -9' > opennebula-db.sql.gz

To restore, redeploy release with --set oned.debug=true and:

kubectl exec -n opennebula -i -c oned <each_oned_pod> -- sh -c 'zcat | mysql -h$DB_SERVER -u$DB_USER -p$DB_PASSWD -D$DB_NAME' < opennebula-db.sql.gz

then disable debug

Upgrade notes

kubectl get pod -n opennebula -l role=leader

Perform backup:

kubectl exec -n opennebula -c oned <leader_pod> -- sh -c 'mysqldump -h$DB_SERVER -u$DB_USER -p$DB_PASSWD $DB_NAME | gzip -9' > opennebula-db.sql.gz

To restore, redeploy release with --set oned.debug=true and:

kubectl exec -n opennebula -i -c oned <each_oned_pod> -- sh -c 'zcat | mysql -h$DB_SERVER -u$DB_USER -p$DB_PASSWD -D$DB_NAME' < opennebula-db.sql.gz

then disable debug

Upgrade notes

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

Warning: Don't forget to make backup before the upgrade!

Minor upgrade:

helm upgrade opennebula kvaps/opennebula --version 1.2.0 \
  --namespace opennebula \
  -f values.yaml \
  --wait

Major upgrade:

# Remove the chart
helm remove opennebula \
  --namespace opennebula

# Deploy the new chart
helm upgrade opennebula kvaps/opennebula --version 1.2.0 \
  --namespace opennebula \
  -f values.yaml \
  --wait
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].