Skip to content

Commit

Permalink
Merge pull request #106 from gergaly/main
Browse files Browse the repository at this point in the history
Add support for loadBalancerIP
  • Loading branch information
jdetroyes authored Sep 30, 2024
2 parents b2fbc65 + 8097a55 commit e1751d6
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,7 @@ ingress:
| service.nodePort | int | `31434` | Service node port when service type is 'NodePort' |
| service.port | int | `11434` | Service port |
| service.type | string | `"ClusterIP"` | Service type |
| service.loadBalancerIP | string | `""` | Loadbalancer IP address |
| serviceAccount.annotations | object | `{}` | Annotations to add to the service account |
| serviceAccount.automount | bool | `true` | Automatically mount a ServiceAccount's API credentials? |
| serviceAccount.create | bool | `true` | Specifies whether a service account should be created |
Expand Down
3 changes: 3 additions & 0 deletions templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ spec:
{{- if contains "NodePort" .Values.service.type }}
nodePort: {{ .Values.service.nodePort }}
{{- end }}
{{- if .Values.service.loadBalancerIP }}
loadBalancerIP: {{ .Values.service.loadBalancerIP | quote }}
{{- end }}
selector:
{{- include "ollama.selectorLabels" . | nindent 4 }}
{{- end }}
3 changes: 3 additions & 0 deletions values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,9 @@ service:
# -- Service node port when service type is 'NodePort'
nodePort: 31434

# -- Load Balancer IP address
loadBalancerIP:

# -- Annotations to add to the service
annotations: {}

Expand Down

0 comments on commit e1751d6

Please sign in to comment.