forked from phoenix/litellm-mirror
Update litellm helm envconfigmap (#5872)
* Added the possibility to use ConfigMapRef for env values. * bumped aapVersion to 1.46.6 and chartVersion to 0.3.0 --------- Co-authored-by: Peter Laß <peter.lass@maibornwolff.de>
This commit is contained in:
parent
057bef6561
commit
e8066f13cb
4 changed files with 44 additions and 3 deletions
|
@ -18,13 +18,13 @@ type: application
|
||||||
# This is the chart version. This version number should be incremented each time you make changes
|
# 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.
|
# to the chart and its templates, including the app version.
|
||||||
# Versions are expected to follow Semantic Versioning (https://semver.org/)
|
# Versions are expected to follow Semantic Versioning (https://semver.org/)
|
||||||
version: 0.2.3
|
version: 0.3.0
|
||||||
|
|
||||||
# This is the version number of the application being deployed. This version number should be
|
# 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
|
# 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.
|
# follow Semantic Versioning. They should reflect the version the application is using.
|
||||||
# It is recommended to use it with quotes.
|
# It is recommended to use it with quotes.
|
||||||
appVersion: v1.43.18
|
appVersion: v1.46.6
|
||||||
|
|
||||||
dependencies:
|
dependencies:
|
||||||
- name: "postgresql"
|
- name: "postgresql"
|
||||||
|
|
|
@ -24,6 +24,7 @@ If `db.useStackgresOperator` is used (not yet implemented):
|
||||||
| `replicaCount` | The number of LiteLLM Proxy pods to be deployed | `1` |
|
| `replicaCount` | The number of LiteLLM Proxy pods to be deployed | `1` |
|
||||||
| `masterkey` | The Master API Key for LiteLLM. If not specified, a random key is generated. | N/A |
|
| `masterkey` | The Master API Key for LiteLLM. If not specified, a random key is generated. | N/A |
|
||||||
| `environmentSecrets` | An optional array of Secret object names. The keys and values in these secrets will be presented to the LiteLLM proxy pod as environment variables. See below for an example Secret object. | `[]` |
|
| `environmentSecrets` | An optional array of Secret object names. The keys and values in these secrets will be presented to the LiteLLM proxy pod as environment variables. See below for an example Secret object. | `[]` |
|
||||||
|
| `environmentConfigMaps` | An optional array of ConfigMap object names. The keys and values in these configmaps will be presented to the LiteLLM proxy pod as environment variables. See below for an example Secret object. | `[]` |
|
||||||
| `image.repository` | LiteLLM Proxy image repository | `ghcr.io/berriai/litellm` |
|
| `image.repository` | LiteLLM Proxy image repository | `ghcr.io/berriai/litellm` |
|
||||||
| `image.pullPolicy` | LiteLLM Proxy image pull policy | `IfNotPresent` |
|
| `image.pullPolicy` | LiteLLM Proxy image pull policy | `IfNotPresent` |
|
||||||
| `image.tag` | Overrides the image tag whose default the latest version of LiteLLM at the time this chart was published. | `""` |
|
| `image.tag` | Overrides the image tag whose default the latest version of LiteLLM at the time this chart was published. | `""` |
|
||||||
|
@ -77,6 +78,36 @@ data:
|
||||||
type: Opaque
|
type: Opaque
|
||||||
```
|
```
|
||||||
|
|
||||||
|
#### Examples for `environmentSecrets` and `environemntConfigMaps`
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
# Use config map for not-secret configuration data
|
||||||
|
apiVersion: v1
|
||||||
|
kind: ConfigMap
|
||||||
|
metadata:
|
||||||
|
name: litellm-env-configmap
|
||||||
|
data:
|
||||||
|
SOME_KEY: someValue
|
||||||
|
ANOTHER_KEY: anotherValue
|
||||||
|
```
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
# Use secrets for things which are actually secret like API keys, credentials, etc
|
||||||
|
# Base64 encode the values stored in a Kubernetes Secret: $ pbpaste | base64 | pbcopy
|
||||||
|
# The --decode flag is convenient: $ pbpaste | base64 --decode
|
||||||
|
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Secret
|
||||||
|
metadata:
|
||||||
|
name: litellm-env-secret
|
||||||
|
type: Opaque
|
||||||
|
data:
|
||||||
|
SOME_PASSWORD: cDZbUGVXeU5e0ZW # base64 encoded
|
||||||
|
ANOTHER_PASSWORD: AAZbUGVXeU5e0ZB # base64 encoded
|
||||||
|
```
|
||||||
|
|
||||||
|
Source: [GitHub Gist from troyharvey](https://gist.github.com/troyharvey/4506472732157221e04c6b15e3b3f094)
|
||||||
|
|
||||||
## Accessing the Admin UI
|
## Accessing the Admin UI
|
||||||
When browsing to the URL published per the settings in `ingress.*`, you will
|
When browsing to the URL published per the settings in `ingress.*`, you will
|
||||||
be prompted for **Admin Configuration**. The **Proxy Endpoint** is the internal
|
be prompted for **Admin Configuration**. The **Proxy Endpoint** is the internal
|
||||||
|
|
|
@ -161,6 +161,10 @@ spec:
|
||||||
- secretRef:
|
- secretRef:
|
||||||
name: {{ . }}
|
name: {{ . }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
{{- range .Values.environmentConfigMaps }}
|
||||||
|
- configMapRef:
|
||||||
|
name: {{ . }}
|
||||||
|
{{- end }}
|
||||||
args:
|
args:
|
||||||
- --config
|
- --config
|
||||||
- /etc/litellm/config.yaml
|
- /etc/litellm/config.yaml
|
||||||
|
|
|
@ -50,7 +50,13 @@ securityContext: {}
|
||||||
# pod as environment variables. These secrets can then be referenced in the
|
# pod as environment variables. These secrets can then be referenced in the
|
||||||
# configuration file (or "litellm" ConfigMap) with `os.environ/<Env Var Name>`
|
# configuration file (or "litellm" ConfigMap) with `os.environ/<Env Var Name>`
|
||||||
environmentSecrets: []
|
environmentSecrets: []
|
||||||
# - litellm-envsecrets
|
# - litellm-env-secret
|
||||||
|
|
||||||
|
# A list of Kubernetes ConfigMap objects that will be exported to the LiteLLM proxy
|
||||||
|
# pod as environment variables. The ConfigMap kv-pairs can then be referenced in the
|
||||||
|
# configuration file (or "litellm" ConfigMap) with `os.environ/<Env Var Name>`
|
||||||
|
environmentConfigMaps: []
|
||||||
|
# - litellm-env-configmap
|
||||||
|
|
||||||
service:
|
service:
|
||||||
type: ClusterIP
|
type: ClusterIP
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue