42 lines
2.2 KiB
Plaintext
42 lines
2.2 KiB
Plaintext
The nacos has been installed.
|
|
|
|
Nacos can be accessed:
|
|
|
|
{{ if .Values.ingress.enabled }}
|
|
* The application URL:
|
|
{{- range .Values.ingress.hosts }}
|
|
http{{ if $.Values.ingress.tls }}s{{ end }}://{{ . }}{{ $.Values.ingress.path }}
|
|
{{- end }}
|
|
{{- end }}
|
|
|
|
* Within your cluster, at the following DNS name at port {{ .Values.service.ingressPort }}:
|
|
|
|
{{ include "common.names.fullname" . }}.{{ .Release.Namespace }}.svc
|
|
|
|
* From outside the cluster, run these commands in the same shell:
|
|
{{- if contains "NodePort" .Values.service.type }}
|
|
|
|
export NODE_PORT=$(kubectl get --namespace {{ .Release.Namespace }} -o jsonpath="{.spec.ports[0].nodePort}" services {{ include "common.names.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.service.type }}
|
|
|
|
WARNING: You have likely exposed your nacos direct to the internet.
|
|
Nacos does not implement any security for public facing clusters by default.
|
|
As a minimum level of security; switch to ClusterIP/NodePort and place an Nginx gateway infront of the cluster in order to lock down access to dangerous HTTP endpoints and verbs.
|
|
|
|
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 {{ include "common.names.fullname" . }}'
|
|
|
|
export SERVICE_IP=$(kubectl get svc --namespace {{ .Release.Namespace }} {{ include "common.names.fullname" . }} -o jsonpath='{.status.loadBalancer.ingress[0].ip}')
|
|
echo http://$SERVICE_IP:{{ .Values.service.ports.http.port }}
|
|
{{- else if contains "ClusterIP" .Values.service.type }}
|
|
|
|
export POD_NAME=$(kubectl get pods --namespace {{ .Release.Namespace }} -l "app.kubernetes.io/instance={{ .Release.Name }}" -o jsonpath="{.items[0].metadata.name}")
|
|
echo "Visit http://127.0.0.1:{{ .Values.service.ports.http.port }} to use nacos"
|
|
kubectl port-forward --namespace {{ .Release.Namespace }} $POD_NAME {{ .Values.service.ports.http.port }}:{{ .Values.service.ports.http.port }}
|
|
{{- end }}
|
|
|
|
# The default user is: nacos
|
|
# The default password is: nacos
|