Skip to content

Commit

Permalink
allowing for internal only service
Browse files Browse the repository at this point in the history
  • Loading branch information
Shaun Elliott committed Aug 2, 2023
1 parent 2bab163 commit cb0c6b8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions charts/local-ai/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ spec:
selector:
app.kubernetes.io/name: {{ include "local-ai.name" . }}
type: "{{ .Values.service.type }}"
{{- if .Values.service.externalTrafficPolicy }}
externalTrafficPolicy: {{ .Values.service.externalTrafficPolicy }}
{{- end }}
ports:
- protocol: TCP
port: {{ .Values.service.port }}
Expand Down
2 changes: 2 additions & 0 deletions charts/local-ai/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,8 @@ models:

service:
type: ClusterIP
# If deferring to an internal only load balancer
# externalTrafficPolicy: Local
port: 80
annotations: {}
# If using an AWS load balancer, you'll need to override the default 60s load balancer idle timeout
Expand Down

0 comments on commit cb0c6b8

Please sign in to comment.