NOTES.txt 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. ===========================================
  2. LightRAG has been successfully deployed!
  3. ===========================================
  4. View application logs:
  5. kubectl logs -f --namespace {{ .Release.Namespace }} deploy/{{ include "lightrag.fullname" . }}
  6. ===========================================
  7. Access the application:
  8. {{- if contains "NodePort" .Values.service.type }}
  9. Run these commands to get access information:
  10. -----------------------------------------
  11. export NODE_PORT=$(kubectl get --namespace {{ .Release.Namespace }} -o jsonpath="{.spec.ports[0].nodePort}" services {{ include "lightrag.fullname" . }})
  12. export NODE_IP=$(kubectl get nodes --namespace {{ .Release.Namespace }} -o jsonpath="{.items[0].status.addresses[0].address}")
  13. echo "LightRAG is accessible at: http://$NODE_IP:$NODE_PORT"
  14. -----------------------------------------
  15. {{- else if contains "LoadBalancer" .Values.service.type }}
  16. Run these commands to get access information (external IP may take a minute to assign):
  17. -----------------------------------------
  18. export SERVICE_IP=$(kubectl get svc --namespace {{ .Release.Namespace }} {{ include "lightrag.fullname" . }} --template "{{ "{{ range (index .status.loadBalancer.ingress 0) }}{{ . }}{{ end }}" }}")
  19. echo "LightRAG is accessible at: http://$SERVICE_IP:{{ .Values.service.port }}"
  20. -----------------------------------------
  21. If SERVICE_IP is empty, retry the command or check service status with:
  22. kubectl get svc --namespace {{ .Release.Namespace }} {{ include "lightrag.fullname" . }}
  23. {{- else if contains "ClusterIP" .Values.service.type }}
  24. For development environments, to access LightRAG from your local machine:
  25. 1. Run this port-forward command in your terminal:
  26. kubectl --namespace {{ .Release.Namespace }} port-forward svc/{{ include "lightrag.fullname" . }} {{ .Values.service.port }}:{{ .Values.env.PORT }}
  27. 2. While the command is running, open your browser and navigate to:
  28. http://localhost:{{ .Values.service.port }}
  29. Note: To stop port-forwarding, press Ctrl+C in the terminal.
  30. {{- end }}
  31. ===========================================