Skip to content

Commit

Permalink
try matching service names and headless service
Browse files Browse the repository at this point in the history
  • Loading branch information
rkuo-danswer committed Nov 6, 2024
1 parent 30577f8 commit fce5aa4
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion charts/vespa/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.2.8
version: 0.2.9

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down
5 changes: 3 additions & 2 deletions charts/vespa/templates/service.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
# a headless service that allows individual access to each pod in the StatefulSet
apiVersion: v1
kind: Service
metadata:
name: {{ .Values.service.name }}
name: {{ .Values.service.name }} # This should match statefulset.yaml/spec/serviceName
labels:
{{- toYaml .Values.labels | nindent 4 }}
spec:
type: {{ .Values.service.type }}
clusterIP: None
ports:
{{- range .Values.service.ports }}
- port: {{ .port }}
Expand Down
4 changes: 2 additions & 2 deletions charts/vespa/templates/statefulset.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: {{ .Release.Name }}-vespa
name: da-vespa
labels:
{{- toYaml .Values.labels | nindent 4 }}
spec:
serviceName: vespa
serviceName: {{ .Values.service.name }} # This should match service.yaml/metadata/name
{{- if not .Values.autoscaling.enabled }}
replicas: {{ .Values.replicaCount }}
{{- end }}
Expand Down
3 changes: 1 addition & 2 deletions charts/vespa/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,7 @@ labels:
app: vespa

service:
name: document-index-service
type: LoadBalancer
name: vespa-service
ports:
- name: vespa-tenant-port
port: 19071
Expand Down

0 comments on commit fce5aa4

Please sign in to comment.