I hereby claim:
- I am shiywang on github.
- I am shiywang (https://keybase.io/shiywang) on keybase.
- I have a public key ASCb0ZpYeP2PFMaTHr0s7ibqp42BE2kazhyT9IdusqE8yAo
To claim this, I am signing this object:
➜ kubevirt-ansible git:(change_structure) oc get po/virt-handler-5rzmp po/virt-handler-r2hrl -n kube-system -o yaml | |
apiVersion: v1 | |
items: | |
- apiVersion: v1 | |
kind: Pod | |
metadata: | |
annotations: | |
scheduler.alpha.kubernetes.io/critical-pod: "" | |
scheduler.alpha.kubernetes.io/tolerations: | | |
[ |
func updatePodOwnerToRc(t *testing.T, pod *v1.Pod, rc *v1.ReplicationController) { | |
var controllerReference metav1.OwnerReference | |
var trueVar = true | |
controllerReference = metav1.OwnerReference{UID: rc.UID, APIVersion: controllerKindRC.GroupVersion().String(), Kind: controllerKindRC.Kind, Name: rc.Name, Controller: &trueVar} | |
pod.OwnerReferences = append(pod.OwnerReferences, controllerReference) | |
} |
apiVersion: v1 | |
items: | |
- apiVersion: kubevirt.io/v1alpha2 | |
kind: VirtualMachineInstance | |
metadata: | |
annotations: | |
presets.virtualmachines.kubevirt.io/presets-applied: kubevirt.io/v1alpha2 | |
clusterName: "" | |
creationTimestamp: 2018-08-29T12:06:07Z | |
finalizers: |
➜ kubevirt-ansible git:(master) oc get pod virt-launcher-vm-cirros-m84r7 -o yaml | |
apiVersion: v1 | |
kind: Pod | |
metadata: | |
annotations: | |
kubevirt.io/created-by: e951da09-ab83-11e8-bbea-fa163e57dd5d | |
kubevirt.io/owned-by: virt-handler | |
openshift.io/scc: privileged | |
creationTimestamp: 2018-08-29T12:06:07Z | |
generateName: virt-launcher-vm-cirros- |
•STEP: Wait until vmi ready | |
level=error timestamp=2018-08-16T02:34:24.617087Z pos=utils.go:1429 component=tests output="the server doesn't have a resource type \"abc\"\n" reason="exit status 1" msg="oc command failed: /usr/bin/oc get abc vm-cirros -o=jsonpath='{.status.phase}' -n kubevirt-test-default," | |
level=error timestamp=2018-08-16T02:34:40.881898Z pos=utils.go:1429 component=tests output="the server doesn't have a resource type \"abc\"\n" reason="exit status 1" msg="oc command failed: /usr/bin/oc get abc vm-cirros -o=jsonpath='{.status.phase}' -n kubevirt-test-default," | |
level=error timestamp=2018-08-16T02:34:57.191880Z pos=utils.go:1429 component=tests output="the server doesn't have a resource type \"abc\"\n" reason="exit status 1" msg="oc command failed: /usr/bin/oc get abc vm-cirros -o=jsonpath='{.status.phase}' -n kubevirt-test-default," | |
level=error timestamp=2018-08-16T02:35:13.460318Z pos=utils.go:1429 component=tests output="the server doesn't have a resource type \"abc\"\n" reason="exit status 1" |
Troubleshooting container on Openshift/Kubernetes can be challenging because it's totally different from traditional approaches.In this presentation, we will gave you some quick views of some common way to debug your containers, like run/debug/exec/port-forwarding, then we will explain of how those tools works in the cluster, what's the different and similar, how to use it properly and more efficiently. At the end, we will give you a detail introduction of port-forwarding with reverse and UDP support which is a new feature we've been working on it and a demo will be presented as well. |
func retSplit(s string) Result { | |
tmp := regexp.MustCompile(`\s`).Split(s, -1) | |
if len(tmp) >= 3 { | |
name := regexp.MustCompile(`\"`).Split(tmp[1], -1)[1] | |
resource := tmp[0] | |
verb := tmp[2] | |
return Result{ResourceName: name, ResourceType: resource, Verb: verb} | |
} | |
return Result{} | |
} |
I hereby claim:
To claim this, I am signing this object:
git config --global alias.co checkout | |
git config --global alias.br branch | |
git config --global alias.ci commit | |
git config --global alias.st status |
apiVersion: apiextensions.k8s.io/v1beta1 | |
kind: CustomResourceDefinition | |
metadata: | |
labels: | |
cdi.io: "" | |
name: datavolumes.cdi.io | |
spec: | |
group: cdi.io | |
names: | |
kind: DataVolume |