cloudfoundry-incubator/stratos

View on GitHub
deploy/kubernetes/console/templates/NOTES.txt

Summary

Maintainability
Test Coverage
{{- if .Values.console.techPreview }}
Tech Preview is enabled, extra features will be shown.
{{- end}}

To access Stratos:
{{- $ingress := .Values.console.service.ingress | default dict }}
{{- if $ingress.enabled }}
{{- if .Values.console.service.ingress.host }}
From outside the cluster, the server URL is: https://{{ .Values.console.service.ingress.host }}
{{- else }}
NOTE: It may take a few minutes for the Ingress IP to become available.
You can watch the status of by running 'kubectl get ingress --namespace {{ .Release.Namespace }} -w {{ .Release.Name }}-ingress'

Get the URL by running these commands in the same shell:
  export INGRESS_ADDR=$(kubectl get ingress --namespace {{ .Release.Namespace }} --field-selector 'metadata.name={{ .Release.Name }}-ingress' -o jsonpath='{.items[0].status.loadBalancer.ingress[0].hostname}')
  echo https://$INGRESS_ADDR
{{- end }}
{{- else }}
Get the URL by running these commands in the same shell:
{{- if contains "NodePort" .Values.console.service.type }}
  export NODE_PORT=$(kubectl get --namespace {{ .Release.Namespace }} -o jsonpath="{.spec.ports[0].nodePort}" services {{ .Release.Name }}-ui-ext)
  export NODE_IP=$(kubectl get nodes --namespace {{ .Release.Namespace }} -o jsonpath="{.items[0].status.addresses[0].address}")
  echo https://$NODE_IP:$NODE_PORT
{{- else if contains "LoadBalancer" .Values.console.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 svc --namespace {{ .Release.Namespace }} -w {{ .Release.Name }}-ui-ext'

  export SERVICE_IP=$(kubectl get svc --namespace {{ .Release.Namespace }} {{ .Release.Name }}-ui-ext -o jsonpath='{.status.loadBalancer.ingress[0].ip}')
  echo http://$SERVICE_IP:{{ .Values.console.service.servicePort }}
{{- else if contains "ClusterIP"  .Values.console.service.type }}
  export POD_NAME=$(kubectl get pods --namespace {{ .Release.Namespace }} -l "app={{ .Release.Name }},component=stratos" -o jsonpath="{.items[0].metadata.name}")
  kubectl --namespace {{ .Release.Namespace }} port-forward $POD_NAME 443
{{- end }}
{{- end }}

To learn more about the release, try:
  $ helm status {{ .Release.Name }} -n {{ .Release.Namespace }}
  $ helm get values {{ .Release.Name }} -n {{ .Release.Namespace }}
  $ kubectl get services -n {{ .Release.Namespace }}
  $ kubectl get pods -n {{ .Release.Namespace }}