fix: Correct pod selectors for Prometheus and Flux Tailscale services, use Doppler for Grafana creds
Prometheus needs operator.prometheus.io/name label selector. Flux UI pods are labeled gitops-server not weave-gitops. Grafana now reads admin creds from Doppler via ExternalSecret instead of hardcoded values.
This commit is contained in:
@@ -10,9 +10,10 @@ spec:
|
|||||||
type: LoadBalancer
|
type: LoadBalancer
|
||||||
loadBalancerClass: tailscale
|
loadBalancerClass: tailscale
|
||||||
selector:
|
selector:
|
||||||
app.kubernetes.io/name: weave-gitops
|
app.kubernetes.io/name: gitops-server
|
||||||
|
app.kubernetes.io/instance: weave-gitops
|
||||||
ports:
|
ports:
|
||||||
- name: http
|
- name: http
|
||||||
port: 9001
|
port: 9001
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
targetPort: 9001
|
targetPort: http
|
||||||
|
|||||||
@@ -25,8 +25,7 @@ spec:
|
|||||||
grafana:
|
grafana:
|
||||||
enabled: true
|
enabled: true
|
||||||
admin:
|
admin:
|
||||||
user: admin
|
existingSecret: grafana-admin-credentials
|
||||||
password: admin123
|
|
||||||
grafana.ini:
|
grafana.ini:
|
||||||
server:
|
server:
|
||||||
root_url: http://grafana.silverside-gopher.ts.net/
|
root_url: http://grafana.silverside-gopher.ts.net/
|
||||||
|
|||||||
@@ -2,6 +2,7 @@ apiVersion: kustomize.config.k8s.io/v1beta1
|
|||||||
kind: Kustomization
|
kind: Kustomization
|
||||||
resources:
|
resources:
|
||||||
- namespace.yaml
|
- namespace.yaml
|
||||||
|
- grafana-admin-externalsecret.yaml
|
||||||
- helmrepository-prometheus-community.yaml
|
- helmrepository-prometheus-community.yaml
|
||||||
- helmrepository-grafana.yaml
|
- helmrepository-grafana.yaml
|
||||||
- helmrelease-kube-prometheus-stack.yaml
|
- helmrelease-kube-prometheus-stack.yaml
|
||||||
|
|||||||
@@ -11,6 +11,7 @@ spec:
|
|||||||
loadBalancerClass: tailscale
|
loadBalancerClass: tailscale
|
||||||
selector:
|
selector:
|
||||||
app.kubernetes.io/name: prometheus
|
app.kubernetes.io/name: prometheus
|
||||||
|
operator.prometheus.io/name: observability-kube-prometh-prometheus
|
||||||
ports:
|
ports:
|
||||||
- name: http
|
- name: http
|
||||||
port: 9090
|
port: 9090
|
||||||
|
|||||||
Reference in New Issue
Block a user