diff --git a/deploy/charts/litellm-helm/README.md b/deploy/charts/litellm-helm/README.md index 2fa856843f3..f9fbef09073 100644 --- a/deploy/charts/litellm-helm/README.md +++ b/deploy/charts/litellm-helm/README.md @@ -91,6 +91,7 @@ type: Opaque ``` ### Database Settings +<<<<<<< HEAD | Name | Description | Value | | ------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------ | @@ -98,6 +99,7 @@ type: Opaque | `db.endpoint` | If `db.useExisting` is `true`, this is the IP, Hostname or Service Name of the Postgres server to connect to. | `localhost` | | `db.database` | If `db.useExisting` is `true`, the name of the existing database to connect to. | `litellm` | | `db.url` | If `db.useExisting` is `true`, the connection url of the existing database to connect to can be overwritten with this value. | `postgresql://$(DATABASE_USERNAME):$(DATABASE_PASSWORD)@$(DATABASE_HOST)/$(DATABASE_NAME)` | +| `db.secret.enabled` | If `db.secretenabled` is `true`, a Kubernetes Secret that contains credentials will be created. | `true` | | `db.secret.name` | If `db.useExisting` is `true`, the name of the Kubernetes Secret that contains credentials. | `postgres` | | `db.secret.usernameKey` | If `db.useExisting` is `true`, the name of the key within the Kubernetes Secret that holds the username for authenticating with the Postgres instance. | `username` | | `db.secret.passwordKey` | If `db.useExisting` is `true`, the name of the key within the Kubernetes Secret that holds the password associates with the above user. | `password` | diff --git a/deploy/charts/litellm-helm/templates/secret-dbcredentials.yaml b/deploy/charts/litellm-helm/templates/secret-dbcredentials.yaml index 8851f5802f2..7eba8363922 100644 --- a/deploy/charts/litellm-helm/templates/secret-dbcredentials.yaml +++ b/deploy/charts/litellm-helm/templates/secret-dbcredentials.yaml @@ -1,4 +1,4 @@ -{{- if .Values.db.deployStandalone -}} +{{- if or .Values.db.deployStandalone .Values.db.secret.enabled -}} apiVersion: v1 kind: Secret metadata: @@ -9,4 +9,4 @@ data: username: {{ .Values.postgresql.auth.username | default "litellm" | b64enc }} password: {{ .Values.postgresql.auth.password | default "litellm" | b64enc }} type: Opaque -{{- end -}} \ No newline at end of file +{{- end -}} diff --git a/deploy/charts/litellm-helm/values.yaml b/deploy/charts/litellm-helm/values.yaml index b75ce640370..8e70d2175e8 100644 --- a/deploy/charts/litellm-helm/values.yaml +++ b/deploy/charts/litellm-helm/values.yaml @@ -218,6 +218,7 @@ db: database: litellm url: postgresql://$(DATABASE_USERNAME):$(DATABASE_PASSWORD)@$(DATABASE_HOST)/$(DATABASE_NAME) secret: + enabled: true name: postgres usernameKey: username passwordKey: password