🎉 Probo has been successfully deployed!

📋 Release Information:
  Name:      {{ .Release.Name }}
  Namespace: {{ .Release.Namespace }}
  Version:   {{ .Chart.AppVersion }}

🌐 Accessing Probo:

{{- if .Values.ingress.enabled }}
{{- range $host := .Values.ingress.hosts }}
  Application: {{ if $.Values.ingress.tls }}https{{ else }}http{{ end }}://{{ $host.host }}
{{- end }}
{{- else if contains "LoadBalancer" .Values.service.type }}
  NOTE: It may take a few minutes for the LoadBalancer IP to be available.
  Watch the status:
    kubectl get svc --namespace {{ .Release.Namespace }} {{ include "probo.fullname" . }} -w

  Once available, access the application at: http://<EXTERNAL-IP>:{{ .Values.service.port }}
{{- else if contains "ClusterIP" .Values.service.type }}
  Application is available only within the cluster.

  To access from your local machine:
    kubectl port-forward --namespace {{ .Release.Namespace }} svc/{{ include "probo.fullname" . }} 8080:{{ .Values.service.port }}

  Then visit: http://localhost:8080
{{- end }}

📊 Monitoring:
  Metrics are exposed on port {{ .Values.probo.metrics.port }}

  To access metrics locally:
    kubectl port-forward --namespace {{ .Release.Namespace }} svc/{{ include "probo.fullname" . }} 8081:{{ .Values.probo.metrics.port }}

  Then visit: http://localhost:8081/metrics

🔍 View Logs:
  kubectl logs --namespace {{ .Release.Namespace }} -f deployment/{{ include "probo.fullname" . }}

🗄️  Database:
{{- if .Values.postgresql.enabled }}
  Using CloudNativePG cluster: {{ include "probo.fullname" . }}-postgresql
  Read-write service: {{ include "probo.fullname" . }}-postgresql-rw:5432
  Database: {{ .Values.postgresql.database }}
{{- else }}
  Using external PostgreSQL at: {{ .Values.postgresql.host }}:{{ .Values.postgresql.port }}
  Database: {{ .Values.postgresql.database }}
{{- end }}

💾 Object Storage:
{{- if .Values.seaweedfs.enabled }}
  Using SeaweedFS: {{ include "probo.fullname" . }}-seaweedfs:8333
  Bucket: {{ .Values.s3.bucket }}
{{- else }}
  Using S3 storage
  Bucket: {{ .Values.s3.bucket }}
  Region: {{ .Values.s3.region }}
  {{- if .Values.s3.endpoint }}
  Endpoint: {{ .Values.s3.endpoint }}
  {{- end }}
{{- end }}

⚠️  Security Notes:
{{- if not .Values.ingress.tls }}
  ⚠️  TLS is not enabled! Enable it for production by configuring ingress.tls
{{- end }}
{{- if or .Values.postgresql.enabled .Values.seaweedfs.enabled }}
  ⚠️  Using internal PostgreSQL or SeaweedFS - FOR TESTING ONLY!
  For production, disable these and use external managed services.
{{- end }}

📚 Next Steps:

1. Update the hostname to match your domain:
   probo.baseUrl: "{{ .Values.probo.baseUrl }}"

2. Configure email delivery:
   Update probo.mailer.smtp settings with your SMTP server details

{{- if not .Values.probo.openai.apiKey }}
3. (Optional) Configure OpenAI integration for AI-powered features:
   Set probo.openai.apiKey in values.yaml
{{- end }}

4. Review CORS allowed origins:
   probo.cors.allowedOrigins

✨ Thank you for using Probo!
