39 lines
767 B
YAML
39 lines
767 B
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
labels:
|
|
app: pgcat
|
|
name: pgcat
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: pgcat
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: pgcat
|
|
spec:
|
|
containers:
|
|
- image: ghcr.io/postgresml/pgcat:latest
|
|
imagePullPolicy: IfNotPresent
|
|
name: pgcat
|
|
ports:
|
|
- containerPort: 6432
|
|
protocol: TCP
|
|
resources:
|
|
limits:
|
|
cpu: 500m
|
|
memory: 256Mi
|
|
requests:
|
|
cpu: 100m
|
|
memory: 64Mi
|
|
volumeMounts:
|
|
- mountPath: /etc/pgcat/pgcat.toml
|
|
name: config
|
|
subPath: pgcat.toml
|
|
volumes:
|
|
- configMap:
|
|
name: pgcat-config
|
|
name: config
|