From 0543e3011817211445da32afe1eaa60ded44c673 Mon Sep 17 00:00:00 2001 From: David Runge Date: Wed, 16 Dec 2020 21:24:26 +0100 Subject: Add kubernetes example using libvirt provider k8s_cluster/*: Add a terraform-provider-libvirt based examples to semi-automatically create a k8s cluster for testing. --- k8s_cluster/systemd-networkd/30-libvirt-bridge.netdev | 3 +++ k8s_cluster/systemd-networkd/30-libvirt-bridge.network | 9 +++++++++ 2 files changed, 12 insertions(+) create mode 100644 k8s_cluster/systemd-networkd/30-libvirt-bridge.netdev create mode 100644 k8s_cluster/systemd-networkd/30-libvirt-bridge.network (limited to 'k8s_cluster/systemd-networkd') diff --git a/k8s_cluster/systemd-networkd/30-libvirt-bridge.netdev b/k8s_cluster/systemd-networkd/30-libvirt-bridge.netdev new file mode 100644 index 0000000..df1c80e --- /dev/null +++ b/k8s_cluster/systemd-networkd/30-libvirt-bridge.netdev @@ -0,0 +1,3 @@ +[NetDev] +Name=virbr0 +Kind=bridge diff --git a/k8s_cluster/systemd-networkd/30-libvirt-bridge.network b/k8s_cluster/systemd-networkd/30-libvirt-bridge.network new file mode 100644 index 0000000..542b4bd --- /dev/null +++ b/k8s_cluster/systemd-networkd/30-libvirt-bridge.network @@ -0,0 +1,9 @@ +[Match] +Name=virbr0 + +[Network] +Address=10.10.66.1/24 +IPForward=ipv4 +IPv6AcceptRA=no +DHCPServer=yes +IPMasquerade=True -- cgit v1.2.3-70-g09d2