This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
DNF=$(which dnf) | |
APT=$(which apt) | |
if [[ ! -z $APT ]]; then | |
sudo apt update -y | |
sudo apt install -y \ | |
qemu-kvm \ | |
libvirt-clients \ | |
libvirt-daemon-system \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: extensions/v1beta1 | |
kind: DaemonSet | |
metadata: | |
name: kubevirt-hpp | |
labels: | |
k8s-app: kubevirt-hpp | |
namespace: kube-system | |
spec: | |
selector: | |
matchLabels: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"---------------------------------------------- | |
" Plugin management | |
" | |
" Download vim-plug from the URL below and follow the installation | |
" instructions: | |
" https://github.com/junegunn/vim-plug | |
"---------------------------------------------- | |
call plug#begin('~/.vim/plugged') | |
" Dependencies |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
E0725 18:21:33.390379 1 controller.go:213] error syncing condition: the server could not find the requested resource (put localvolumes.local.storage.openshift.io localfs-disks) | |
time="2019-07-25T18:21:33Z" level=error msg="error syncing key (local-storage/localfs-disks): error applying localvolume role local-storage-provisioner-cr-role: roles.rbac.authorization.k8s.io \"local-storage-provisioner-cr-role\" is forbidden: User \"system:serviceaccount:local-storage:local-storage-operator\" cannot get resource \"roles\" in API group \"rbac.authorization.k8s.io\" in the namespace \"local-storage\"" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
root@kube-2:/var/lib/kubelet/plugins/kubernetes.io/csi/volumeDevices# lsblk | |
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT | |
loop0 7:0 0 1G 0 loop | |
rbd0 251:0 0 1G 0 disk | |
vda 252:0 0 40G 0 disk | |
├─vda1 252:1 0 39.9G 0 part / | |
├─vda14 252:14 0 4M 0 part | |
└─vda15 252:15 0 106M 0 part /boot/efi | |
vdb |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[jdg@doublehaul oc-rc5-install] ➜ oc get all -n local-storage | |
NAME READY STATUS RESTARTS AGE | |
pod/local-storage-manifests-kwqmg 1/1 Running 0 57s | |
pod/local-storage-operator-54564d9988-lk575 0/1 CrashLoopBackOff 1 31s | |
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE | |
service/local-storage-manifests ClusterIP 172.30.113.217 <none> 50051/TCP 57s | |
service/local-storage-operator ClusterIP 172.30.217.48 <none> 60000/TCP 9s | |
NAME READY UP-TO-DATE AVAILABLE AGE |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/cluster-sync/clean.sh b/cluster-sync/clean.sh | |
index bba797d7..9b33bf9b 100755 | |
--- a/cluster-sync/clean.sh | |
+++ b/cluster-sync/clean.sh | |
@@ -10,6 +10,7 @@ OPERATOR_CR_MANIFEST=./_out/manifests/release/cdi-cr.yaml | |
OPERATOR_MANIFEST=./_out/manifests/release/cdi-operator.yaml | |
LABELS=("operator.cdi.kubevirt.io" "cdi.kubevirt.io") | |
NAMESPACES=(default cdi) | |
+CDI_NAMESPACE="cdi" | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: "local.storage.openshift.io/v1alpha1" | |
kind: "LocalVolume" | |
metadata: | |
name: "local-disks" | |
namespace: local-storage | |
spec: | |
nodeSelector: | |
nodeSelectorTerms: | |
- matchExpressions: | |
- key: kubernetes.io/hostname |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
doublehaul ➜ olm-local-volumes git:(master) ✗ k get pods -o yaml | |
apiVersion: v1 | |
items: | |
- apiVersion: v1 | |
kind: Pod | |
metadata: | |
creationTimestamp: "2019-05-31T15:21:09Z" | |
name: my-pod | |
namespace: default | |
resourceVersion: "2865149" |