root

package module
v0.4.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 24, 2019 License: Apache-2.0 Imports: 0 Imported by: 0

README

Machine Remediation

Remediation Flow

Remediation Flow

Architecture

The machine remediation contains components to monitor and remediate unhealthy machines for different platforms, it works on top of machine-api-operator controllers.

It contains:

How to deploy

You can check the GitHub releases to get latest yaml file, that includes CRD's, RBAC rules and deployment and apply it to your cluster.

kubectl apply -f https://github.com/kubevirt/machine-remediation/releases/download/v0.4.2/machine-remediation.v0.4.2.yaml

Once the deployment finishes, create a MachineHealthCheck object and be sure to give it the healthchecking.openshift.io/strategy: reboot annotation that instructs the Machine Healthcheck controller to delegate remediation to us.

An example MachineHealthCheck object that covers all nodes in the cluster is as follows:

apiVersion: healthchecking.openshift.io/v1alpha1
kind: MachineHealthCheck
metadata:
 name: some-example
 namespace: openshift-machine-api
 annotations:
   healthchecking.openshift.io/strategy: reboot
spec:
 selector:
   matchLabels:
     kubernetes.io/os: linux
 unhealthyConditions:
 - type: Healthy
   status: Unknown
   timeout: 60s

How to run e2e tests

You should have k8s or OpenShift environment with at least two worker nodes and run:

export KUBECONFIG=/dir/cluster/kubeconfig
make e2e-tests-run

Documentation

Overview

* This file is part of the KubeVirt project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * * Copyright 2019 Red Hat, Inc. *

Directories

Path Synopsis
cmd
pkg
apis/machineremediation/v1alpha1
Package v1alpha1 contains API Schema definitions for the healthchecking v1alpha1 API group +k8s:deepcopy-gen=package,register +groupName=machineremediation.kubevirt.io Package v1alpha1 contains API Schema definitions for the healthchecking v1alpha1 API group +k8s:deepcopy-gen=package,register +groupName=machineremediation.kubevirt.io
Package v1alpha1 contains API Schema definitions for the healthchecking v1alpha1 API group +k8s:deepcopy-gen=package,register +groupName=machineremediation.kubevirt.io Package v1alpha1 contains API Schema definitions for the healthchecking v1alpha1 API group +k8s:deepcopy-gen=package,register +groupName=machineremediation.kubevirt.io
client/clientset/versioned
This package has the automatically generated clientset.
This package has the automatically generated clientset.
client/clientset/versioned/fake
This package has the automatically generated fake clientset.
This package has the automatically generated fake clientset.
client/clientset/versioned/scheme
This package contains the scheme of the automatically generated clientset.
This package contains the scheme of the automatically generated clientset.
client/clientset/versioned/typed/machineremediation/v1alpha1
This package has the automatically generated typed clients.
This package has the automatically generated typed clients.
client/clientset/versioned/typed/machineremediation/v1alpha1/fake
Package fake has the automatically generated clients.
Package fake has the automatically generated clients.
Package tools contains code generation utilities This package imports things required by build scripts, to force `go mod` to see them as dependencies
Package tools contains code generation utilities This package imports things required by build scripts, to force `go mod` to see them as dependencies

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL