Skip to content

Instantly share code, notes, and snippets.

View phoracek's full-sized avatar

Petr Horacek phoracek

View GitHub Profile
@phoracek
phoracek / setup.sh
Created January 7, 2021 11:14
Jumbo frames test on kubevirtci
make cluster-down
KUBEVIRT_WITH_CNAO=true make cluster-up
make cluster-sync
./cluster-up/cli.sh ssh node01 'sudo ip link add br10 type bridge && sudo ip link set dev br10 mtu 9000'
cat <<EOF | ./cluster-up/kubectl.sh apply -f -
apiVersion: "k8s.cni.cncf.io/v1"
kind: NetworkAttachmentDefinition
metadata:
name: br10
spec:
@phoracek
phoracek / README.md
Last active September 24, 2020 15:04
KubeVirt conformance sanity check

Conformance sanity check

This guide describes how to run sanity conformance test on a Kubernetes cluster. Note that it does not run networking tests and it serves only to setup an environment where we will run CNI conformance suite. The only change then would be different "conformance manifest" while setup requirements and prerequisities will remain the same.

Prerequisities

@phoracek
phoracek / README.md
Last active July 24, 2020 08:04
Test KubeVirt with Calico.

Fetch KubeVirt sources:

git clone https://github.com/kubevirt/kubevirt
cd kubevirt

Bring up local virtualized Kubernetes 1.17 cluster with preinstalled Calico:

@phoracek
phoracek / vmi.yaml
Created March 12, 2020 11:13
CDI import
apiVersion: kubevirt.io/v1alpha3
kind: VirtualMachine
metadata:
annotations:
kubevirt.io/latest-observed-api-version: v1alpha3
kubevirt.io/storage-observed-api-version: v1alpha3
name.os.template.kubevirt.io/fedora31: Fedora 31
name: vm-external-image
namespace: default
spec:
@phoracek
phoracek / README.md
Created February 25, 2020 18:34
KubeVirt FQDN connectivity

KubeVirt FQDN connectivity

This example sets up two KubeVirt VMs connected to the cluster network via masquerade. These VMs can use their FQDN to access themselves locally and get from one to another over the cluster network.

Apply VMs and Services

kubectl apply -f vms.yaml
% ./cluster/kubectl.sh logs -n olm catalog-operator-6d8b87dc94-x58fx | grep network
time="2019-06-20T14:47:58Z" level=warning msg="couldn't find service in cache" service=cluster-network-addons-catalogsource
time="2019-06-20T14:47:58Z" level=info msg="building connection to registry" currentSource="{cluster-network-addons-catalogsource olm}" id=HB/Tv source=cluster-network-addons-catalogsource
time="2019-06-20T14:47:58Z" level=info msg="client hasn't yet become healthy, attempt a health check" currentSource="{cluster-network-addons-catalogsource olm}" id=HB/Tv source=cluster-network-addons-catalogsour
ce
time="2019-06-20T14:48:19Z" level=info msg="building connection to registry" currentSource="{cluster-network-addons-catalogsource olm}" id=vo+1a source=cluster-network-addons-catalogsource
time="2019-06-2
apiVersion: operators.coreos.com/v1alpha1
kind: ClusterServiceVersion
metadata:
name: cluster-network-addons-operator.0.10.0
namespace: placeholder
annotations:
capabilities: "Full Lifecycle"
categories: "Networking"
alm-examples: |
[
@phoracek
phoracek / README.md
Created March 4, 2018 19:22
Device Plugin Manager

dpm

-- import "kubevirt.io/kubernetes-device-plugins/pkg/dpm"

This package provides a framework (Device Plugin Manager, DPM) that makes implementation of Device Plugins https://kubernetes.io/docs/concepts/cluster-administration/device-plugins/ easier. It provides abstraction of Plugins, thanks to it a user does not need to implement actual gRPC server. It also handles dynamic management of available resources and their respective plugins.