diff --git a/infrastructure/controllers/kube-prometheus-stack.yaml b/infrastructure/controllers/kube-prometheus-stack.yaml index 6c2590a..7e824c5 100644 --- a/infrastructure/controllers/kube-prometheus-stack.yaml +++ b/infrastructure/controllers/kube-prometheus-stack.yaml @@ -1,3 +1,19 @@ +## We use this chisel exit node to save money. +## The exit node is a VPS which cost $5 a month and can handle ingress for multiple services. +## If we used VKE ingress, it would be $10 a month and it's only good for one service. +## chisel on this budget VPS is only useful for low-traffic admin tools. +## For visitor facing production workloads, we pay for the good stuff. +--- +apiVersion: chisel-operator.io/v1 +kind: ExitNode +metadata: + name: grafana-exit-node + namespace: futureporn +spec: + host: "{{ .Values.chisel.exitNodeIp }}" + port: 9090 + auth: chisel + --- apiVersion: source.toolkit.fluxcd.io/v1 @@ -37,6 +53,11 @@ spec: requests: storage: 40Gi grafana: + service: + metadata: + annotations: + chisel-operator.io/exit-node-name: "grafana-exit-node" + admin: existingSecret: grafana sidecar: