35 lines
2.0 KiB
Plaintext
35 lines
2.0 KiB
Plaintext
|
|
** Please be patient while the chart is being deployed **
|
|
|
|
Your controller can be accessed through the following DNS name from within your cluster:
|
|
|
|
http://{{ include "invoiceninja.nginx.fullname" . }}.{{ .Release.Namespace }}.svc
|
|
|
|
To access your controller from outside the cluster follow the steps below:
|
|
|
|
{{- if or .Values.nginx.ingress.enabled }}
|
|
|
|
Externally through the following DNS name:
|
|
|
|
http://{{ .Values.nginx.ingress.hostname }}
|
|
|
|
-- OR --
|
|
{{ end }}
|
|
|
|
{{- if contains "NodePort" .Values.nginx.service.type }}
|
|
export NODE_PORT=$(kubectl get --namespace {{ .Release.Namespace }} -o jsonpath="{.spec.ports[0].nodePort}" services {{ include "invoiceninja.nginx.fullname" . }})
|
|
export NODE_IP=$(kubectl get nodes --namespace {{ .Release.Namespace }} -o jsonpath="{.items[0].status.addresses[0].address}")
|
|
echo http://$NODE_IP:$NODE_PORT
|
|
{{- else if contains "LoadBalancer" .Values.nginx.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 --namespace {{ .Release.Namespace }} svc -w {{ include "invoiceninja.nginx.fullname" . }}'
|
|
export SERVICE_IP=$(kubectl get svc --namespace {{ .Release.Namespace }} {{ include "invoiceninja.nginx.fullname" . }} --template "{{"{{ range (index .status.loadBalancer.ingress 0) }}{{.}}{{ end }}"}}")
|
|
echo http://$SERVICE_IP:{{ .Values.service.port }}
|
|
{{- else if contains "ClusterIP" .Values.nginx.service.type }}
|
|
export SVC_NAME=$(kubectl get svc --namespace {{ .Release.Namespace }} -l "app.kubernetes.io/name=nginx,app.kubernetes.io/instance={{ .Release.Name }}" -o jsonpath="{.items[0].metadata.name}")
|
|
export SVC_PORT=$(kubectl get svc --namespace {{ .Release.Namespace }} $SVC_NAME -o jsonpath="{.spec.ports[0].port}")
|
|
echo "Add the line '127.0.0.1 {{ .Values.nginx.ingress.hostname }}' to your hosts file"
|
|
echo "Visit http://{{ .Values.nginx.ingress.hostname }} to use your application"
|
|
kubectl -n {{ .Release.Namespace }} port-forward svc/$SVC_NAME 80:$SVC_PORT
|
|
{{- end }}
|