diff --git a/README.md b/README.md index 6dc3e5a..9fe04ac 100644 --- a/README.md +++ b/README.md @@ -156,6 +156,7 @@ ollama: | autoscaling.maxReplicas | int | `100` | Number of maximum replicas | | autoscaling.minReplicas | int | `1` | Number of minimum replicas | | autoscaling.targetCPUUtilizationPercentage | int | `80` | CPU usage to target replica | +| deployment.labels | object | `{}` | Labels to add to the deployment | | extraArgs | list | `[]` | Additional arguments on the output Deployment definition. | | extraEnv | list | `[]` | Additional environments variables on the output Deployment definition. For extra OLLAMA env, please refer to https://github.com/ollama/ollama/blob/main/envconfig/config.go | | extraEnvFrom | list | `[]` | Additionl environment variables from external sources (like ConfigMap) | diff --git a/templates/deployment.yaml b/templates/deployment.yaml index 5aaf977..356b497 100644 --- a/templates/deployment.yaml +++ b/templates/deployment.yaml @@ -7,6 +7,9 @@ metadata: namespace: {{ include "ollama.namespace" . }} labels: {{- include "ollama.labels" . | nindent 4 }} + {{- with .Values.deployment.labels }} + {{- toYaml . | nindent 4 }} + {{- end }} spec: {{- if not .Values.autoscaling.enabled }} replicas: {{ .Values.replicaCount }} diff --git a/values.yaml b/values.yaml index e3c77a4..d66f626 100644 --- a/values.yaml +++ b/values.yaml @@ -165,6 +165,12 @@ service: # -- Labels to add to the service labels: {} +# Configure Deployment +deployment: + + # -- Labels to add to the deployment + labels: { } + # Configure the ingress resource that allows you to access the ingress: # -- Enable ingress controller resource