github.com/qsunny/k8s@v0.0.0-20220101153623-e6dca256d5bf/nacos/helm/templates/NOTES.txt (about)

     1  
     2  1. Get the application URL by running these commands:
     3  {{- if .Values.ingress.enabled }}
     4  {{- range $host := .Values.ingress.hosts }}
     5    {{- range .paths }}
     6    http{{ if $.Values.ingress.tls }}s{{ end }}://{{ $host.host }}{{ . }}
     7    {{- end }}
     8  {{- end }}
     9  {{- else if contains "NodePort" .Values.service.type }}
    10    export NODE_PORT=$(kubectl get --namespace {{ .Release.Namespace }} -o jsonpath="{.spec.ports[0].nodePort}" services  nacos-cs)
    11    export NODE_IP=$(kubectl get nodes --namespace {{ .Release.Namespace }} -o jsonpath="{.items[0].status.addresses[0].address}")
    12    echo http://$NODE_IP:$NODE_PORT/nacos
    13  {{- else if contains "LoadBalancer" .Values.service.type }}
    14       NOTE: It may take a few minutes for the LoadBalancer IP to be available.
    15             You can watch the status of by running 'kubectl get --namespace {{ .Release.Namespace }} svc -w {{ include "nacos.fullname" . }}'
    16    export SERVICE_IP=$(kubectl get svc --namespace {{ .Release.Namespace }} {{ include "nacos.fullname" . }} -o jsonpath='{.status.loadBalancer.ingress[0].ip}')
    17    echo http://$SERVICE_IP:{{ .Values.service.port }}
    18  {{- else if contains "ClusterIP" .Values.service.type }}
    19    export POD_NAME=$(kubectl get pods --namespace {{ .Release.Namespace }} -l "app.kubernetes.io/name={{ include "nacos.name" . }},app.kubernetes.io/instance={{ .Release.Name }}" -o jsonpath="{.items[0].metadata.name}")
    20    echo "Visit http://127.0.0.1:8080 to use your application"
    21    kubectl port-forward $POD_NAME 8080:80
    22  {{- end }}
    23  2. MODE:
    24     standalone: you need to modify replicaCount in the values.yaml, .Values.replicaCount=1
    25     cluster: kubectl scale sts {{ .Release.Namespace }}-nacos --replicas=3