cluster-api-provider-libvirt

module
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 15, 2019 License: Apache-2.0

README

Kubernetes cluster-api-provider-libvirt

This repository hosts an implementation of a provider for Libvirt for the cluster-api project.

Allowing the actuator to connect to the libvirt daemon running on the host machine:

Edit /etc/libvirt/libvirtd.conf to set:

listen_tls = 0
listen_tcp = 1
auth_tcp="none"
tcp_port = "16509"

Edit /etc/systemd/system/libvirt-bin.service to set:

/usr/sbin/libvirtd -l

Then:

systemctl restart libvirtd

Allow incoming connections:

iptables -I INPUT -p tcp --dport 16509 -j ACCEPT -m comment --comment "Allow insecure libvirt clients"

Verify you can connect through your host private ip:

virsh -c qemu+tcp://host_private_ip/system

Run it with the installer

Before running the installer make sure you set libvirt to use the host private ip uri above: https://github.com/openshift/installer/blob/master/examples/tectonic.libvirt.yaml#L14

Video demo

https://youtu.be/urvXXfdfzVc

Directories

Path Synopsis
cmd
lib
pkg
apis
Package apis contains Kubernetes API groups.
Package apis contains Kubernetes API groups.
apis/libvirtproviderconfig
Package libvirtproviderconfig contains libvirtproviderconfig API versions
Package libvirtproviderconfig contains libvirtproviderconfig API versions
apis/libvirtproviderconfig/v1alpha1
Package v1alpha1 contains API Schema definitions for the libvirtproviderconfig v1alpha1 API group +k8s:openapi-gen=true +k8s:deepcopy-gen=package,register +k8s:conversion-gen=github.com/openshift/cluster-api-provider-libvirt/pkg/apis/libvirtproviderconfig +k8s:defaulter-gen=TypeMeta +groupName=libvirtproviderconfig.k8s.io Package v1alpha1 contains API Schema definitions for the libvirtproviderconfig v1alpha1 API group +k8s:openapi-gen=true +k8s:deepcopy-gen=package,register +k8s:conversion-gen=github.com/openshift/cluster-api-provider-libvirt/pkg/apis/libvirtproviderconfig +k8s:defaulter-gen=TypeMeta +groupName=libvirtproviderconfig.k8s.io
Package v1alpha1 contains API Schema definitions for the libvirtproviderconfig v1alpha1 API group +k8s:openapi-gen=true +k8s:deepcopy-gen=package,register +k8s:conversion-gen=github.com/openshift/cluster-api-provider-libvirt/pkg/apis/libvirtproviderconfig +k8s:defaulter-gen=TypeMeta +groupName=libvirtproviderconfig.k8s.io Package v1alpha1 contains API Schema definitions for the libvirtproviderconfig v1alpha1 API group +k8s:openapi-gen=true +k8s:deepcopy-gen=package,register +k8s:conversion-gen=github.com/openshift/cluster-api-provider-libvirt/pkg/apis/libvirtproviderconfig +k8s:defaulter-gen=TypeMeta +groupName=libvirtproviderconfig.k8s.io
cloud/libvirt/client/mock
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL