feat(bot): 🚧 Start migrating to k8s.
This commit is contained in:
@@ -0,0 +1,57 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: citus-coordinator
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: citus
|
||||
role: coordinator
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: citus
|
||||
role: coordinator
|
||||
spec:
|
||||
containers:
|
||||
- name: coordinator
|
||||
image: citusdata/citus:latest
|
||||
env:
|
||||
- name: POSTGRES_DB
|
||||
value: "payphone"
|
||||
- name: POSTGRES_USER
|
||||
value: "payphone"
|
||||
- name: POSTGRES_PASSWORD
|
||||
value: "payphone"
|
||||
volumeMounts:
|
||||
- name: citus-coordinator-storage
|
||||
mountPath: /var/lib/postgresql/data
|
||||
ports:
|
||||
- containerPort: 5432
|
||||
resources:
|
||||
requests:
|
||||
memory: "2Gi"
|
||||
cpu: "1"
|
||||
limits:
|
||||
memory: "2Gi"
|
||||
cpu: "2"
|
||||
volumes:
|
||||
- name: citus-coordinator-storage
|
||||
persistentVolumeClaim:
|
||||
claimName: citus-coordinator-pvc
|
||||
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: citus-coordinator
|
||||
spec:
|
||||
selector:
|
||||
app: citus
|
||||
role: coordinator
|
||||
ports:
|
||||
- protocol: TCP
|
||||
port: 5432
|
||||
targetPort: 5432
|
||||
type: ClusterIP
|
||||
Reference in New Issue
Block a user