apiVersion: v1 kind: Pod metadata: name: ci-cd-test-pod labels: app: ci-cd-test spec: containers: - name: postgres image: postgres:15-alpine env: - name: POSTGRES_DB value: "sharenet_test" - name: POSTGRES_USER value: "postgres" - name: POSTGRES_PASSWORD value: "password" ports: - containerPort: 5432 protocol: TCP volumeMounts: - name: postgres-data mountPath: /var/lib/postgresql/data command: ["postgres"] args: ["-c", "log_statement=all"] livenessProbe: exec: command: - pg_isready - -U - postgres initialDelaySeconds: 30 periodSeconds: 10 readinessProbe: exec: command: - pg_isready - -U - postgres initialDelaySeconds: 5 periodSeconds: 5 - name: rust-toolchain image: rust:1.75-slim volumeMounts: - name: workspace mountPath: /workspace workingDir: /workspace/backend command: ["sleep"] args: ["infinity"] env: - name: CI_HOST value: "localhost" - name: APP_NAME value: "sharenet" - name: node-toolchain image: node:20-slim volumeMounts: - name: workspace mountPath: /workspace workingDir: /workspace/frontend command: ["sleep"] args: ["infinity"] env: - name: CI_HOST value: "localhost" - name: APP_NAME value: "sharenet" volumes: - name: postgres-data emptyDir: {} - name: workspace hostPath: path: /tmp/ci-workspace type: Directory