=====================================================================
  LLMTrace has been deployed!
=====================================================================

Proxy endpoint:
{{- if .Values.ingress.enabled }}
{{- range $host := .Values.ingress.hosts }}
  {{- range .paths }}
  http{{ if $.Values.ingress.tls }}s{{ end }}://{{ $host.host }}{{ .path }}
  {{- 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 "llmtrace.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 }}
  NOTE: It may take a few minutes for the LoadBalancer IP to be available.
  kubectl get --namespace {{ .Release.Namespace }} svc -w {{ include "llmtrace.fullname" . }}
{{- else if contains "ClusterIP" .Values.service.type }}
  kubectl port-forward --namespace {{ .Release.Namespace }} svc/{{ include "llmtrace.fullname" . }} 8080:{{ .Values.service.port }}
  echo "Proxy available at http://localhost:8080"
{{- end }}

Health check:
  curl http://localhost:8080/health

{{- if .Values.proxy.grpc.enabled }}

gRPC ingestion:
  kubectl port-forward --namespace {{ .Release.Namespace }} svc/{{ include "llmtrace.fullname" . }} 50051:{{ .Values.service.grpcPort }}
{{- end }}

Storage profile: {{ .Values.proxy.storageProfile }}
{{- if eq .Values.proxy.storageProfile "production" }}
  ClickHouse: {{ if .Values.clickhouse.enabled }}bundled{{ else }}external{{ end }}
  PostgreSQL: {{ if .Values.postgresql.enabled }}bundled{{ else }}external{{ end }}
  Redis:      {{ if .Values.redis.enabled }}bundled{{ else }}external{{ end }}
{{- end }}

{{- if .Values.autoscaling.enabled }}

Autoscaling: enabled ({{ .Values.autoscaling.minReplicas }}-{{ .Values.autoscaling.maxReplicas }} replicas)
{{- end }}

For full documentation, see:
  https://github.com/evansosenko/llmtrace/blob/main/docs/deployment/kubernetes.md
