Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Helm chart update for headless service #140

Closed
WhatshallIbreaktoday opened this issue Sep 29, 2023 · 1 comment
Closed

Helm chart update for headless service #140

WhatshallIbreaktoday opened this issue Sep 29, 2023 · 1 comment

Comments

@WhatshallIbreaktoday
Copy link

Hello Bokysan,

First thanks you for the awsome work on this project.

issue is regarding deployment on kubernetes, and compliance with the kubernetes documentation regarding statefulset.

seems a headless service is required now Documentation

Manage to deploy by adding a new service-headless.yaml file :

{{- $chart := "mail" -}} {{- $fullName := include (print $chart ".fullname") . -}} {{- $labels := include (print $chart ".labels") . -}} {{- $selectorLabels := include (print $chart ".selectorLabels") . -}} apiVersion: v1 kind: Service metadata: name: {{ print $fullName "-headless" | quote }} namespace: {{ .Release.Namespace | quote }} labels: {{- $labels | nindent 4 }} {{- with .Values.service.labels }}{{ toYaml . | nindent 4 }}{{ end }} annotations: {{- with .Values.service.annotations }}{{ toYaml . | nindent 4 }}{{ end }} spec: type: ClusterIP clusterIP: None ports: - port: {{ .Values.service.port }} targetPort: smtp protocol: TCP name: smtp {{ if eq .Values.service.type "NodePort" }}nodePort: {{ .Values.service.nodePort }}{{ end }} selector: {{- $selectorLabels | nindent 4 }}

Best regards,

@bokysan
Copy link
Owner

bokysan commented Sep 29, 2023

I'm preparing to release a new version soon, I will add this to the list. Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants