Merge pull request #384 from 3dwardch3ng/infra/grafana/dashboard/16098-node-exporter-job-20240520
update prometheus port config
This commit is contained in:
@@ -1,51 +0,0 @@
|
||||
apiVersion: networking.k8s.io/v1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
name: prometheus-ingress
|
||||
namespace: prometheus
|
||||
annotations:
|
||||
nginx.ingress.kubernetes.io/ssl-redirect: "false"
|
||||
nginx.ingress.kubernetes.io/use-regex: "true"
|
||||
spec:
|
||||
ingressClassName: nginx
|
||||
rules:
|
||||
- host: "prometheus.cluster.edward.sydney"
|
||||
http:
|
||||
paths:
|
||||
- pathType: Prefix
|
||||
path: "/"
|
||||
backend:
|
||||
service:
|
||||
name: prometheus
|
||||
port:
|
||||
number: 9999
|
||||
- host: "prometheus.cluster.local"
|
||||
http:
|
||||
paths:
|
||||
- pathType: Prefix
|
||||
path: "/"
|
||||
backend:
|
||||
service:
|
||||
name: prometheus
|
||||
port:
|
||||
number: 9999
|
||||
- host: "grafana.cluster.edward.sydney"
|
||||
http:
|
||||
paths:
|
||||
- pathType: Prefix
|
||||
path: "/"
|
||||
backend:
|
||||
service:
|
||||
name: prometheus
|
||||
port:
|
||||
number: 3030
|
||||
- host: "grafana.cluster.local"
|
||||
http:
|
||||
paths:
|
||||
- pathType: Prefix
|
||||
path: "/"
|
||||
backend:
|
||||
service:
|
||||
name: prometheus
|
||||
port:
|
||||
number: 3030
|
||||
@@ -9,12 +9,14 @@ metadata:
|
||||
spec:
|
||||
selector:
|
||||
app: prometheus
|
||||
type: ClusterIP
|
||||
type: NodePort
|
||||
ports:
|
||||
- port: 9999
|
||||
targetPort: 9090
|
||||
nodePort: 30999
|
||||
protocol: TCP
|
||||
name: http
|
||||
- name: grafana-port
|
||||
port: 3030
|
||||
nodePort: 30303
|
||||
targetPort: 3000
|
||||
Reference in New Issue
Block a user