diff --git a/charts/vespa/Chart.yaml b/charts/vespa/Chart.yaml index 5021627..d3b9673 100644 --- a/charts/vespa/Chart.yaml +++ b/charts/vespa/Chart.yaml @@ -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 diff --git a/charts/vespa/templates/service.yaml b/charts/vespa/templates/service.yaml index 969bd8c..d37f836 100644 --- a/charts/vespa/templates/service.yaml +++ b/charts/vespa/templates/service.yaml @@ -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 }} diff --git a/charts/vespa/templates/statefulset.yaml b/charts/vespa/templates/statefulset.yaml index 901ad45..10d17ac 100644 --- a/charts/vespa/templates/statefulset.yaml +++ b/charts/vespa/templates/statefulset.yaml @@ -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 }} diff --git a/charts/vespa/values.yaml b/charts/vespa/values.yaml index 22a8de4..701041c 100644 --- a/charts/vespa/values.yaml +++ b/charts/vespa/values.yaml @@ -56,8 +56,7 @@ labels: app: vespa service: - name: document-index-service - type: LoadBalancer + name: vespa-service ports: - name: vespa-tenant-port port: 19071