2828 required : false
2929 default : ' '
3030 type : string
31-
3231jobs :
3332 print-endpoints :
3433 name : Print Service Endpoints
@@ -44,22 +43,22 @@ jobs:
4443 - name : Update kubeconfig
4544 run : |
4645 aws eks update-kubeconfig --name ${{ inputs.cluster_name }} --region us-east-1
47-
4846 - name : Print Service Endpoints
4947 run : |
5048 echo "================= SERVICE ENDPOINTS ================="
5149 ARGOCD_HOST=$(kubectl get svc argocd-server -n ${{ inputs.argocd_namespace }} -o jsonpath='{.status.loadBalancer.ingress[0].hostname}' 2>/dev/null || echo 'Not found')
52- PROM_HOST=$(kubectl get svc kube-prometheus-stack-prometheus -n ${{ inputs.monitoring_namespace }} -o jsonpath='{.status.loadBalancer.ingress[0].hostname}' 2>/dev/null || echo 'Not found')
53- GRAFANA_HOST=$(kubectl get svc kube-prometheus-stack-grafana -n ${{ inputs.monitoring_namespace }} -o jsonpath='{.status.loadBalancer.ingress[0].hostname}' 2>/dev/null || echo 'Not found')
50+ MONITORING_HOST=$(kubectl get ingress monitoring-ingress -n ${{ inputs.monitoring_namespace }} -o jsonpath='{.status.loadBalancer.ingress[0].hostname}' 2>/dev/null || echo 'Not found')
5451 APP_HOST=$(kubectl get svc ${{ inputs.app_name }}-svc -n ${{ inputs.app_namespace }} -o jsonpath='{.status.loadBalancer.ingress[0].hostname}' 2>/dev/null || echo 'Not found')
5552 echo "ArgoCD: http://$ARGOCD_HOST"
56- echo "Prometheus: http://$PROM_HOST:9090"
57- echo "Grafana: http://$GRAFANA_HOST"
53+ echo "Monitoring (All-in-One): http://$MONITORING_HOST"
54+ echo " ├── Grafana: http://$MONITORING_HOST/grafana"
55+ echo " ├── Prometheus: http://$MONITORING_HOST/prometheus"
56+ echo " └── AlertManager: http://$MONITORING_HOST/alertmanager"
5857 echo "App: http://$APP_HOST"
5958 echo "================= DEFAULT CREDENTIALS ================="
6059 ARGOCD_PASS=$(kubectl -n ${{ inputs.argocd_namespace }} get secret argocd-initial-admin-secret -o jsonpath='{.data.password}' 2>/dev/null | base64 -d || echo 'Not found')
6160 echo "ArgoCD -> Username: admin"
6261 echo "ArgoCD -> Password: $ARGOCD_PASS"
6362 echo "Grafana -> Username: admin"
6463 echo "Grafana -> Password: ${{ secrets.GRAFANA_PASSWORD }}"
65- echo "Prometheus -> No login needed (anonymous access by default)"
64+ echo "Prometheus -> No login needed (anonymous access by default)"
0 commit comments