Skip to content

Commit

Permalink
Merge branch 'fix/pod-labels' of https://github.com/sd109/vespa-helm-…
Browse files Browse the repository at this point in the history
  • Loading branch information
rkuo-danswer committed Nov 6, 2024
2 parents 1dac73b + 9a5e524 commit e187675
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 16 deletions.
4 changes: 2 additions & 2 deletions charts/vespa/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ spec:
targetPort: {{ .targetPort }}
protocol: TCP
name: {{ .name }}
{{- end }}
{{- end }}
selector:
{{- include "vespa.selectorLabels" . | nindent 4 }}
{{- toYaml .Values.podLabels | nindent 4 }}
8 changes: 4 additions & 4 deletions charts/vespa/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ spec:
{{- end }}
selector:
matchLabels:
{{- toYaml .Values.selectorLabels | nindent 6 }}
{{- toYaml .Values.podLabels | nindent 6 }}
template:
metadata:
{{- with .Values.podAnnotations }}
Expand Down Expand Up @@ -52,9 +52,9 @@ spec:
{{- toYaml . | nindent 12 }}
{{- end }}
env:
- name: VESPA_CONFIGSERVERS
- name: VESPA_CONFIGSERVERS
value: vespa-0.vespa.{{ .Release.Namespace }}.svc.cluster.local

volumeClaimTemplates:
{{- range .Values.volumeClaimTemplates }}
- metadata:
Expand All @@ -64,4 +64,4 @@ spec:
resources:
requests:
storage: {{ .spec.resources.requests.storage }}
{{- end }}
{{- end }}
16 changes: 6 additions & 10 deletions charts/vespa/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,17 +30,13 @@ podAnnotations: {}
podLabels:
app: vespa

selectorLabels:
app: vespa


statefulSet:
name: vespa
ports:
- containerPort: 19071
- containerPort: 8081
podSecurityContext:

podSecurityContext:
# fsGroup: 2000

readinessProbe:
Expand All @@ -49,7 +45,7 @@ readinessProbe:
port: 19071
scheme: HTTP

securityContext:
securityContext:
# capabilities:
# drop:
# - ALL
Expand Down Expand Up @@ -87,7 +83,7 @@ ingress:
# hosts:
# - chart-example.local

resources:
resources:
requests:
memory: "1000Mi"
cpu: "500m"
Expand All @@ -110,7 +106,7 @@ volumes: []
# optional: false

# Additional volumeMounts on the output Deployment definition.
volumeMounts:
volumeMounts:
- name: vespa-storage
mountPath: /opt/vespa/var/

Expand All @@ -132,4 +128,4 @@ volumeClaimTemplates:
- ReadWriteOnce
resources:
requests:
storage: 1Gi
storage: 1Gi

0 comments on commit e187675

Please sign in to comment.