apisix chanbgfes
This commit is contained in:
parent
5949b8e120
commit
b8c8735a80
|
|
@ -1,16 +1,17 @@
|
||||||
apiVersion: apisix.apache.org/v2
|
apiVersion: apisix.apache.org/v2
|
||||||
kind: ApisixRoute
|
kind: ApisixRoute
|
||||||
metadata:
|
metadata:
|
||||||
name: Curio-route
|
name: curio-route
|
||||||
namespace: Curio
|
namespace: curio
|
||||||
spec:
|
spec:
|
||||||
http:
|
http:
|
||||||
- name: Curio-rule
|
- name: curio-rule
|
||||||
match:
|
match:
|
||||||
hosts:
|
hosts:
|
||||||
- Curio.applaude.net
|
- curio.applaude.net
|
||||||
|
- curaflow.applaude.net
|
||||||
paths:
|
paths:
|
||||||
- /*
|
- /*
|
||||||
backends:
|
backends:
|
||||||
- serviceName: Curio-app
|
- serviceName: curio-app
|
||||||
servicePort: 80
|
servicePort: 80
|
||||||
|
|
|
||||||
14
k8s/app.yaml
14
k8s/app.yaml
|
|
@ -1,33 +1,33 @@
|
||||||
apiVersion: apps/v1
|
apiVersion: apps/v1
|
||||||
kind: Deployment
|
kind: Deployment
|
||||||
metadata:
|
metadata:
|
||||||
name: Curio-app
|
name: curio-app
|
||||||
spec:
|
spec:
|
||||||
replicas: 2
|
replicas: 2
|
||||||
selector:
|
selector:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
app: Curio-app
|
app: curio-app
|
||||||
template:
|
template:
|
||||||
metadata:
|
metadata:
|
||||||
labels:
|
labels:
|
||||||
app: Curio-app
|
app: curio-app
|
||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- name: Curio
|
- name: curio
|
||||||
image: 192.168.8.250:5000/curio:latest
|
image: 192.168.8.250:5000/curio:latest
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 3000
|
- containerPort: 3000
|
||||||
env:
|
env:
|
||||||
- name: DATABASE_URL
|
- name: DATABASE_URL
|
||||||
value: "postgres://postgres:Curio_secret@Curio-db:5432/Curio"
|
value: "postgres://postgres:curio_secret@curio-db:5432/curio"
|
||||||
---
|
---
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Service
|
kind: Service
|
||||||
metadata:
|
metadata:
|
||||||
name: Curio-app
|
name: curio-app
|
||||||
spec:
|
spec:
|
||||||
selector:
|
selector:
|
||||||
app: Curio-app
|
app: curio-app
|
||||||
ports:
|
ports:
|
||||||
- port: 80
|
- port: 80
|
||||||
targetPort: 3000
|
targetPort: 3000
|
||||||
|
|
|
||||||
|
|
@ -1,33 +1,33 @@
|
||||||
apiVersion: apps/v1
|
apiVersion: apps/v1
|
||||||
kind: Deployment
|
kind: Deployment
|
||||||
metadata:
|
metadata:
|
||||||
name: Curio-db
|
name: curio-db
|
||||||
spec:
|
spec:
|
||||||
selector:
|
selector:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
app: Curio-db
|
app: curio-db
|
||||||
template:
|
template:
|
||||||
metadata:
|
metadata:
|
||||||
labels:
|
labels:
|
||||||
app: Curio-db
|
app: curio-db
|
||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- name: postgres
|
- name: postgres
|
||||||
image: postgres:15-alpine
|
image: postgres:15-alpine
|
||||||
env:
|
env:
|
||||||
- name: POSTGRES_PASSWORD
|
- name: POSTGRES_PASSWORD
|
||||||
value: "Curio_secret"
|
value: "curio_secret"
|
||||||
- name: POSTGRES_DB
|
- name: POSTGRES_DB
|
||||||
value: "Curio"
|
value: "curio"
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 5432
|
- containerPort: 5432
|
||||||
---
|
---
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Service
|
kind: Service
|
||||||
metadata:
|
metadata:
|
||||||
name: Curio-db
|
name: curio-db
|
||||||
spec:
|
spec:
|
||||||
selector:
|
selector:
|
||||||
app: Curio-db
|
app: curio-db
|
||||||
ports:
|
ports:
|
||||||
- port: 5432
|
- port: 5432
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue