diff --git a/ctrl/Tiltfile b/ctrl/Tiltfile index 684d61e..e5c157b 100644 --- a/ctrl/Tiltfile +++ b/ctrl/Tiltfile @@ -41,8 +41,7 @@ docker_build( # --- Resources --- -k8s_resource('postgres') -k8s_resource('api', resource_deps=['postgres']) +k8s_resource('api') k8s_resource('ui', resource_deps=['api'], port_forwards=['8040:80']) # Group infra resources diff --git a/ctrl/k8s/base/kustomization.yaml b/ctrl/k8s/base/kustomization.yaml index 5759707..11d471b 100644 --- a/ctrl/k8s/base/kustomization.yaml +++ b/ctrl/k8s/base/kustomization.yaml @@ -6,6 +6,5 @@ namespace: unt resources: - namespace.yaml - configmap.yaml - - postgres.yaml - api.yaml - ui.yaml diff --git a/ctrl/k8s/base/postgres.yaml b/ctrl/k8s/base/postgres.yaml deleted file mode 100644 index 2d2d5f1..0000000 --- a/ctrl/k8s/base/postgres.yaml +++ /dev/null @@ -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