Giter Site home page Giter Site logo

kubevirt-ansible's Introduction

kubevirt-ansible

This repository provides collection of playbooks to

  • install KubeVirt on existing OpenShift cluster
  • deploy K8S on given machines and install KubeVirt
  • deploy OpenShift on given machines and install KubeVirt

Tested on CentOS Linux release 7.3.1611 (Core), OpenShift 3.7 and Ansible 2.3.1

Install KubeVirt on existing OpenShift cluster

When you have your cluster up and running you can use install-kubevirt-on-openshift.yml playbook to install KubeVirt from given manifest.

You need three things to do that

  • kubevirt_mf - Path to KubeVirt manifest, you can get one from releases or build it from sources
  • openshift_ansible_dir - Path to OpenShift Ansible repository
  • kconfig - Path to kubeconfig
$ wget https://github.com/kubevirt/kubevirt/releases/download/v0.2.0/kubevirt.yaml
$ git clone https://github.com/openshift/openshift-ansible.git
$ ansible-playbook -i localhost, --connection=local \
        -e "openshift_ansible_dir=openshift-ansible/ \
        kconfig=$HOME/.kube/config \
        kubevirt_mf=kubevirt.yaml" \
        install-kubevirt-on-openshift.yml

asciicast

Deploy new cluster + KubeVirt

Requirements

Install depending roles, and export ANSIBLE_ROLES_PATH

$ ansible-galaxy install -p $HOME/galaxy-roles -r requirements.yml
$ export ANSIBLE_ROLES_PATH=$HOME/galaxy-roles

For OpenShift deployment clone OpenShift Ansible project

$ git clone https://github.com/openshift/openshift-ansible

Kubernetes

Preparing Kubernetes cluster and deploy KubeVirt on it.

  • Add your master and nodes to inventory file.
  • Run ansible playbook # ansible-playbook -i inventory deploy-kubernetes.yml.

OpenShift

Preparing OpenShift cluster and deploy KubeVirt on it.

  • Be sure that you have enough space on your hosts for docker storage and edit openshift/roles/docker-setup/defaults/main.yaml accordingly. You can read more about docker-storage-setup here.
  • Add your master and nodes to inventory file.
  • Run ansible playbook # ansible-playbook -i inventory -e "openshift_ansible_dir=... deploy-openshift.yml. You must give directory where you placed openshift-ansible to the variable openshift_ansible_dir.

Useful Links

kubevirt-ansible's People

Contributors

gbenhaim avatar lukas-bednar avatar petrkotas avatar cynepco3hahue avatar davidvossel avatar fabiand avatar jcpowermac avatar

Watchers

Gerard Braad avatar James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.