This commit is contained in:
Roger 2024-04-20 18:56:55 +00:00
parent f39cd325b7
commit a986835e24
2 changed files with 11 additions and 11 deletions

View File

@ -25,13 +25,13 @@ spec:
memory: 256Mi
cpu: 200m
ports:
- containerPort: 3000
- containerPort: 8080
imagePullPolicy: IfNotPresent
env:
- name: NEXT_PUBLIC_REST_ENDPOINT
value: "192.168.1.130:30003"
- name: NEXT_PUBLIC_WS_ENDPOINT
value: "192.168.1.130:30005"
# - name: NEXT_PUBLIC_REST_ENDPOINT
# value: "192.168.1.130:30003"
#- name: NEXT_PUBLIC_WS_ENDPOINT
# value: "192.168.1.130:30005"
---
apiVersion: v1
kind: Service
@ -42,7 +42,7 @@ spec:
app: frontend
ports:
- protocol: TCP
port: 3000
targetPort: 3000
nodePort: 30001
type: NodePort
port: 8080
targetPort: 8080
externalTrafficPolicy: Local
type: LoadBalancer

View File

@ -9,8 +9,8 @@ spec:
- protocol: TCP
port: 1883
targetPort: 1883
nodePort: 30000
type: NodePort
externalTrafficPolicy: Local
type: LoadBalancer
---
apiVersion: apps/v1
kind: Deployment