Please wait for ~1 minute before running any of the following commands.

1. Run the following command to get the password for the default admin user:

   kubectl -n devtroncd get secret devtron-secret -o jsonpath='{.data.ADMIN_PASSWORD}' | base64 -d

{{- if $.Values.components }}
{{- if $.Values.components.devtron }}
{{- if $.Values.components.devtron.ingress }}
{{- if $.Values.components.devtron.ingress.enabled }}
2. The Devtron dashboard URL for 

- http is: http://{{ .Values.components.devtron.ingress.host }}/dashboard
- https is https://{{ .Values.components.devtron.ingress.host }}/dashboard

{{- else if eq $.Values.components.devtron.service.type "LoadBalancer" }}
2. Run the following command to get the dashboard URL for the service type:
   LoadBalancer
   
   kubectl get svc -n devtroncd devtron-service -o jsonpath='{.status.loadBalancer.ingress}'
   
{{- else if eq $.Values.components.devtron.service.type "NodePort" }}
2. Run the following commands to get the dashboard URL for the service type:
   NodePort

   a. export nodeport=$(kubectl get svc -n devtroncd devtron-service -o jsonpath="{.spec.ports[0].nodePort}")
   
   b. Run the following command to get Devtron dashboard URL: echo http://HOST_IP:$nodeport/dashboard

   Make sure that your security settings allow incoming connection to your Host machine on the nodeport mentioned.

{{- else if eq $.Values.components.devtron.service.type "ClusterIP" }}
2. Run the following commands to get the dashboard URL for the service type:
   ClusterIP
   
   kubectl get svc -n devtroncd devtron-service   
   
   You can port-forward devtron-service in namespace devtroncd to access devtron dashboard. You can use the following command to port forward.
      
   kubectl -n devtroncd port-forward svc/devtron-service 8000:80

   The dashboard should be accesible on http://localhost:8000/
{{- end }}
{{- end }}
{{- end }}
{{- end }}

{{- if $.Values.installer.modules }}
3. To track the progress of Devtron microservices installation, run the following command:

   kubectl -n devtroncd get installers installer-devtron -o jsonpath='{.status.sync.status}'
   
   After running this command, if you get the results as:
   1. "Downloaded" means installation in progress. But you can still start exploring Devtron
   2. "Applied" means installation is successful.

{{- end }}

Facing issues? Reach out to our team on Discord https://discord.devtron.ai for immediate assistance!
