Skip to content

Commit

Permalink
feat: allow to add labels to deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
Vincent MIJOULE committed Feb 25, 2025
1 parent 6df4792 commit 2f59bed
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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) |
Expand Down
3 changes: 3 additions & 0 deletions templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
6 changes: 6 additions & 0 deletions values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,12 @@ service:
# -- Labels to add to the service
labels: {}

# Configure Deployment
deployment:

# -- Labels to add to the deployment
labels: { }

Check failure on line 172 in values.yaml

View workflow job for this annotation

GitHub Actions / helm-lint

172:12 [braces] too many spaces inside empty braces

# Configure the ingress resource that allows you to access the
ingress:
# -- Enable ingress controller resource
Expand Down

0 comments on commit 2f59bed

Please sign in to comment.