generated from kubernetes/kubernetes-template-project
-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #186 from ArangoGutierrez/helm_docs
Helm docs
- Loading branch information
Showing
11 changed files
with
256 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,17 @@ | ||
--- | ||
title: "Advanced" | ||
layout: default | ||
sort: 2 | ||
sort: 3 | ||
--- | ||
|
||
# Advanced | ||
|
||
Advanced topics and reference. | ||
|
||
Continue to: | ||
|
||
- **[Developer guide](/developer-guide)** for instructions on how to | ||
develop and test NFD-Operator. | ||
|
||
- **[NodeFeatureDiscovery](/NodeFeatureDiscovery)** for more information | ||
about the NodeFeatureDiscovery CRD. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
--- | ||
title: "Contributing" | ||
layout: default | ||
sort: 3 | ||
sort: 4 | ||
--- | ||
|
||
# Contributing | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
--- | ||
title: "Cleanup" | ||
layout: default | ||
sort: 4 | ||
--- | ||
|
||
# Removing feature labels | ||
|
||
From the [Operand repository][nfd] NFD-Master has a special `-prune` command | ||
line flag for removing all nfd-related node labels, annotations and extended | ||
resources from the cluster. | ||
|
||
In order to remove all feature labels from the cluster, run the following | ||
command: | ||
|
||
```bash | ||
kubectl apply -k https://github.com/kubernetes-sigs/node-feature-discovery/deployment/overlays/prune?ref={{ site.release }} | ||
kubectl -n node-feature-discovery wait job.batch/nfd-master --for=condition=complete && \ | ||
kubectl delete -k https://github.com/kubernetes-sigs/node-feature-discovery/deployment/overlays/prune?ref={{ site.release }} | ||
``` | ||
|
||
<!-- Links --> | ||
[nfd]: https://github.com/kubernetes-sigs/node-feature-discovery |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,112 @@ | ||
--- | ||
title: "Helm" | ||
layout: default | ||
sort: 1 | ||
--- | ||
|
||
# Deployment with Helm | ||
|
||
{: .no_toc} | ||
|
||
## Table of contents | ||
|
||
{: .no_toc .text-delta} | ||
|
||
1. TOC | ||
{:toc} | ||
|
||
--- | ||
|
||
Helm chart allow to easily deploy and manage the NFD-operator. | ||
|
||
> NOTE: NFD-operator is not ideal for other Helm charts to depend on as that | ||
> may result in multiple parallel NFD-operator deployments in the same cluster | ||
> which is not fully supported by the NFD-operator Helm chart. | ||
## Prerequisites | ||
|
||
[Helm package manager](https://helm.sh/) should be installed. | ||
|
||
## Deployment | ||
|
||
To install the latest stable version: | ||
|
||
```bash | ||
export NFD_O_NS=nfd-operator | ||
helm repo add nfd-operator https://kubernetes-sigs.github.io/node-feature-discovery-operator/charts | ||
helm repo update | ||
helm install nfd-operator/nfd-operator --namespace $NFD_O_NS --create-namespace --generate-name | ||
``` | ||
|
||
To install the latest development version you need to clone the NFD-Operator Git | ||
repository and install from there. | ||
|
||
```bash | ||
git clone https://github.com/kubernetes-sigs/node-feature-discovery-operator/ | ||
cd node-feature-discovery-operator/deployment/helm | ||
export NFD_O_NS=nfd-operator | ||
helm install nfd-operator ./nfd-operator/ --namespace $NFD_O_NS --create-namespace | ||
``` | ||
|
||
See the [configuration](#configuration) section below for instructions how to | ||
alter the deployment parameters. | ||
|
||
In order to deploy the [minimal](image-variants.md#minimal) image you need to | ||
override the image tag: | ||
|
||
```bash | ||
helm install nfd-operator ./nfd-operator/ --set image.tag={{ site.release }}-minimal --namespace $NFD_O_NS --create-namespace | ||
``` | ||
|
||
## Configuration | ||
|
||
You can override values from `values.yaml` and provide a file with custom values: | ||
|
||
```bash | ||
export NFD_O_NS=nfd-operator | ||
helm install nfd-operator/nfd-operator -f <path/to/custom/values.yaml> --namespace $NFD_O_NS --create-namespace | ||
``` | ||
|
||
To specify each parameter separately you can provide them to helm install command: | ||
|
||
```bash | ||
export NFD_O_NS=nfd-operator | ||
helm install nfd-operator/nfd-operator --set nameOverride=NFDinstance --namespace $NFD_O_NS --create-namespace | ||
``` | ||
|
||
## Uninstalling the chart | ||
|
||
To uninstall the `nfd-operator` deployment: | ||
|
||
```bash | ||
export NFD_O_NS=nfd-operator | ||
helm uninstall nfd-operator --namespace $NFD_O_NS | ||
``` | ||
|
||
The command removes all the Kubernetes components associated with the chart and | ||
deletes the release. | ||
|
||
## Chart parameters | ||
|
||
In order to tailor the deployment of the Node Feature Discovery to your cluster needs | ||
We have introduced the following Chart parameters. | ||
|
||
### General parameters | ||
|
||
| Name | Type | Default | description | | ||
| ---- | ---- | ------- | ----------- | | ||
| `image.repository` | string | `{{ site.container_image | split: ":" | first }}` | NFD image repository | | ||
| `image.tag` | string | `{{ site.release }}` | NFD image tag | | ||
| `image.pullPolicy` | string | `Always` | Image pull policy | | ||
| `imagePullSecrets` | list | [] | ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. For example, in the case of docker, only DockerConfig type secrets are honored. [More info](https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod) | | ||
| `nameOverride` | string | | Override the name of the chart | | ||
| `fullnameOverride` | string | | Override a default fully qualified app name | | ||
|
||
### Controller deployment parameters | ||
|
||
| Name | Type | Default | description | | ||
| ---- | ---- | ------- | ----------- | | ||
| `controller.image.repository` | string | `{{ site.container_image | split: ":" | first }}` | NFD-Operator image repository | | ||
| `controller.image.tag` | string | `{{ site.release }}` | NFD-Operator image tag | | ||
|
||
[rbac]: https://kubernetes.io/docs/reference/access-authn-authz/rbac/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
--- | ||
title: "Image variants" | ||
layout: default | ||
sort: 3 | ||
--- | ||
|
||
# Image variants | ||
|
||
{: .no_toc} | ||
|
||
## Table of contents | ||
|
||
{: .no_toc .text-delta} | ||
|
||
1. TOC | ||
{:toc} | ||
|
||
--- | ||
|
||
# Image variants | ||
|
||
Node-Feautre-Discovery-Operator currently offers two variants | ||
of the container image. The "full" variant is currently | ||
deployed by default. | ||
|
||
## Default | ||
|
||
This is a minimal image based on: | ||
[gcr.io/distroless/base](https://github.com/GoogleContainerTools/distroless/blob/master/base/README.md) | ||
|
||
The container image tag has suffix `-minimal` | ||
(e.g. `{{ site.container_image }}-minimal`) | ||
and the image is deployed by default. | ||
|
||
## Full | ||
|
||
This image is based on | ||
[debian:buster-slim](https://hub.docker.com/_/debian) and contains a full Linux | ||
system for doing live debugging and diagnosis of the operator. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
--- | ||
title: "Deployment" | ||
layout: default | ||
sort: 2 | ||
--- | ||
|
||
# Deployment | ||
|
||
[Installation](manual) provides instructions for installing NFD-Operator to a | ||
cluster. | ||
|
||
[Uninstallation](manual) provides instructions for removing NFD-Operator from a | ||
cluster. | ||
|
||
[Using Helm](helm) provides easy management of NFD-Operator deployments with | ||
nice configuration management and easy upgrades. | ||
|
||
See [Image variants](image-variants) for description of the different NFD-Operator | ||
container images available. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
<meta http-equiv="refresh" content="0; URL='get-started/index.html'" /> | ||
<meta http-equiv="refresh" content="0; URL='introduction/index.html'" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters