Files
HelmChartSammlung/charts/cailbre-web/templates/NOTES.txt
Marko Oldenburg 9e35b1cfad Add Helm chart for calibre-web deployment
This commit introduces a new Helm chart for deploying calibre-web
on Kubernetes. The chart includes essential templates for
deployment, service, ingress, and persistent volume claims, along
with default values configured in a `values.yaml` file.

The addition of the Helm chart enables easier deployment and
management of calibre-web, allowing users to customize settings
like the replica count, image settings, service type, and storage
options through the `values.yaml`. A GitHub Actions workflow
(`build-chart-calibre-web.yml`) is also included to automate the
packaging and uploading of the Helm chart upon updates to the
main branch.

The structure and organization of the templates adhere to Helm
best practices, ensuring compatibility and ease of use. There are no
breaking changes associated with this addition, but users should
review the `values.yaml` for configurable options.
2025-12-09 08:42:24 +01:00

19 lines
1.5 KiB
Plaintext

1. Get the application URL by running these commands:
{{- if .Values.ingress.enabled }}
{{- range $host := .Values.ingress.hosts }}
{{- end }}
{{- else if contains "NodePort" .Values.service.type }}
export NODE_PORT=$(kubectl get --namespace {{ .Release.Namespace }} -o jsonpath="{.spec.ports[0].nodePort}" services {{ include "calibre-web.fullname" . }})
export NODE_IP=$(kubectl get nodes --namespace {{ .Release.Namespace }} -o jsonpath="{.items[0].status.addresses[0].address}")
echo http://$NODE_IP:$NODE_PORT
{{- else if contains "LoadBalancer" .Values.service.type }}
NOTE: It may take a few minutes for the LoadBalancer IP to be available.
You can watch the status of by running 'kubectl get --namespace {{ .Release.Namespace }} svc -w {{ include "calibre-web.fullname" . }}'
export SERVICE_IP=$(kubectl get svc --namespace {{ .Release.Namespace }} {{ include "calibre-web.fullname" . }} --template "{{"{{ range (index .status.loadBalancer.ingress 0) }}{{.}}{{ end }}"}}")
echo http://$SERVICE_IP:{{ .Values.service.port }}
{{- else if contains "ClusterIP" .Values.service.type }}
export POD_NAME=$(kubectl get pods --namespace {{ .Release.Namespace }} -l "app.kubernetes.io/name={{ include "calibre-web.name" . }},app.kubernetes.io/instance={{ .Release.Name }}" -o jsonpath="{.items[0].metadata.name}")
echo "Visit http://127.0.0.1:8080 to use your application"
kubectl --namespace {{ .Release.Namespace }} port-forward $POD_NAME 8080:80
{{- end }}