mirror of
https://github.com/plausible/hosting.git
synced 2025-07-02 01:57:29 -05:00
Add WIP Kubernetes support
This commit is contained in:
31
k8s-manifests/plausible-events-db-deployment.yaml
Normal file
31
k8s-manifests/plausible-events-db-deployment.yaml
Normal file
@ -0,0 +1,31 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: plausible-events-db
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: plausible-events-db
|
||||
strategy:
|
||||
type: Recreate
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: plausible-events-db
|
||||
spec:
|
||||
containers:
|
||||
- image: yandex/clickhouse-server:latest
|
||||
imagePullPolicy: IfNotPresent
|
||||
name: plausible-events-db
|
||||
ports:
|
||||
- containerPort: 8123
|
||||
resources: {}
|
||||
volumeMounts:
|
||||
- mountPath: /var/lib/clickhouse
|
||||
name: event-data
|
||||
restartPolicy: Always
|
||||
volumes:
|
||||
- name: event-data
|
||||
persistentVolumeClaim:
|
||||
claimName: event-data
|
Reference in New Issue
Block a user