Skip to content

Commit

Permalink
port forward to proxy, not cryostat directly
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewazores committed Oct 16, 2024
1 parent e0aa960 commit 3aded1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion charts/cryostat/templates/NOTES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
kubectl -n {{ .Release.Namespace }} wait --for=condition=available --timeout=60s deploy/{{ include "cryostat.deploymentName" . }}

export POD_NAME=$(kubectl get pods -n {{ .Release.Namespace }} -l "app.kubernetes.io/name={{ include "cryostat.name" . }},app.kubernetes.io/instance={{ .Release.Name }},app.kubernetes.io/component=cryostat" --sort-by=.metadata.creationTimestamp -o jsonpath="{.items[-1:].metadata.name}")
export CONTAINER_PORT=$(kubectl get pod -n {{ .Release.Namespace }} $POD_NAME -o jsonpath='{.spec.containers[?(@.name=="cryostat")].ports[0].containerPort}')
export CONTAINER_PORT=$(kubectl get pod -n {{ .Release.Namespace }} $POD_NAME -o jsonpath='{.spec.containers[?(@.name=="{{ include "cryostat.fullname" . }}-authproxy")].ports[0].containerPort}')
kubectl -n {{ .Release.Namespace }} port-forward $POD_NAME "8080:$CONTAINER_PORT"
```
{{- $listNum = add1 $listNum }}
Expand Down

0 comments on commit 3aded1c

Please sign in to comment.