From 87aa2b74452c7c388b05b58b9cd26aa2298a60d7 Mon Sep 17 00:00:00 2001 From: "changran.wang" Date: Wed, 13 Aug 2025 14:29:39 +0800 Subject: [PATCH] Add helm doc and remove useless volume Signed-off-by: changran.wang --- README.md | 19 ++++++++++++++++--- deployment/ix-device-plugin/Chart.yaml | 24 +++--------------------- deployment/ix-device-plugin/values.yaml | 5 +---- ix-device-plugin.yaml | 3 --- 4 files changed, 20 insertions(+), 31 deletions(-) diff --git a/README.md b/README.md index 840190c..c1e2d6b 100644 --- a/README.md +++ b/README.md @@ -30,6 +30,22 @@ make all ``` This will build the ix-device-plugin binary and ix-device-plugin image, see logging for more details. +## Deploying the IX device plugin + +### Deploying the IX device plugin via Yaml + +```shell +kubectl apply -f ix-device-plugin.yaml +``` + +### Deploying the IX device plugin via Helm + +```shell +cd deployment +helm package ix-device-plugin --version 4.3.0 +helm install ix-device-plugin ix-device-plugin-4.3.0.tgz +``` + ## Configuring the IX device plugin The IX device plugin has a number of options that can be configured for it. @@ -132,9 +148,6 @@ spec: - hostPath: path: /sys name: sys - - hostPath: - path: /etc/udev/ - name: udev-etc - hostPath: path: /dev name: dev diff --git a/deployment/ix-device-plugin/Chart.yaml b/deployment/ix-device-plugin/Chart.yaml index 2357e91..a802bde 100644 --- a/deployment/ix-device-plugin/Chart.yaml +++ b/deployment/ix-device-plugin/Chart.yaml @@ -1,24 +1,6 @@ apiVersion: v2 -name: iluvatar-device-plugin +appVersion: 1.16.0 description: A Helm chart for Kubernetes - -# A chart can be either an 'application' or a 'library' chart. -# -# Application charts are a collection of templates that can be packaged into versioned archives -# to be deployed. -# -# Library charts provide useful utilities or functions for the chart developer. They're included as -# a dependency of application charts to inject those utilities and functions into the rendering -# pipeline. Library charts do not define any templates and therefore cannot be deployed. +name: ix-device-plugin type: application - -# This is the chart version. This version number should be incremented each time you make changes -# to the chart and its templates, including the app version. -# Versions are expected to follow Semantic Versioning (https://semver.org/) -version: 0.1.1 - -# This is the version number of the application being deployed. This version number should be -# incremented each time you make changes to the application. Versions are not expected to -# follow Semantic Versioning. They should reflect the version the application is using. -# It is recommended to use it with quotes. -appVersion: "1.16.0" +version: 4.3.0 diff --git a/deployment/ix-device-plugin/values.yaml b/deployment/ix-device-plugin/values.yaml index 409515b..14cdf38 100644 --- a/deployment/ix-device-plugin/values.yaml +++ b/deployment/ix-device-plugin/values.yaml @@ -3,7 +3,7 @@ # Declare variables to be passed into your templates. image: - repository: ix-device-plugin + repository: registry.iluvatar.com.cn:10443/k8s/ix-device-plugin pullPolicy: IfNotPresent tag: "4.3.0" @@ -54,9 +54,6 @@ volumes: - name: sys hostPath: path: /sys - - name: udev-etc - hostPath: - path: /etc/udev/ - name: dev hostPath: path: /dev diff --git a/ix-device-plugin.yaml b/ix-device-plugin.yaml index 8a6a689..04d6a05 100644 --- a/ix-device-plugin.yaml +++ b/ix-device-plugin.yaml @@ -95,9 +95,6 @@ spec: - hostPath: path: /sys name: sys - - hostPath: - path: /etc/udev/ - name: udev-etc - hostPath: path: /dev name: dev -- Gitee