grafana port fix
This commit is contained in:
parent
9e277d08da
commit
ccf7cac071
2 changed files with 21 additions and 7 deletions
|
@ -66,7 +66,7 @@ spec:
|
||||||
memory: "256Mi"
|
memory: "256Mi"
|
||||||
cpu: "250m"
|
cpu: "250m"
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 9000
|
- containerPort: 3000
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- mountPath: /var/lib/grafana
|
- mountPath: /var/lib/grafana
|
||||||
|
|
|
@ -8,21 +8,35 @@ metadata:
|
||||||
app.kubernetes.io/name: grafana
|
app.kubernetes.io/name: grafana
|
||||||
spec:
|
spec:
|
||||||
ports:
|
ports:
|
||||||
- name: "9000"
|
- name: "3000"
|
||||||
port: 9000
|
port: 3000
|
||||||
targetPort: 9000
|
targetPort: 3000
|
||||||
selector:
|
selector:
|
||||||
app.kubernetes.io/name: grafana
|
app.kubernetes.io/name: grafana
|
||||||
---
|
---
|
||||||
|
apiVersion: cert-manager.io/v1
|
||||||
|
kind: Certificate
|
||||||
|
metadata:
|
||||||
|
name: whoami
|
||||||
|
namespace: metrics
|
||||||
|
spec:
|
||||||
|
secretName: grafana-tls
|
||||||
|
issuerRef:
|
||||||
|
kind: ClusterIssuer
|
||||||
|
name: letsencrypt-prod
|
||||||
|
dnsNames:
|
||||||
|
- "grafana.konfa.ch"
|
||||||
|
---
|
||||||
apiVersion: networking.k8s.io/v1
|
apiVersion: networking.k8s.io/v1
|
||||||
kind: Ingress
|
kind: Ingress
|
||||||
metadata:
|
metadata:
|
||||||
name: grafana-ingress
|
name: grafana-ingress
|
||||||
namespace: default
|
namespace: metrics
|
||||||
annotations:
|
annotations:
|
||||||
traefik.ingress.kubernetes.io/router.entrypoints: websecure
|
traefik.ingress.kubernetes.io/router.entrypoints: websecure
|
||||||
traefik.ingress.kubernetes.io/router.middlewares: default-https-redirect
|
|
||||||
spec:
|
spec:
|
||||||
|
tls:
|
||||||
|
- secretName: grafana-tls
|
||||||
rules:
|
rules:
|
||||||
- host: grafana.konfa.ch
|
- host: grafana.konfa.ch
|
||||||
http:
|
http:
|
||||||
|
@ -33,4 +47,4 @@ spec:
|
||||||
service:
|
service:
|
||||||
name: grafana
|
name: grafana
|
||||||
port:
|
port:
|
||||||
number: 9000
|
number: 3000
|
||||||
|
|
Loading…
Reference in a new issue