mirror of
https://github.com/bitnami/charts.git
synced 2026-02-28 07:28:01 +08:00
[bitnami/logstash] fix: add namespace under the kubectl port-forward logstash chart (#18990)
Signed-off-by: Calvine Otieno <nyarangaotieno@gmail.com>
This commit is contained in:
@@ -30,4 +30,4 @@ maintainers:
|
||||
name: logstash
|
||||
sources:
|
||||
- https://github.com/bitnami/charts/tree/main/bitnami/logstash
|
||||
version: 5.5.0
|
||||
version: 5.5.1
|
||||
|
||||
@@ -53,7 +53,7 @@ To access Logstash from outside the cluster execute the following commands:
|
||||
{{- else if contains "ClusterIP" .Values.service.type }}
|
||||
|
||||
export SERVICE_PORT=$(kubectl get --namespace {{ .Release.Namespace }} -o jsonpath="{.spec.ports[0].port}" services {{ include "common.names.fullname" . }})
|
||||
kubectl port-forward svc/{{ include "common.names.fullname" . }} ${SERVICE_PORT}:${SERVICE_PORT} &
|
||||
kubectl --namespace {{ .Release.Namespace }} port-forward svc/{{ include "common.names.fullname" . }} ${SERVICE_PORT}:${SERVICE_PORT} &
|
||||
echo "http://127.0.0.1:${SERVICE_PORT}"
|
||||
|
||||
{{- end }}
|
||||
|
||||
Reference in New Issue
Block a user