c090015686
Coroot gives eBPF-based service maps, tracing and RCA for the cluster; the community edition has no OIDC, so it sits behind oauth2-proxy. - add coroot-operator chart 0.10.8 in coroot-system (platform) - add a Coroot CR: 2 replicas on CNPG, ClickHouse 2 + keeper 3, metrics via vmcluster/main, pinned images - agents send keyless; Coroot binds an empty key to its single default project - front coroot.unkin.net with oauth2-proxy (Authentik, akP-coroot-admin); Coroot grants Admin to anonymous - restrict Coroot ingress to oauth2-proxy and the agents; PDBs, anti-affinity, DNS, wildcard cert, schema Requires IUCLabs/terraform-artifactapi#7 and IUCLabs/terraform-authentik#7. Reviewed-on: #605 Co-authored-by: unkin-agent <unkin-agent@unkin.net> Co-committed-by: unkin-agent <unkin-agent@unkin.net>
115 lines
3.0 KiB
YAML
115 lines
3.0 KiB
YAML
---
|
|
# Community has no OIDC: oauth2-proxy is the only ingress path, so anonymous requests are Admin.
|
|
apiVersion: coroot.com/v1
|
|
kind: Coroot
|
|
metadata:
|
|
name: coroot
|
|
namespace: coroot
|
|
spec:
|
|
communityEdition:
|
|
image:
|
|
name: ghcr.io/coroot/coroot:1.29.4
|
|
replicas: 2
|
|
authAnonymousRole: Admin
|
|
resources:
|
|
requests:
|
|
cpu: 500m
|
|
memory: 1Gi
|
|
limits:
|
|
cpu: "2"
|
|
memory: 4Gi
|
|
storage:
|
|
className: cephrbd-fast-delete
|
|
size: 10Gi
|
|
affinity:
|
|
podAntiAffinity:
|
|
requiredDuringSchedulingIgnoredDuringExecution:
|
|
- topologyKey: kubernetes.io/hostname
|
|
labelSelector:
|
|
matchLabels:
|
|
app.kubernetes.io/part-of: coroot
|
|
app.kubernetes.io/component: coroot
|
|
# Shared config store; required for replicas > 1.
|
|
postgres:
|
|
host: postgres-pooler-rw.coroot.svc.cluster.local
|
|
port: 5432
|
|
user: coroot
|
|
database: coroot
|
|
passwordSecret:
|
|
name: postgres-app
|
|
key: password
|
|
params:
|
|
sslmode: require
|
|
# Metrics live in the shared VictoriaMetrics cluster; no bundled Prometheus.
|
|
externalPrometheus:
|
|
url: http://vmselect-main.observability.svc.cluster.local:8481/select/0/prometheus
|
|
remoteWriteURL: http://vminsert-main.observability.svc.cluster.local:8480/insert/0/prometheus/api/v1/write
|
|
clickhouse:
|
|
image:
|
|
name: ghcr.io/coroot/clickhouse:26.10.3-ubi9-0
|
|
shards: 1
|
|
replicas: 2
|
|
resources:
|
|
requests:
|
|
cpu: "1"
|
|
memory: 4Gi
|
|
limits:
|
|
cpu: "4"
|
|
memory: 8Gi
|
|
storage:
|
|
className: cephrbd-fast-delete
|
|
size: 100Gi
|
|
affinity:
|
|
podAntiAffinity:
|
|
requiredDuringSchedulingIgnoredDuringExecution:
|
|
- topologyKey: kubernetes.io/hostname
|
|
labelSelector:
|
|
matchLabels:
|
|
app.kubernetes.io/part-of: coroot
|
|
app.kubernetes.io/component: clickhouse
|
|
keeper:
|
|
image:
|
|
name: ghcr.io/coroot/clickhouse:26.10.3-ubi9-0
|
|
replicas: 3
|
|
resources:
|
|
requests:
|
|
cpu: 100m
|
|
memory: 256Mi
|
|
limits:
|
|
cpu: "1"
|
|
memory: 1Gi
|
|
storage:
|
|
className: cephrbd-fast-delete
|
|
size: 10Gi
|
|
affinity:
|
|
podAntiAffinity:
|
|
requiredDuringSchedulingIgnoredDuringExecution:
|
|
- topologyKey: kubernetes.io/hostname
|
|
labelSelector:
|
|
matchLabels:
|
|
app.kubernetes.io/part-of: coroot
|
|
app.kubernetes.io/component: clickhouse-keeper
|
|
clusterAgent:
|
|
image:
|
|
name: ghcr.io/coroot/coroot-cluster-agent:1.12.0
|
|
resources:
|
|
requests:
|
|
cpu: 100m
|
|
memory: 256Mi
|
|
limits:
|
|
cpu: "1"
|
|
memory: 1Gi
|
|
# Privileged hostPID eBPF agent on every node, control-plane included.
|
|
nodeAgent:
|
|
image:
|
|
name: ghcr.io/coroot/coroot-node-agent:1.38.3
|
|
tolerations:
|
|
- operator: Exists
|
|
resources:
|
|
requests:
|
|
cpu: 100m
|
|
memory: 256Mi
|
|
limits:
|
|
cpu: "1"
|
|
memory: 1Gi
|