From 76ba031c2ebda2acf2a5e1e987a8b66208f27b07 Mon Sep 17 00:00:00 2001 From: Paul-Henry PERRIN Date: Fri, 17 Apr 2026 12:08:13 +0000 Subject: [PATCH] Add ch-ui manifests --- clickhouse/app/ch-ui.yaml | 107 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 107 insertions(+) create mode 100644 clickhouse/app/ch-ui.yaml diff --git a/clickhouse/app/ch-ui.yaml b/clickhouse/app/ch-ui.yaml new file mode 100644 index 0000000..eac46ae --- /dev/null +++ b/clickhouse/app/ch-ui.yaml @@ -0,0 +1,107 @@ +--- +apiVersion: apps/v1 +kind: Deployment +metadata: + name: ch-ui +spec: + replicas: 1 + selector: + matchLabels: + app.kubernetes.io/name: ch-ui + template: + metadata: + labels: + app.kubernetes.io/name: ch-ui + spec: + containers: + - name: ch-ui + image: ghcr.io/caioricciuti/ch-ui:v2.0.23 + env: + - name: CLICKHOUSE_URL + value: http://clickhouse-clickhouse:8123 + - name: CONNECTION_NAME + value: Reports + livenessProbe: + failureThreshold: 3 + periodSeconds: 10 + successThreshold: 1 + tcpSocket: + port: http + timeoutSeconds: 1 + readinessProbe: + failureThreshold: 3 + periodSeconds: 10 + successThreshold: 1 + tcpSocket: + port: http + timeoutSeconds: 1 + ports: + - containerPort: 3488 + name: http + protocol: TCP + volumeMounts: + - name: data + mountPath: /app/data + volumes: + - name: data + persistentVolumeClaim: + claimName: ch-ui-data + securityContext: + fsGroup: 101 +--- +apiVersion: v1 +kind: PersistentVolumeClaim +metadata: + name: ch-ui-data +spec: + accessModes: + - ReadWriteOnce + resources: + requests: + storage: 1Gi +--- +apiVersion: v1 +kind: Service +metadata: + name: ch-ui + labels: + app.kubernetes.io/name: ch-ui +spec: + type: ClusterIP + selector: + app.kubernetes.io/name: ch-ui + ports: + - name: http + port: 3488 + targetPort: http +--- +apiVersion: networking.k8s.io/v1 +kind: Ingress +metadata: + name: ch-ui + annotations: + cert-manager.io/cluster-issuer: admin + cert-manager.io/private-key-algorithm: ECDSA + forecastle.stakater.com/appName: CH-UI + forecastle.stakater.com/expose: "true" + forecastle.stakater.com/group: Reports + #forecastle.stakater.com/icon: https://git.alpha.k8s.transcity/assets/img/logo.svg + forecastle.stakater.com/instance: admin + ingress.kubernetes.io/force-ssl-redirect: "true" +spec: + ingressClassName: admin + rules: + - host: ch-ui.demo.aws.myseamlesstravel.com + http: + paths: + - backend: + service: + name: ch-ui + port: + name: http + path: / + pathType: Prefix + tls: + - hosts: + - ch-ui.demo.aws.myseamlesstravel.com + secretName: ch-ui-crt