Skip to content

Commit

Permalink
Configurable helm templates
Browse files Browse the repository at this point in the history
Signed-off-by: Kai Zimmermann <kai.zimmermann@microsoft.com>
  • Loading branch information
kaizimmerm authored and thjaeckle committed Mar 8, 2019
1 parent ce10999 commit 3e9e23e
Show file tree
Hide file tree
Showing 7 changed files with 492 additions and 284 deletions.
3 changes: 2 additions & 1 deletion deployment/helm/eclipse-ditto/Chart.yaml
Expand Up @@ -2,4 +2,5 @@ apiVersion: v1
appVersion: "0.8.0"
description: A basic helm chart for Eclipse Ditto and K8s
name: eclipse-ditto
version: 0.8.0
fullname: org.eclipse.ditto
version: 0.8.0
10 changes: 9 additions & 1 deletion deployment/helm/eclipse-ditto/templates/NOTES.txt
@@ -1,4 +1,12 @@
1. Access ditto in your browser by running one of these commands:

{{- if contains "NodePort" .Values.service.type }}
- minikube service ditto (browser is automatically redirected)
OR
- kubectl port-forward svc/ditto 8080 (localhost:8080)
- kubectl port-forward svc/ditto 8080 --namespace {{ .Release.Namespace }} (localhost:8080)
{{- else if contains "LoadBalancer" .Values.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 -w ditto --namespace {{ .Release.Namespace }}'
export SERVICE_IP=$(kubectl get svc --namespace {{ .Release.Namespace }} ditto -o jsonpath='{.status.loadBalancer.ingress[0].ip}')
echo http://$SERVICE_IP:{{ .Values.service.port }}
{{- end }}

0 comments on commit 3e9e23e

Please sign in to comment.