habanalabs-k8s-device-plugin

command module
v1.16.0 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

README

Habana Device Plugin for Kubernetes

The Habana device plugin for Kubernetes, operating as a DaemonSet, enables the automatic registration of Habana devices within your Kubernetes cluster, while also monitoring the health status of these devices. This integration ensures seamless management and monitoring of Habana devices within the Kubernetes ecosystem, enhancing operational efficiency and reliability.

This repository contains Habana official implementation of the Kubernetes device plugin.

Table of Contents

Prerequisites

The below lists the prerequisites needed for running Habana device plugin:

Gaudi Device Registration

Once the prerequisites mentioned earlier have been established in the nodes, you can then activate support in your cluster by deploying the Daemonset:

$ kubectl create -f habanalabs-device-plugin-gaudi.yaml

Building and Running Locally Using Docker

To build and run using a docker, employ the following options according to your specific scenario:

  • To pull the prebuilt image, run:
$ docker pull vault.habana.ai/docker-k8s-device-plugin/docker-k8s-device-plugin:1.16.0
  • To build without cloning the repository, run:
$ docker build -t vault.habana.ai/docker-k8s-device-plugin:devel -f Dockerfile https://github.com/HabanaAI/habanalabs-k8s-device-plugin.git#1.16.0
  • To modify the code, run:
$ git clone https://github.com/HabanaAI/habanalabs-k8s-device-plugin.git && cd habanalabs-k8s-device-plugin
$ docker build -t vault.habana.ai/docker-k8s-device-plugin:devel -f Dockerfile .

Documentation

Overview

* Copyright (c) 2022, HabanaLabs Ltd. All rights reserved. * * 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.

Jump to

Keyboard shortcuts

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