Skip to content

Commit

Permalink
Improve notes to access deployed services (helm#7033)
Browse files Browse the repository at this point in the history
  • Loading branch information
juan131 authored and k8s-ci-robot committed Aug 7, 2018
1 parent 60fdbcb commit f5a541e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion stable/redmine/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: redmine
version: 4.0.2
version: 4.0.3
appVersion: 3.4.6
description: A flexible project management web application.
keywords:
Expand Down
13 changes: 7 additions & 6 deletions stable/redmine/templates/NOTES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

export NODE_PORT=$(kubectl get --namespace {{ .Release.Namespace }} -o jsonpath="{.spec.ports[0].nodePort}" services {{ template "redmine.fullname" . }})
export NODE_IP=$(kubectl get nodes --namespace {{ .Release.Namespace }} -o jsonpath="{.items[0].status.addresses[0].address}")
echo http://$NODE_IP:$NODE_PORT/
echo "Redmine URL: http://$NODE_IP:$NODE_PORT/"

{{- else if contains "LoadBalancer" .Values.serviceType }}

Expand All @@ -13,16 +13,17 @@


export SERVICE_IP=$(kubectl get svc --namespace {{ .Release.Namespace }} {{ template "redmine.fullname" . }} --template "{{ "{{ range (index .status.loadBalancer.ingress 0) }}{{ . }}{{ end }}" }}")
echo http://$SERVICE_IP/
echo "Redmine URL: http://$SERVICE_IP/"

{{- else if .Values.ingress.enabled }}
http://{{ .Values.ingress.hostname }}/

echo "Redmine URL: http://{{ .Values.ingress.hostname }}/"

{{- else if contains "ClusterIP" .Values.serviceType }}

export POD_NAME=$(kubectl get pods --namespace {{ .Release.Namespace }} -l "app={{ template "redmine.fullname" . }}" -o jsonpath="{.items[0].metadata.name}")
echo http://127.0.0.1:3000/
kubectl port-forward $POD_NAME 3000:3000
echo "Redmine URL: http://127.0.0.1:3000/"
kubectl port-forward --namespace {{ .Release.Namespace }} svc/{{ template "redmine.fullname" . }} 3000:3000

{{- end }}

2. Login with the following credentials
Expand Down

0 comments on commit f5a541e

Please sign in to comment.