mreo ui
This commit is contained in:
1 parent
49f9bb3458
commit
7436966689
22 files changed
+989
-125
No files matched your search
+23
-11
@@ -1,9 +1,12 @@
|
||||
# Single-node ClickHouse for the otel-debug-receiver, applied as one file:
|
||||
# kubectl apply -f k8s/clickhouse.yaml
|
||||
#
|
||||
# A single instance (per request): one StatefulSet replica with a PVC so
|
||||
# telemetry survives pod restarts. Resources sized for a small cluster;
|
||||
# adjust before production use.
|
||||
# A single instance (per request): one StatefulSet replica. Data lives on
|
||||
# serber's local disk at /srv/monitoring-db (hostPath), so the pod is pinned to
|
||||
# that node. It used to be an nfs-client PVC on a spinning-disk NAS, where
|
||||
# synchronous writes cost ~120 ms and every query paid that latency; see
|
||||
# k8s/migrate/clickhouse-nfs-to-local.yaml for the one-off data move.
|
||||
# Resources sized for a small cluster; adjust before production use.
|
||||
apiVersion: v1
|
||||
kind: Namespace
|
||||
metadata:
|
||||
@@ -56,8 +59,21 @@ spec:
|
||||
labels:
|
||||
app: clickhouse
|
||||
spec:
|
||||
nodeSelector:
|
||||
kubernetes.io/hostname: serber
|
||||
securityContext:
|
||||
fsGroup: 101
|
||||
initContainers:
|
||||
# hostPath directories are created root-owned and fsGroup does not apply
|
||||
# to them; ClickHouse runs as uid/gid 101.
|
||||
- name: fix-data-perms
|
||||
image: busybox:1.36
|
||||
command: ["sh", "-c", "chown -R 101:101 /var/lib/clickhouse"]
|
||||
securityContext:
|
||||
runAsUser: 0
|
||||
volumeMounts:
|
||||
- name: data
|
||||
mountPath: /var/lib/clickhouse
|
||||
containers:
|
||||
- name: clickhouse
|
||||
image: clickhouse/clickhouse-server:24.8
|
||||
@@ -101,20 +117,16 @@ spec:
|
||||
memory: "2Gi"
|
||||
cpu: "1"
|
||||
volumes:
|
||||
- name: data
|
||||
hostPath:
|
||||
path: /srv/monitoring-db
|
||||
type: DirectoryOrCreate
|
||||
- name: user-config
|
||||
configMap:
|
||||
name: clickhouse-config
|
||||
items:
|
||||
- key: users.d-otel.xml
|
||||
path: users.d-otel.xml
|
||||
volumeClaimTemplates:
|
||||
- metadata:
|
||||
name: data
|
||||
spec:
|
||||
accessModes: ["ReadWriteOnce"]
|
||||
resources:
|
||||
requests:
|
||||
storage: 20Gi
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
|
||||
Reference in new issue
Block a user