Browse Source

Merge pull request '更新sql配置' (#5) from master into dev

tags/v20240126^2
fanshuai 2 years ago
parent
commit
3dfe5da185
3 changed files with 1359 additions and 3 deletions
  1. +3
    -3
      k8s/dockerfiles/conf/nginx.conf
  2. +35
    -0
      k8s/k8s-12front.yaml
  3. +1321
    -0
      sql/ry-ci4s-20240126.sql

+ 3
- 3
k8s/dockerfiles/conf/nginx.conf View File

@@ -11,7 +11,7 @@ http {
keepalive_timeout 65;

server {
listen 80;
listen 8000;
server_name localhost;

location / {
@@ -20,12 +20,12 @@ http {
index index.html index.htm;
}

location /prod-api/{
location /api/{
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header REMOTE-HOST $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass http://ruoyi-gateway:8080/;
proxy_pass http://ci4s-gateway-service.ci4s-test.svc:8082/;
}

# 避免actuator暴露


+ 35
- 0
k8s/k8s-12front.yaml View File

@@ -0,0 +1,35 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: ci4s-front-deployment
namespace: ci4s-test
spec:
replicas: 1
selector:
matchLabels:
app: ci4s-front
template:
metadata:
labels:
app: ci4s-front
spec:
containers:
- name: ci4s-front
image: ci4s-front:20240126
ports:
- containerPort: 8000

---
apiVersion: v1
kind: Service
metadata:
name: ci4s-front-service
namespace: ci4s-test
spec:
type: NodePort
ports:
- port: 8000
nodePort: 31213
protocol: TCP
selector:
app: ci4s-front

+ 1321
- 0
sql/ry-ci4s-20240126.sql
File diff suppressed because it is too large
View File


Loading…
Cancel
Save