Skip to content

Commit bec08ff

Browse files
authored
Update endpoints.yml
1 parent b40ee27 commit bec08ff

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

.github/workflows/endpoints.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ on:
2828
required: false
2929
default: ''
3030
type: string
31+
3132
jobs:
3233
print-endpoints:
3334
name: Print Service Endpoints
@@ -43,17 +44,17 @@ jobs:
4344
- name: Update kubeconfig
4445
run: |
4546
aws eks update-kubeconfig --name ${{ inputs.cluster_name }} --region us-east-1
47+
4648
- name: Print Service Endpoints
4749
run: |
4850
echo "================= SERVICE ENDPOINTS ================="
4951
ARGOCD_HOST=$(kubectl get svc argocd-server -n ${{ inputs.argocd_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')
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')
5154
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')
5255
echo "ArgoCD: http://$ARGOCD_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"
56+
echo "Prometheus: http://$PROM_HOST:9090"
57+
echo "Grafana: http://$GRAFANA_HOST"
5758
echo "App: http://$APP_HOST"
5859
echo "================= DEFAULT CREDENTIALS ================="
5960
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')

0 commit comments

Comments
 (0)