helm upgrade --install prometheus prometheus-community/prometheus --set ingress.enabled=true --set ingress.ingresClassName=alb

From wikieduonline
Jump to navigation Jump to search

helm upgrade --install prometheus prometheus-community/prometheus --set ingress.enabled=true --set ingress.ingresClassName=alb


Release "prometheus" does not exist. Installing it now.
NAME: prometheus
LAST DEPLOYED: Wed Mar 22 15:24:25 2023
NAMESPACE: default
STATUS: deployed
REVISION: 1
NOTES:
The Prometheus server can be accessed via port 80 on the following DNS name from within your cluster:
prometheus-server.default.svc.cluster.local


Get the Prometheus server URL by running these commands in the same shell:
 export POD_NAME=$(kubectl get pods --namespace default -l "app=prometheus,component=server" -o jsonpath="{.items[0].metadata.name}")
 kubectl --namespace default port-forward $POD_NAME 9090
 

The Prometheus alertmanager can be accessed via port  on the following DNS name from within 
your cluster:
prometheus-%!s(<nil>).default.svc.cluster.local
 

Get the Alertmanager URL by running these commands in the same shell:
 export POD_NAME=$(kubectl get pods --namespace default -l "app=prometheus,component=" -o 
jsonpath="{.items[0].metadata.name}")
 kubectl --namespace default port-forward $POD_NAME 9093
#################################################################################
######   WARNING: Pod Security Policy has been disabled by default since    #####
######            it deprecated after k8s 1.25+. use                        #####
######            (index .Values "prometheus-node-exporter" "rbac"          #####
###### .          "pspEnabled") with (index .Values                         ##### 
######            "prometheus-node-exporter" "rbac" "pspAnnotations")       #####
######            in case you still need it.                                #####
#################################################################################
 

The Prometheus PushGateway can be accessed via port 9091 on the following DNS name from 
within your cluster:
prometheus-prometheus-pushgateway.default.svc.cluster.local
 

Get the PushGateway URL by running these commands in the same shell:
  export POD_NAME=$(kubectl get pods --namespace default -l "app=prometheus- pushgateway,component=pushgateway" -o jsonpath="{.items[0].metadata.name}")
  kubectl --namespace default port-forward $POD_NAME 9091

For more information on running Prometheus, visit:
https://prometheus.io/

See also[edit]

Advertising: