github.com/smartcontractkit/chainlink-testing-framework/libs@v0.0.0-20240227141906-ec710b4eb1a3/charts/mockserver/templates/NOTES.txt (about)

     1  
     2  1. To wait until the deployment is complete run:
     3  
     4     kubectl rollout status deployments {{ .Release.Name }} -n {{ .Release.Namespace }}
     5  
     6  2. To check the status of the deployment without waiting, run the following command and confirm the `mockserver` has the `Running` status:
     7  
     8     kubectl get po -l release={{ .Release.Name }} -n {{ .Release.Namespace }}
     9  
    10  3. Get the application URL by running these commands:
    11  {{- if .Values.ingress.enabled }}
    12     {{- range .Values.ingress.hosts }}
    13         http{{ if $.Values.ingress.tls }}s{{ end }}://{{ . }}{{ $.Values.ingress.path }}
    14     {{- end }}
    15  {{- else if contains "NodePort" .Values.service.type }}
    16  
    17     export NODE_PORT=$(kubectl get --namespace {{ .Release.Namespace }} -o jsonpath="{.spec.ports[0].nodePort}" services {{ template "chart.fullname" . }})
    18     export NODE_IP=$(kubectl get nodes --namespace {{ .Release.Namespace }} -o jsonpath="{.items[0].status.addresses[0].address}")
    19     export MOCKSERVER_HOST=$NODE_IP:$NODE_PORT
    20     echo http://$MOCKSERVER_HOST
    21  
    22     OR
    23  
    24     kubectl -n mockserver port-forward svc/mockserver 1080:1080 &
    25     export MOCKSERVER_HOST=127.0.0.1:1080
    26     echo http://$MOCKSERVER_HOST
    27  {{- else if contains "LoadBalancer" .Values.service.type }}
    28  
    29     NOTE: It may take a few minutes for the LoadBalancer IP to be available.
    30           You can watch the status of by running 'kubectl get svc -w {{ template "chart.name" . }}'
    31     export SERVICE_IP=$(kubectl get svc --namespace {{ .Release.Namespace }} {{ template "chart.fullname" . }} -o jsonpath='{.status.loadBalancer.ingress[0].hostname}')
    32     export MOCKSERVER_HOST=$SERVICE_IP:{{ .Values.service.port }}
    33     echo http://$MOCKSERVER_HOST
    34  
    35     OR
    36  
    37     kubectl -n mockserver port-forward svc/mockserver 1080:1080 &
    38     export MOCKSERVER_HOST=127.0.0.1:1080
    39     echo http://$MOCKSERVER_HOST
    40  {{- else if contains "ClusterIP" .Values.service.type }}
    41  
    42     export POD_NAME=$(kubectl get pods --namespace {{ .Release.Namespace }} -l "app={{ template "chart.name" . }},release={{ .Release.Name }}" -o jsonpath="{.items[0].metadata.name}")
    43     kubectl port-forward $POD_NAME {{ .Values.service.port }}:{{ .Values.service.port }} -n {{ .Release.Namespace }} &
    44     sleep 1 && export MOCKSERVER_HOST=127.0.0.1:{{ .Values.service.port }}
    45     echo http://$MOCKSERVER_HOST
    46  
    47     OR
    48  
    49     kubectl -n mockserver port-forward svc/mockserver 1080:1080 &
    50     export MOCKSERVER_HOST=127.0.0.1:1080
    51     echo http://$MOCKSERVER_HOST
    52  {{- end }}