Compare commits

..

No commits in common. "18649c50a7aac5729f7c8e2e87ccf39b46ca6144" and "5949b8e12029ce9e3b0da4ec37c07aac34a3649d" have entirely different histories.

3 changed files with 19 additions and 26 deletions

View File

@ -1,19 +1,16 @@
apiVersion: apisix.apache.org/v2
kind: ApisixRoute
metadata:
name: curio-route
namespace: curio
annotations:
kubernetes.io/ingress.class: apisix
name: Curio-route
namespace: Curio
spec:
http:
- name: curio-rule
- name: Curio-rule
match:
hosts:
- curio.applaude.net
- curaflow.applaude.net
- Curio.applaude.net
paths:
- /*
backends:
- serviceName: curio-app
- serviceName: Curio-app
servicePort: 80

View File

@ -1,35 +1,33 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: curio-app
namespace: curio
name: Curio-app
spec:
replicas: 2
selector:
matchLabels:
app: curio-app
app: Curio-app
template:
metadata:
labels:
app: curio-app
app: Curio-app
spec:
containers:
- name: curio
- name: Curio
image: 192.168.8.250:5000/curio:latest
ports:
- containerPort: 3000
env:
- name: DATABASE_URL
value: "postgres://postgres:curio_secret@curio-db:5432/curio"
value: "postgres://postgres:Curio_secret@Curio-db:5432/Curio"
---
apiVersion: v1
kind: Service
metadata:
name: curio-app
namespace: curio
name: Curio-app
spec:
selector:
app: curio-app
app: Curio-app
ports:
- port: 80
targetPort: 3000

View File

@ -1,35 +1,33 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: curio-db
namespace: curio
name: Curio-db
spec:
selector:
matchLabels:
app: curio-db
app: Curio-db
template:
metadata:
labels:
app: curio-db
app: Curio-db
spec:
containers:
- name: postgres
image: postgres:15-alpine
env:
- name: POSTGRES_PASSWORD
value: "curio_secret"
value: "Curio_secret"
- name: POSTGRES_DB
value: "curio"
value: "Curio"
ports:
- containerPort: 5432
---
apiVersion: v1
kind: Service
metadata:
name: curio-db
namespace: curio
name: Curio-db
spec:
selector:
app: curio-db
app: Curio-db
ports:
- port: 5432