This commit is contained in:
Stavros kois
2023-01-20 18:12:46 +02:00
parent 73d03488d7
commit 65dee0cbab
5 changed files with 77 additions and 36 deletions

View File

@@ -1,32 +0,0 @@
# GPU
## key: scaleGPU
- Type: `dict`
- Default: `{}`
- Helm Template: ❌
It's used in SCALE GUI. Configuration is parsed by the Chart,
and each key/value pair, is added in `deployment.spec.template.container.resources.limits`
Example:
```yaml
scaleGPU:
gpu.intel.com/i915: "1"
resources:
limits:
cpu: 4000m
```
Will result in:
```yaml
resources:
limits:
gpu.intel.com/i915: "1"
cpu: 4000m
```
`gpu.intel.com/i915` and it's value, are generated from the SCALE GUI.

View File

@@ -2,13 +2,21 @@
## key: configmap
Info:
- Type: `dict`
- Default: `{}`
- Helm Template:
- content.KEY: ❌
- content.KEY.value: ✅
`configmap` dict creates a configmap based on the `content`
Can be defined in:
- `.Values`.configmap
---
Creates a configmap based on the `content`
Options:
@@ -22,9 +30,10 @@ configmap:
annotations: {}
# Optional
nameOverride: ""
# Tells to common that this contains environment variables
# Tells to common library that this contains environment variables.
# So it wil be checked for duplicates among `env`, `envList`, `fixedEnvs`
# and other `secrets` / `configmaps` (with parseAsEnv set)
# Optional
parseAsEnv: true
# Key/Value
content:

48
docs/common/values/gpu.md Normal file
View File

@@ -0,0 +1,48 @@
# GPU
## key: scaleGPU
Info:
- Type: `dict`
- Default: `{}`
- Helm Template: ❌
Can be defined in:
- `.Values`.scaleGPU
- `.Values.additionalContainers.[container-name]`.scaleGPU
- `.Values.initContainers.[container-name]`.scaleGPU
- `.Values.installContainers.[container-name]`.scaleGPU
- `.Values.upgradeContainers.[container-name]`.scaleGPU
- `.Values.systemContainers.[container-name]`.scaleGPU
- `.Values.jobs.[job-name].podSpec.containers.[container-name].[container-name]`.scaleGPU
---
It's used in SCALE GUI. Configuration is parsed by the Chart,
and each key/value pair, is added in the Pod's `spec.template.container.resources.limits`.
> If a GPU is passed through, it will automatically append the group `44` in `supplementalGroups`.
Example:
```yaml
scaleGPU:
gpu.intel.com/i915: "1"
resources:
limits:
cpu: 4000m
```
Will result in:
```yaml
resources:
limits:
gpu.intel.com/i915: "1"
cpu: 4000m
```
`gpu.intel.com/i915` and it's value, are generated from the SCALE GUI and middleware.

View File

@@ -2,10 +2,18 @@
## key: hostname
Info:
- Type: `string`
- Default: `""`
- Helm Template: ✅
Can be defined in:
- `.Values`.hostname
---
Specifies pod's hostname
Examples:

View File

@@ -2,6 +2,8 @@
## key: secret
Info:
- Type: `dict`
- Default: `{}`
- Helm Template:
@@ -9,7 +11,12 @@
- content.KEY: ❌
- content.KEY.value: ✅
`secret` dict creates a secret based on the `content`
Can be defined in:
- `.Values`.secret
---
Creates a secret based on the `content`
Options:
@@ -25,9 +32,10 @@ secret:
nameOverride: ""
# Optional - Defaults to Opaque
secretType: ""
# Tells to common that this contains environment variables
# Tells to common library that this contains environment variables.
# So it wil be checked for duplicates among `env`, `envList`, `fixedEnvs`
# and other `secrets` / `configmaps` (with parseAsEnv set)
# Optional
parseAsEnv: true
# Key/Value
content: