-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Matthew DeVenny <matt@boxboat.com>
- Loading branch information
1 parent
74ca86b
commit a5f9659
Showing
5 changed files
with
101 additions
and
9 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,21 @@ | ||
# k8s-tpm-device | ||
Kubernetes device plugin based on [intel-device-plugin-for-kubernetes](https://github.com/intel/intel-device-plugin-for-kubernetes) | ||
Kubernetes [device plugin](https://kubernetes.io/docs/concepts/extend-kubernetes/compute-storage-net/device-plugins/) | ||
based on [intel-device-plugin-for-kubernetes](https://github.com/intel/intel-device-plugin-for-kubernetes) | ||
|
||
## About | ||
The device plugin runs as a `DaemonSet` to register a TPM with the kubelet. | ||
|
||
## Usage | ||
To install | ||
```shell | ||
helm repo add k8s-tpm-device https://boxboat.github.io/k8s-tpm-device/chart | ||
helm repo update | ||
helm upgrade install k8s-tpm-device --namespace tpm-device --create-namespace k8s-tpm-device/k8s-tpm-device | ||
``` | ||
|
||
Add this resource limit to grant the desired container access to `/dev/tpmrm0` | ||
```yaml | ||
resources: | ||
limits: | ||
tpm.boxboat.io/tpmrm: '1' | ||
``` |
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,4 +1,4 @@ | ||
apiVersion: v2 | ||
name: k8s-tpm-device | ||
description: installs the k8s-tpm-device | ||
version: 0.1.1 | ||
version: 0.2.0 |
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,2 +1,35 @@ | ||
# k8s-tpm-device | ||
|
||
Helm chart for k8s-tpm-device | ||
|
||
## Values | ||
|
||
| Key | Type | Default | Description | | ||
|-------------------|--------|--------------------------|--------------------------------------| | ||
| nameOverride | string | `""` | | | ||
| fullnameOverride | string | `""` | | | ||
| imagePullPolicy | string | `IfNotPresent` | | | ||
| debug | bool | `false` | enables debug logging | | ||
| image.registry | string | `ghcr.io` | | | ||
| image.repository | string | `boxboat/k8s-tpm-device` | | | ||
| image.tag | string | `master` | | | ||
| device.namespace | string | `tpm.boxboat.io` | device namespace | | ||
| device.capacity | int | `1` | specifies the tpm capacity | | ||
| priorityClassName | string | `""` | | | ||
| securityContext | object | `{}` | override the default securityContext | | ||
| resources | object | `{}` | | | ||
| tolerations | object | `{}` | | | ||
| extraVolumes | list | `[]` | | | ||
| extraVolumeMounts | list | `[]` | | | ||
| extraContainers | list | `[]` | | | ||
| initContainers | list | `[]` | | | ||
|
||
## TPM Device Usage | ||
|
||
Add this resource limit to grant the desired container access to `/dev/tpmrm0` | ||
|
||
```yaml | ||
resources: | ||
limits: | ||
tpm.boxboat.io/tpmrm: '1' | ||
``` |
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