You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
1.4 KiB
Plaintext
24 lines
1.4 KiB
Plaintext
1. Get the application URL by running these commands:
|
|
{{- if .Values.ingress.enabled }}
|
|
{{- if .Values.ingress.domain }}
|
|
http{{ if .Values.ingress.tls.enabled }}s{{ end }}://{{ .Values.ingress.domain }}
|
|
{{- else }}
|
|
{{- range .Values.ingress.hosts }}
|
|
http{{ if $.Values.ingress.tls.enabled }}s{{ end }}://{{ .host }}
|
|
{{- end }}
|
|
{{- end }}
|
|
{{- else if contains "NodePort" .Values.service.type }}
|
|
export NODE_PORT=$(kubectl get --namespace {{ .Release.Namespace }} -o jsonpath="{.spec.ports[0].nodePort}" services {{ include "openclaw-mission-control.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 }}
|
|
export SERVICE_IP=$(kubectl get svc --namespace {{ .Release.Namespace }} {{ include "openclaw-mission-control.fullname" . }} --template "{{"{{ range (index .status.loadBalancer.ingress 0) }}{{.}}{{ end }}"}}")
|
|
echo http://$SERVICE_IP:{{ .Values.service.port }}
|
|
{{- else }}
|
|
kubectl --namespace {{ .Release.Namespace }} port-forward svc/{{ include "openclaw-mission-control.fullname" . }} 4000:{{ .Values.service.port }}
|
|
echo "Visit http://127.0.0.1:4000"
|
|
{{- end }}
|
|
|
|
2. To connect to an OpenClaw gateway, set the OPENCLAW_GATEWAY_URL environment variable:
|
|
helm upgrade {{ .Release.Name }} openclaw-mission-control --set env.OPENCLAW_GATEWAY_URL=ws://your-openclaw-service:18789
|