add gitops config for clusters/app

This commit is contained in:
Haitao Pan 2023-12-19 14:47:55 +08:00
parent 0bf85b4f6f
commit b5c5fc202f
5 changed files with 59 additions and 0 deletions

View File

@ -0,0 +1,6 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: kube-system
resources:
- ../../repo/helm/kustomization.yaml
- observability-agent.yaml

View File

@ -0,0 +1,41 @@
apiVersion: helm.toolkit.fluxcd.io/v2beta1
kind: HelmRelease
metadata:
name: my-application
namespace: default
spec:
releaseName: my-release
targetNamespace: default
chart:
spec:
chart: observableagent
version: "0.1.6"
sourceRef:
kind: HelmRepository
name: stable
namespace: monitoring
interval: 1m
values:
deepflow-agent:
enabled: true
deepflowServerNodeIPS:
- 10.0.1.2
deepflowK8sClusterID: d-QKd3eUzvg9
prometheus:
enabled: true
server:
extraFlags:
- enable-feature=expand-external-labels
- web.enable-lifecycle
remoteWrite:
- name: remote_prometheus
url: 'https://prometheus.svc.plus/api/v1/write'
alertmanager:
enabled: false
rometheus-pushgateway:
enabled: false
promtail:
enabled: true
config:
clients:
- url: https://data-gateway.svc.plus/loki/api/v1/push

View File

View File

@ -0,0 +1,4 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- stable.yaml

8
repo/helm/stable Normal file
View File

@ -0,0 +1,8 @@
apiVersion: source.toolkit.fluxcd.io/v1beta2
kind: HelmRepository
metadata:
name: stable
namespace: monitoring
spec:
interval: 1m
url: https://charts.onwalk.net/