mirror of
https://github.com/furyhawk/cloudy.git
synced 2026-05-20 15:11:10 +00:00
chore: Add Kubernetes resources for API and client deployments, services, and ingress
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: postgres-deployment
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
component: postgres
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
component: postgres
|
||||
spec:
|
||||
volumes:
|
||||
- name: postgres-storage
|
||||
persistentVolumeClaim:
|
||||
claimName: database-persistent-volume-claim
|
||||
containers:
|
||||
- name: postgres
|
||||
image: postgres
|
||||
ports:
|
||||
- containerPort: 5432
|
||||
volumeMounts:
|
||||
- name: postgres-storage
|
||||
mountPath: /var/lib/postgresql/data
|
||||
subPath: postgres
|
||||
Reference in New Issue
Block a user