Skip to content

The Unified and Autonomous Development Platform

2.2 KB
Raw Blame
CHART NAME: {{ .Chart.Name }}
CHART VERSION: {{ .Chart.Version }}
APP VERSION: {{ .Chart.AppVersion }}

{{- if and (not .Values.command) (not .Values.args) (eq .Values.image.name "1dev/server") }}
{{- $sshEnabled := default false ((.Values.ssh | default dict).enabled) }}

** Please be patient while the chart is being deployed **

{{- if .Values.ingress.enabled }}
{{- $controller := include "ods.ingressController" . }}
{{- $hosts := concat (list .Values.ingress.host) (.Values.ingress.additionalHosts | default (list)) }}

You can access the server at:

{{- if .Values.ingress.tls.enabled }}
   https://{{ .Values.ingress.host }}
{{- else }}
   http://{{ .Values.ingress.host }}
{{- end }}
Ingress controller: {{ $controller }}

   host names: {{ join ", " $hosts }}
   ssh: {{ ternary "enabled" "disabled" $sshEnabled }}
{{- if eq $controller "traefik" }}

Traffic is routed by Traefik:

   http entry point: {{ ternary "websecure" "web" .Values.ingress.tls.enabled }}
{{- if $sshEnabled }}
   ssh entry point: gitssh

Make sure entry point gitssh is declared in your Traefik installation, and update
SSH root url as ssh://{{ .Values.ingress.host }} in menu Administration/System Setting
{{- end }}
{{- end }}

{{- else }}

Get the server URL by running:

{{- if contains "ClusterIP"  .Values.service.type }}

  kubectl port-forward --namespace {{ .Release.Namespace }} svc/{{ include "ods.fullname" . }} 6610:{{ default 80 .Values.service.ports.http }} &

  URL: http://127.0.0.1:6610

{{- else if contains "LoadBalancer" .Values.service.type }}

  export SERVICE_IP=$(kubectl get svc --namespace {{ .Release.Namespace }} {{ include "ods.fullname" . }} --template "{{ "{{ if (index .status.loadBalancer.ingress 0).ip }}{{ (index .status.loadBalancer.ingress 0).ip }}{{ else }}{{ index .status.loadBalancer.ingress 0 }}{{ end }}" }}")

{{- if .Values.service.ports.http }}
  echo "URL: http://$SERVICE_IP:{{ .Values.service.ports.http }}"
{{- else }}
  echo "URL: http://$SERVICE_IP"
{{- end }}

** Please ensure an external IP is associated to the {{ .Release.Namespace }} service before proceeding **
** Watch the status using: kubectl get svc --namespace {{ .Release.Namespace }} -w {{ include "ods.fullname" . }} **

{{- end }}
{{- end }}
{{- end }}