Skip to content

Commit f32ae58

Browse files
committed
feat: add ipFamilies and ipFamilyPolicy
1 parent 5806c7f commit f32ae58

File tree

4 files changed

+23
-0
lines changed

4 files changed

+23
-0
lines changed

Chart.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ annotations:
1616
links:
1717
- name: Ollama release v0.13.0
1818
url: https://github.com/ollama/ollama/releases/tag/v0.13.0
19+
- kind: added
20+
description: add ipFamilies and ipFamilyPolicy to the service
1921
2022
kubeVersion: "^1.16.0-0"
2123
home: https://ollama.ai/

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -241,6 +241,8 @@ ollama:
241241
| runtimeClassName | string | `""` | Specify runtime class |
242242
| securityContext | object | `{}` | Container Security Context |
243243
| service.annotations | object | `{}` | Annotations to add to the service |
244+
| service.ipFamilies | object | `[]` | The IP families supported by the service |
245+
| service.ipFamilyPolicy | string | `""` | Allows configuring Dual-stack service |
244246
| service.labels | object | `{}` | Labels to add to the service |
245247
| service.loadBalancerIP | string | `nil` | Load Balancer IP address |
246248
| service.nodePort | int | `31434` | Service node port when service type is 'NodePort' |

templates/service.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,11 @@ spec:
3030
selector:
3131
{{- include "ollama.selectorLabels" . | nindent 4 }}
3232
{{- end }}
33+
{{- with .Values.service.ipFamilies }}
34+
ipFamilies:
35+
{{- toYaml . | nindent 4 }}
36+
{{- end }}
37+
{{- with .Values.service.ipFamilyPolicy }}
38+
ipFamilyPolicy: {{ . }}
39+
{{- end }}
40+

values.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,17 @@ service:
186186
# -- Labels to add to the service
187187
labels: {}
188188

189+
# -- IP Families for the service
190+
ipFamilies: []
191+
# - IPv4
192+
# - IPv6
193+
194+
# -- IP Family Policy for the service
195+
ipFamilyPolicy: ""
196+
# SingleStack
197+
# PreferDualStack
198+
# RequireDualStack
199+
189200
# Configure Deployment
190201
deployment:
191202

0 commit comments

Comments
 (0)