Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add additional environment variables #11

Merged
merged 3 commits into from
Feb 16, 2024
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,26 +18,26 @@
# Downloads a .tgz file to the working directory or --destination path
helm pull \
oci://ghcr.io/whylabs/langkit \
--version "0.7.0"
--version "0.9.0"

helm diff upgrade \
--allow-unreleased \
--namespace langkit \
`# Specify the .tgz file as the chart` \
langkit langkit-0.7.0.tgz
langkit langkit-0.9.0.tgz

helm upgrade --install \
--create-namespace \
--namespace langkit \
langkit langkit-0.7.0.tgz
langkit langkit-0.9.0.tgz
```

#### Extended Example
```shell
# Configure local variables for clarity and simplicity
helm_repo="ghcr.io/whylabs"
chart_name="langkit"
chart_version="0.4.0"
chart_version="0.9.0"
chart="${chart_name}-${chart_version}.tgz"

# Release and namespace values mirror other variables for simplicity.
Expand Down
6 changes: 6 additions & 0 deletions charts/langkit/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning]
(https://semver.org/spec/v2.0.0.html).

## [0.9.0] - 2023-02-15

### Added

- Added `TRANSFORMERS_OFFLINE` and `HF_DATASETS_OFFLINE` environment variables.

## [0.8.0] - 2023-02-14 :heart:

### Added
Expand Down
4 changes: 2 additions & 2 deletions charts/langkit/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ apiVersion: v2
name: langkit
description: A Helm chart for LangKit container deployment
type: application
version: 0.8.0
appVersion: "1.0.2.dev4"
version: 0.9.0
appVersion: "1.0.2.dev6"
46 changes: 13 additions & 33 deletions charts/langkit/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,22 +55,22 @@ View the difference between the current state and desired state.
# helm plugin install https://github.com/databus23/helm-diff
helm diff upgrade \
--allow-unreleased \
langkit langkit-0.8.0.tgz
langkit langkit-0.9.0.tgz
```

### Install/Update
```shell
helm upgrade --install \
--create-namespace \
--namespace langkit \
langkit langkit-0.8.0.tgz
langkit langkit-0.9.0.tgz
```

### Uninstall
```shell
helm uninstall \
--namespace langkit \
langkit langkit-0.8.0.tgz
langkit langkit-0.9.0.tgz
```

## Development
Expand All @@ -88,39 +88,22 @@ helm-docs --dry-run

| Key | Type | Default | Description |
|-----|------|---------|-------------|
| affinity.podAntiAffinity.preferredDuringSchedulingIgnoredDuringExecution[0].podAffinityTerm.labelSelector.matchExpressions[0].key | string | `"app.kubernetes.io/name"` | |
| affinity.podAntiAffinity.preferredDuringSchedulingIgnoredDuringExecution[0].podAffinityTerm.labelSelector.matchExpressions[0].operator | string | `"In"` | |
| affinity.podAntiAffinity.preferredDuringSchedulingIgnoredDuringExecution[0].podAffinityTerm.labelSelector.matchExpressions[0].values[0] | string | `"langkit"` | |
| affinity.podAntiAffinity.preferredDuringSchedulingIgnoredDuringExecution[0].podAffinityTerm.topologyKey | string | `"kubernetes.io/hostname"` | |
| affinity.podAntiAffinity.preferredDuringSchedulingIgnoredDuringExecution[0].weight | int | `100` | |
| containers.env[0].name | string | `"HOME"` | |
| containers.env[0].value | string | `"/home"` | |
| containers.env[1].name | string | `"HF_HOME"` | |
| containers.env[1].value | string | `"/home/.cache/hf_home"` | |
| containers.securityContext.readOnlyRootFilesystem | bool | `true` | |
| containers.securityContext.runAsUser | int | `1000` | |
| containers.volumeMounts[0].mountPath | string | `"/tmp"` | |
| containers.volumeMounts[0].name | string | `"temp-dir"` | |
| containers.volumeMounts[1].mountPath | string | `"/home"` | |
| containers.volumeMounts[1].name | string | `"home"` | |
| containers.env | list | `[{"name":"TRANSFORMERS_OFFLINE","value":1},{"name":"HF_DATASETS_OFFLINE","value":1},{"name":"HOME","value":"/home"},{"name":"HF_HOME","value":"/home/.cache/hf_home"}]` | Environment variables for the containers |
| containers.securityContext | object | `{"readOnlyRootFilesystem":true,"runAsUser":1000}` | Container security context |
| containers.volumeMounts | list | `[{"mountPath":"/tmp","name":"temp-dir"},{"mountPath":"/home","name":"home"}]` | Volume mounts for containers |
| fullnameOverride | string | `""` | |
| image.containerPort | int | `8000` | |
| image.pullPolicy | string | `"Always"` | |
| image.repository | string | `"whylabs/whylogs"` | |
| image.tag | string | `"py-llm-1.0.2.dev4"` | |
| image.tag | string | `"py-llm-1.0.2.dev6"` | |
| imagePullSecrets | list | `[]` | |
| ingress.annotations | object | `{}` | |
| ingress.className | string | `""` | |
| ingress.enabled | bool | `false` | |
| ingress.hosts[0].host | string | `"chart-example.local"` | |
| ingress.hosts[0].paths[0].path | string | `"/"` | |
| ingress.hosts[0].paths[0].pathType | string | `"ImplementationSpecific"` | |
| ingress.hosts | list | `[]` | |
| ingress.tls | list | `[]` | |
| initContainers.command[0] | string | `"sh"` | |
| initContainers.command[1] | string | `"-c"` | |
| initContainers.command[2] | string | `"cp -R /opt/whylogs-container/.cache /home/"` | |
| initContainers.volumeMounts[0].mountPath | string | `"/home"` | |
| initContainers.volumeMounts[0].name | string | `"home"` | |
| initContainers.command | list | `["sh","-c","cp -R /opt/whylogs-container/.cache /home/"]` | Command for init container |
| initContainers.volumeMounts | list | `[{"mountPath":"/home","name":"home"}]` | Volume mounts for init container |
| livenessProbe.initialDelaySeconds | int | `15` | |
| livenessProbe.periodSeconds | int | `10` | |
| livenessProbe.tcpSocket.port | int | `8000` | |
Expand All @@ -137,19 +120,16 @@ helm-docs --dry-run
| resources.limits.memory | string | `"16Gi"` | |
| resources.requests.cpu | string | `"4"` | |
| resources.requests.memory | string | `"8Gi"` | |
| secrets.langkitApiSecret | object | `{"name":"langkit-api-secret"}` | from-literal=CONTAINER_PASSWORD=<llangkit-api-secret> |
| secrets.whylabsApiKey | object | `{"name":"whylabs-api-key"}` | from-literal=WHYLABS_API_KEY=<whylabs-api-key> |
| secrets.langkitApiSecret.name | string | `"langkit-api-secret"` | Name of the secret that stores the WhyLabs LangKit API Secret |
| secrets.whylabsApiKey.name | string | `"whylabs-api-key"` | Name of the secret that stores the WhyLabs API Key |
| service.port | int | `80` | |
| service.type | string | `"ClusterIP"` | |
| serviceAccount.annotations | object | `{}` | |
| serviceAccount.automount | bool | `true` | |
| serviceAccount.create | bool | `true` | |
| serviceAccount.name | string | `""` | |
| tolerations | list | `[]` | |
| volumes[0].emptyDir | object | `{}` | |
| volumes[0].name | string | `"temp-dir"` | |
| volumes[1].emptyDir | object | `{}` | |
| volumes[1].name | string | `"home"` | |
| volumes | list | `[{"emptyDir":{},"name":"temp-dir"},{"emptyDir":{},"name":"home"}]` | Volumes to create |

----------------------------------------------
Autogenerated from chart metadata using [helm-docs v1.12.0](https://github.com/norwoodj/helm-docs/releases/v1.12.0)
10 changes: 7 additions & 3 deletions charts/langkit/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ ingress:
image:
repository: whylabs/whylogs
pullPolicy: Always
tag: py-llm-1.0.2.dev4
tag: py-llm-1.0.2.dev6
containerPort: 8000

imagePullSecrets: []
Expand All @@ -56,10 +56,14 @@ containers:
# runAsUser: 1000
# containers.env -- (list) Environment variables for the containers
env:
- name: TRANSFORMERS_OFFLINE
value: 1
- name: HF_DATASETS_OFFLINE
value: 1
- name: HOME
value: "/home"
value: /home
- name: HF_HOME
value: "/home/.cache/hf_home"
value: /home/.cache/hf_home
# containers.volumeMounts -- (list) Volume mounts for containers
volumeMounts:
- name: temp-dir
Expand Down
Loading