Add ch-ui manifests
This commit is contained in:
parent
aa9c782155
commit
76ba031c2e
107
clickhouse/app/ch-ui.yaml
Normal file
107
clickhouse/app/ch-ui.yaml
Normal file
@ -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
|
||||
Loading…
x
Reference in New Issue
Block a user