summaryrefslogtreecommitdiff
path: root/yaml/deployments
diff options
context:
space:
mode:
Diffstat (limited to 'yaml/deployments')
-rw-r--r--yaml/deployments/cas.yaml73
-rw-r--r--yaml/deployments/frontend.yaml28
-rw-r--r--yaml/deployments/postgres.yaml38
3 files changed, 0 insertions, 139 deletions
diff --git a/yaml/deployments/cas.yaml b/yaml/deployments/cas.yaml
deleted file mode 100644
index 1b106ad..0000000
--- a/yaml/deployments/cas.yaml
+++ /dev/null
@@ -1,73 +0,0 @@
-apiVersion: apps/v1
-kind: Deployment
-metadata:
- name: cas-deployment
- labels:
- app: cas-app
-spec:
- replicas: 2
- selector:
- matchLabels:
- app: cas-app
- template:
- metadata:
- labels:
- app: cas-app
- spec:
- affinity:
- podAntiAffinity:
- requiredDuringSchedulingIgnoredDuringExecution:
- - labelSelector:
- matchLabels:
- app: cas-app
- topologyKey: "kubernetes.io/hostname"
- resources:
- requests:
- cpu: "200m"
- memory: "500Mi"
- limits:
- cpu: "500m"
- memory: "1Gi"
- containers:
- - name: cas
- image: ghcr.io/cas-4/backend:latest
- imagePullPolicy: Always
- env:
- - name: RUST_LOG
- valueFrom:
- configMapKeyRef:
- name: cas-config
- key: RUST_LOG
- - name: DATABASE_URL
- valueFrom:
- configMapKeyRef:
- name: cas-config
- key: DATABASE_URL
- - name: JWT_SECRET
- valueFrom:
- secretKeyRef:
- name: cas-secret
- key: JWT_SECRET
- - name: EXPO_ACCESS_TOKEN
- valueFrom:
- secretKeyRef:
- name: cas-secret
- key: EXPO_ACCESS_TOKEN
- - name: UNREALSPEECH_TOKEN
- valueFrom:
- secretKeyRef:
- name: cas-secret
- key: UNREALSPEECH_TOKEN
- - name: ALLOWED_HOST
- valueFrom:
- configMapKeyRef:
- name: cas-config
- key: ALLOWED_HOST
- - name: AUDIO_PATH
- valueFrom:
- configMapKeyRef:
- name: cas-config
- key: AUDIO_PATH
- ports:
- - containerPort: 8000
- restartPolicy: Always
diff --git a/yaml/deployments/frontend.yaml b/yaml/deployments/frontend.yaml
deleted file mode 100644
index 781bf87..0000000
--- a/yaml/deployments/frontend.yaml
+++ /dev/null
@@ -1,28 +0,0 @@
-apiVersion: apps/v1
-kind: Deployment
-metadata:
- name: frontend-deployment
- labels:
- app: frontend-app
-spec:
- selector:
- matchLabels:
- app: frontend-app
- template:
- metadata:
- labels:
- app: frontend-app
- spec:
- containers:
- - name: frontend
- image: ghcr.io/cas-4/frontend:latest
- imagePullPolicy: Always
- ports:
- - containerPort: 80
- env:
- - name: VITE_API_URL
- valueFrom:
- configMapKeyRef:
- name: frontend-config
- key: VITE_API_URL
- restartPolicy: Always
diff --git a/yaml/deployments/postgres.yaml b/yaml/deployments/postgres.yaml
deleted file mode 100644
index fd9945f..0000000
--- a/yaml/deployments/postgres.yaml
+++ /dev/null
@@ -1,38 +0,0 @@
-apiVersion: apps/v1
-kind: Deployment
-metadata:
- name: postgres-deployment
-spec:
- replicas: 1
- selector:
- matchLabels:
- app: postgres
- template:
- metadata:
- labels:
- app: postgres
- spec:
- containers:
- - name: postgres
- image: postgis/postgis:16-3.4
- env:
- - name: POSTGRES_USER
- value: "postgres"
- - name: POSTGRES_PASSWORD
- value: "password"
- - name: POSTGRES_DB
- value: "gis"
- ports:
- - containerPort: 5432
- volumeMounts:
- - mountPath: /var/lib/postgresql/data
- name: pgdata
- - mountPath: /docker-entrypoint-initdb.d
- name: schema
- volumes:
- - name: pgdata
- persistentVolumeClaim:
- claimName: pgdata-pvc
- - name: schema
- hostPath:
- path: ${PGDATA}