remove orphan postgres deployment
This commit is contained in:
@@ -41,8 +41,7 @@ docker_build(
|
|||||||
|
|
||||||
# --- Resources ---
|
# --- Resources ---
|
||||||
|
|
||||||
k8s_resource('postgres')
|
k8s_resource('api')
|
||||||
k8s_resource('api', resource_deps=['postgres'])
|
|
||||||
k8s_resource('ui', resource_deps=['api'], port_forwards=['8040:80'])
|
k8s_resource('ui', resource_deps=['api'], port_forwards=['8040:80'])
|
||||||
|
|
||||||
# Group infra resources
|
# Group infra resources
|
||||||
|
|||||||
@@ -6,6 +6,5 @@ namespace: unt
|
|||||||
resources:
|
resources:
|
||||||
- namespace.yaml
|
- namespace.yaml
|
||||||
- configmap.yaml
|
- configmap.yaml
|
||||||
- postgres.yaml
|
|
||||||
- api.yaml
|
- api.yaml
|
||||||
- ui.yaml
|
- ui.yaml
|
||||||
|
|||||||
@@ -1,50 +0,0 @@
|
|||||||
apiVersion: apps/v1
|
|
||||||
kind: Deployment
|
|
||||||
metadata:
|
|
||||||
name: postgres
|
|
||||||
namespace: unt
|
|
||||||
spec:
|
|
||||||
replicas: 1
|
|
||||||
selector:
|
|
||||||
matchLabels:
|
|
||||||
app: postgres
|
|
||||||
template:
|
|
||||||
metadata:
|
|
||||||
labels:
|
|
||||||
app: postgres
|
|
||||||
spec:
|
|
||||||
containers:
|
|
||||||
- name: postgres
|
|
||||||
image: postgres:16-alpine
|
|
||||||
ports:
|
|
||||||
- containerPort: 5432
|
|
||||||
env:
|
|
||||||
- name: POSTGRES_USER
|
|
||||||
value: "langfuse"
|
|
||||||
- name: POSTGRES_PASSWORD
|
|
||||||
value: "langfuse"
|
|
||||||
- name: POSTGRES_DB
|
|
||||||
value: "langfuse"
|
|
||||||
readinessProbe:
|
|
||||||
exec:
|
|
||||||
command: ["pg_isready", "-U", "langfuse"]
|
|
||||||
initialDelaySeconds: 3
|
|
||||||
periodSeconds: 5
|
|
||||||
resources:
|
|
||||||
requests:
|
|
||||||
memory: 128Mi
|
|
||||||
cpu: 100m
|
|
||||||
limits:
|
|
||||||
memory: 512Mi
|
|
||||||
---
|
|
||||||
apiVersion: v1
|
|
||||||
kind: Service
|
|
||||||
metadata:
|
|
||||||
name: postgres
|
|
||||||
namespace: unt
|
|
||||||
spec:
|
|
||||||
selector:
|
|
||||||
app: postgres
|
|
||||||
ports:
|
|
||||||
- port: 5432
|
|
||||||
targetPort: 5432
|
|
||||||
Reference in New Issue
Block a user