Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save jayunit100/d7758d2c60217ddc920448601e5079f9 to your computer and use it in GitHub Desktop.
Save jayunit100/d7758d2c60217ddc920448601e5079f9 to your computer and use it in GitHub Desktop.
~ » kubectl get machines | grep "smoke-test-1-" 130 ↵ ubuntu@ubuntu
smoke-test-1-28ztk vsphere://4230c2a0-32a6-3a03-13a8-ad27cc01ffef Failed
smoke-test-1-md-0-6ddbcf577b-4mvr4 vsphere://42308e20-d8b1-c603-df06-d6f0005367d7 Running
smoke-test-1-md-0-6ddbcf577b-dbh9n vsphere://4230d5f3-240e-ee7d-eef1-45fd3ffcee50 Running
smoke-test-1-md-0-6ddbcf577b-r5mmk vsphere://42308c5c-8a09-15bb-277c-e772b060a266 Running
smoke-test-1-rgwj8 vsphere://42302040-4cc1-f1ee-35b2-2fcd144b420d Running
smoke-test-1-v2ppc vsphere://4230700e-e736-9663-a0c3-f02a208fb1da Running
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
~ » kubectl get machineHealthCheck -o yaml ubuntu@ubuntu
apiVersion: v1
items:
- apiVersion: cluster.x-k8s.io/v1alpha3
kind: MachineHealthCheck
metadata:
creationTimestamp: "2020-04-03T20:28:32Z"
generation: 1
labels:
cluster.x-k8s.io/cluster-name: smoke-test-1
name: omg
namespace: default
ownerReferences:
- apiVersion: cluster.x-k8s.io/v1alpha3
kind: Cluster
name: smoke-test-1
uid: df4fcc06-151c-4761-816e-d326092d535a
resourceVersion: "438406"
selfLink: /apis/cluster.x-k8s.io/v1alpha3/namespaces/default/machinehealthchecks/omg
uid: f91016f4-5ae2-429e-8d4a-e5a705ba4957
spec:
clusterName: smoke-test-1
maxUnhealthy: 40%
nodeStartupTimeout: 10m0s
selector:
matchLabels:
cluster.x-k8s.io/cluster-name: smoke-test-1
cluster.x-k8s.io/control-plane: ""
kubeadm.controlplane.cluster.x-k8s.io/hash: "4235374148"
unhealthyConditions:
- status: Unknown
timeout: 5m0s
type: Ready
- status: "False"
timeout: 30s
type: Ready
kind: List
metadata:
resourceVersion: ""
selfLink: ""
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
~ » kubectl get machine smoke-test-1-28ztk -o yaml ubuntu@ubuntu
apiVersion: cluster.x-k8s.io/v1alpha3
kind: Machine
metadata:
creationTimestamp: "2020-04-03T13:50:05Z"
finalizers:
- machine.cluster.x-k8s.io
generation: 3
labels:
cluster.x-k8s.io/cluster-name: smoke-test-1
cluster.x-k8s.io/control-plane: ""
kubeadm.controlplane.cluster.x-k8s.io/hash: "3005926658"
name: smoke-test-1-28ztk
namespace: default
ownerReferences:
- apiVersion: controlplane.cluster.x-k8s.io/v1alpha3
blockOwnerDeletion: true
controller: true
kind: KubeadmControlPlane
name: smoke-test-1
uid: a5aaf30b-5b6d-459d-9147-723e07807269
resourceVersion: "377948"
selfLink: /apis/cluster.x-k8s.io/v1alpha3/namespaces/default/machines/smoke-test-1-28ztk
uid: 6032954c-0d31-4d5d-b7ea-a0ce9895ff98
spec:
bootstrap:
configRef:
apiVersion: bootstrap.cluster.x-k8s.io/v1alpha3
kind: KubeadmConfig
name: smoke-test-1-pmbts
namespace: default
uid: e5a358b8-ee29-44e6-9d55-5a80192e71fc
dataSecretName: smoke-test-1-pmbts
clusterName: smoke-test-1
infrastructureRef:
apiVersion: infrastructure.cluster.x-k8s.io/v1alpha3
kind: VSphereMachine
name: smoke-test-1-fcmhk
namespace: default
uid: 5cae6139-bb03-4cbb-bde3-9bf40a7a73f3
providerID: vsphere://4230c2a0-32a6-3a03-13a8-ad27cc01ffef
version: v1.17.3+vmware.1
status:
addresses:
- address: 192.168.3.52
type: ExternalIP
bootstrapReady: true
failureMessage: 'Failure detected from referenced resource infrastructure.cluster.x-k8s.io/v1alpha3,
Kind=VSphereMachine with name "smoke-test-1-fcmhk": Unable to find VM by BIOS
UUID 4230c2a0-32a6-3a03-13a8-ad27cc01ffef. The vm was removed from infra'
failureReason: UpdateError
infrastructureReady: true
lastUpdated: "2020-04-03T17:42:05Z"
nodeRef:
name: smoke-test-1-28ztk
uid: 2ac76837-ecd0-4427-a110-5e3b428c3dc5
phase: Failed
-----------------------
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment