dev-k8s
This commit is contained in:
parent
f39cd325b7
commit
a986835e24
|
|
@ -25,13 +25,13 @@ spec:
|
||||||
memory: 256Mi
|
memory: 256Mi
|
||||||
cpu: 200m
|
cpu: 200m
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 3000
|
- containerPort: 8080
|
||||||
imagePullPolicy: IfNotPresent
|
imagePullPolicy: IfNotPresent
|
||||||
env:
|
env:
|
||||||
- name: NEXT_PUBLIC_REST_ENDPOINT
|
# - name: NEXT_PUBLIC_REST_ENDPOINT
|
||||||
value: "192.168.1.130:30003"
|
# value: "192.168.1.130:30003"
|
||||||
- name: NEXT_PUBLIC_WS_ENDPOINT
|
#- name: NEXT_PUBLIC_WS_ENDPOINT
|
||||||
value: "192.168.1.130:30005"
|
# value: "192.168.1.130:30005"
|
||||||
---
|
---
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Service
|
kind: Service
|
||||||
|
|
@ -42,7 +42,7 @@ spec:
|
||||||
app: frontend
|
app: frontend
|
||||||
ports:
|
ports:
|
||||||
- protocol: TCP
|
- protocol: TCP
|
||||||
port: 3000
|
port: 8080
|
||||||
targetPort: 3000
|
targetPort: 8080
|
||||||
nodePort: 30001
|
externalTrafficPolicy: Local
|
||||||
type: NodePort
|
type: LoadBalancer
|
||||||
|
|
|
||||||
|
|
@ -9,8 +9,8 @@ spec:
|
||||||
- protocol: TCP
|
- protocol: TCP
|
||||||
port: 1883
|
port: 1883
|
||||||
targetPort: 1883
|
targetPort: 1883
|
||||||
nodePort: 30000
|
externalTrafficPolicy: Local
|
||||||
type: NodePort
|
type: LoadBalancer
|
||||||
---
|
---
|
||||||
apiVersion: apps/v1
|
apiVersion: apps/v1
|
||||||
kind: Deployment
|
kind: Deployment
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user