Updated Loki and Prometheus config

Signed-off-by: Marcus Noble <github@marcusnoble.co.uk>
This commit is contained in:
Marcus Noble 2021-11-27 13:35:19 +00:00
parent ad33387c26
commit 796f891f17
Signed by: AverageMarcus
GPG Key ID: B8F2DB8A7AEBAF78
3 changed files with 38 additions and 15 deletions

View File

@ -11,7 +11,6 @@ data:
"tekton-el.auth-proxy.svc": "tekton-el.cluster.local", "tekton-el.auth-proxy.svc": "tekton-el.cluster.local",
"home.auth-proxy.svc": "home.cluster.local", "home.auth-proxy.svc": "home.cluster.local",
"home.cluster.fun": "home.cluster.local", "home.cluster.fun": "home.cluster.local",
"podify.cluster.fun": "podify.cluster.local",
"prometheus.auth-proxy.svc": "prometheus.cluster.local", "prometheus.auth-proxy.svc": "prometheus.cluster.local",
"loki.auth-proxy.svc": "loki.cluster.local" "loki.auth-proxy.svc": "loki.cluster.local"
} }
@ -105,6 +104,40 @@ spec:
app: internal-proxy app: internal-proxy
type: ClusterIP type: ClusterIP
--- ---
apiVersion: v1
kind: Service
metadata:
name: loki
namespace: auth-proxy
labels:
app: internal-proxy
spec:
ports:
- name: http
port: 80
protocol: TCP
targetPort: 8080
selector:
app: internal-proxy
type: ClusterIP
---
apiVersion: v1
kind: Service
metadata:
name: prometheus
namespace: auth-proxy
labels:
app: internal-proxy
spec:
ports:
- name: http
port: 80
protocol: TCP
targetPort: 8080
selector:
app: internal-proxy
type: ClusterIP
---
apiVersion: apps/v1 apiVersion: apps/v1
@ -230,7 +263,6 @@ spec:
tls: tls:
- hosts: - hosts:
- home.cluster.fun - home.cluster.fun
- podify.cluster.fun
secretName: non-auth-proxy-ingress secretName: non-auth-proxy-ingress
rules: rules:
- host: home.cluster.fun - host: home.cluster.fun
@ -243,13 +275,3 @@ spec:
name: non-auth-proxy name: non-auth-proxy
port: port:
name: http name: http
- host: podify.cluster.fun
http:
paths:
- path: /
pathType: ImplementationSpecific
backend:
service:
name: non-auth-proxy
port:
name: http

View File

@ -62,6 +62,7 @@ metadata:
annotations: annotations:
kube-1password: m7c2n5gqybiyxj6ylydju2nljm kube-1password: m7c2n5gqybiyxj6ylydju2nljm
kube-1password/vault: Kubernetes kube-1password/vault: Kubernetes
kube-1password/password-key: auth
type: Opaque type: Opaque
--- ---
apiVersion: networking.k8s.io/v1 apiVersion: networking.k8s.io/v1
@ -74,8 +75,8 @@ metadata:
annotations: annotations:
cert-manager.io/cluster-issuer: letsencrypt cert-manager.io/cluster-issuer: letsencrypt
nginx.ingress.kubernetes.io/force-ssl-redirect: "true" nginx.ingress.kubernetes.io/force-ssl-redirect: "true"
ingress.kubernetes.io/auth-type: basic nginx.ingress.kubernetes.io/auth-type: basic
ingress.kubernetes.io/auth-secret: prometheus-credentials nginx.ingress.kubernetes.io/auth-secret: prometheus-credentials
spec: spec:
ingressClassName: nginx ingressClassName: nginx
tls: tls:

View File

@ -417,7 +417,7 @@ spec:
matchLabels: matchLabels:
app.kubernetes.io/name: prometheus app.kubernetes.io/name: prometheus
app.kubernetes.io/component: server app.kubernetes.io/component: server
replicas: 0 replicas: 1
template: template:
metadata: metadata:
labels: labels: