mirror of
https://github.com/sourcebot-dev/sourcebot.git
synced 2025-12-11 20:05:25 +00:00
* feat: add helm chart Signed-off-by: Andre Nogueira <andre.nogueira@mollie.com> * feat: add sts support to use internal DB and improve values docs Signed-off-by: Andre Nogueira <andre.nogueira@mollie.com> * fix: include postgresql extra dependency Signed-off-by: Andre Nogueira <andre.nogueira@mollie.com> * fix: remove autoscaler Signed-off-by: Andre Nogueira <andre.nogueira@mollie.com> * fix: remove sts Signed-off-by: Andre Nogueira <andre.nogueira@mollie.com> * fix: add more suggestive env var example Signed-off-by: Andre Nogueira <andre.nogueira@mollie.com> * fix: add chart dependency lock Signed-off-by: Andre Nogueira <andre.nogueira@mollie.com> * fix: add host infer to the chart docs Signed-off-by: Andre Nogueira <andre.nogueira@mollie.com> --------- Signed-off-by: Andre Nogueira <andre.nogueira@mollie.com>
22 lines
1.7 KiB
Text
22 lines
1.7 KiB
Text
1. Get the application URL by running these commands:
|
|
{{- if $.Values.ingress.enabled }}
|
|
{{- range $host := $.Values.ingress.hosts }}
|
|
{{- range .paths }}
|
|
http{{ if $.Values.ingress.tls }}s{{ end }}://{{ $host.host }}{{ .path }}
|
|
{{- end }}
|
|
{{- end }}
|
|
{{- else if contains "NodePort" $.Values.service.type }}
|
|
export NODE_PORT=$(kubectl get --namespace {{ $.Release.Namespace }} -o jsonpath="{.spec.ports[0].nodePort}" services {{ include "sourcebot.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 its status by running 'kubectl get --namespace {{ $.Release.Namespace }} svc -w {{ include "sourcebot.fullname" $ }}'
|
|
export SERVICE_IP=$(kubectl get svc --namespace {{ $.Release.Namespace }} {{ include "sourcebot.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 "sourcebot.name" $ }},app.kubernetes.io/instance={{ $.Release.Name }}" -o jsonpath="{.items[0].metadata.name}")
|
|
export CONTAINER_PORT=$(kubectl get pod --namespace {{ $.Release.Namespace }} $POD_NAME -o jsonpath="{.spec.containers[0].ports[0].containerPort}")
|
|
echo "Visit http://127.0.0.1:3000 to use Sourcebot after forwarding"
|
|
kubectl --namespace {{ $.Release.Namespace }} port-forward $POD_NAME 3000:$CONTAINER_PORT
|
|
{{- end }}
|