Skip to content
This repository has been archived by the owner on Jan 24, 2023. It is now read-only.

Helm Chart: Add NOTES.txt template & update chart.yaml #4557

Merged
merged 6 commits into from
Sep 15, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion deploy/kubernetes/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -296,5 +296,5 @@ printf "${RESET}"
echo
echo "To deploy using Helm, execute the following:"
echo
echo " helm install helm-chart --namespace console --name my-console"
echo " helm install my-console ./helm-chart --namespace console"
echo
13 changes: 11 additions & 2 deletions deploy/kubernetes/console/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,17 @@
apiVersion: v1
description: A Helm chart for deploying Stratos UI Console
description: A Helm chart for deploying Stratos
name: console
version: 0.1.0
appVersion: 0.1.0
sources:
- https://github.com/cloudfoundry/stratos
icon: https://raw.githubusercontent.com/cloudfoundry/stratos/master/deploy/kubernetes/console/icon.png
icon: https://raw.githubusercontent.com/cloudfoundry/stratos/master/deploy/kubernetes/console/icon.png
home: https://stratos.app
maintainers:
- name: Stratos Maintainers
email: [email protected]
keywords:
- Stratos
- "Cloud Foundry"
- Kubernetes
- Helm
31 changes: 31 additions & 0 deletions deploy/kubernetes/console/templates/NOTES.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{{- if .Values.console.techPreview }}
Tech Preview is enabled, extra features will be shown.
{{- end}}

To access Stratos:
{{- $ingress := .Values.console.ingress | default dict }}
{{- if $ingress.enabled }}
From outside the cluster, the server URL is: http://{{ .Values.console.ingress.host }}
{{- 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 console-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 console-ui-ext'

export SERVICE_IP=$(kubectl get svc --namespace {{ .Release.Namespace }} console-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=stratos-0,component=ui" -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 }}