Skip to content

Instantly share code, notes, and snippets.

@karmab
Last active December 14, 2017 16:16
Show Gist options
  • Save karmab/125389b0edfbc5b863d263835f4f20ff to your computer and use it in GitHub Desktop.
Save karmab/125389b0edfbc5b863d263835f4f20ff to your computer and use it in GitHub Desktop.
kubevirt-v0.1.0.sh
VERSION="v0.1.0"
sed -i "s/SELINUX=enforcing/SELINUX=permissive/" /etc/selinux/config
setenforce 0
oc project kube-system
wget https://github.com/kubevirt/kubevirt/releases/download/$VERSION/kubevirt.yaml
wget https://github.com/kubevirt/kubevirt/releases/download/$VERSION/spice-proxy.yaml
oc adm policy add-scc-to-user privileged -z kubevirt-infra
oc adm policy add-scc-to-user hostmount-anyuid -z kubevirt-infra
oc create -f kubevirt.yaml
oc create -f spice-proxy.yaml
oc expose deploy haproxy --port=8184
oc expose svc haproxy
wget https://github.com/kubevirt/kubevirt/releases/download/$VERSION/virtctl-$VERSION-linux-amd64
mv virtctl-$VERSION-linux-amd64 /usr/bin/virtctl
chmod u+x /usr/bin/virtctl
wget https://raw.githubusercontent.com/karmab/kcli/master/plans/openshift/iscsi-demo-target.yaml
oc create -f iscsi-demo-target.yaml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment