Skip to content

Commit

Permalink
Merge remote-tracking branch 'github/main'
Browse files Browse the repository at this point in the history
  • Loading branch information
hexiaofeng committed May 16, 2024
2 parents 1b8a33b + 7b355d2 commit 4bbf03f
Show file tree
Hide file tree
Showing 5 changed files with 46 additions and 6 deletions.
File renamed without changes.
40 changes: 40 additions & 0 deletions joylive-demo/deploy/nacos.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: nacos-server
labels:
app: nacos-server
spec:
replicas: 1
selector:
matchLabels:
app: nacos-server
template:
metadata:
labels:
app: nacos-server
spec:
containers:
- name: nacos-server
image: nacos/nacos-server:latest
ports:
- containerPort: 8848
env:
- name: MODE
value: "standalone"
---
apiVersion: v1
kind: Service
metadata:
name: nacos-server
spec:
type: NodePort
selector:
app: nacos-server
ports:
- name: http
port: 8848
targetPort: 8848
- name: grpc
port: 9848
targetPort: 9848
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ spec:
containers:
- env:
- name: NACOS_ADDR
value: nacos.default.svc:8848
value: nacos-server.nacos.svc:8848
- name: NACOS_USERNAME
value: nacos
- name: NACOS_PASSWORD
Expand Down Expand Up @@ -101,7 +101,7 @@ spec:
containers:
- env:
- name: NACOS_ADDR
value: nacos.default.svc:8848
value: nacos-server.nacos.svc:8848
- name: NACOS_USERNAME
value: nacos
- name: NACOS_PASSWORD
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ spec:
containers:
- env:
- name: NACOS_ADDR
value: nacos.default.svc:8848
value: nacos-server.nacos.svc:8848
- name: NACOS_USERNAME
value: nacos
- name: NACOS_PASSWORD
Expand Down Expand Up @@ -111,7 +111,7 @@ spec:
containers:
- env:
- name: NACOS_ADDR
value: nacos.default.svc:8848
value: nacos-server.nacos.svc:8848
- name: NACOS_USERNAME
value: nacos
- name: NACOS_PASSWORD
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ spec:
containers:
- env:
- name: NACOS_ADDR
value: nacos.default.svc:8848
value: nacos-server.nacos.svc:8848
- name: NACOS_USERNAME
value: nacos
- name: NACOS_PASSWORD
Expand Down Expand Up @@ -101,7 +101,7 @@ spec:
containers:
- env:
- name: NACOS_ADDR
value: nacos.default.svc:8848
value: nacos-server.nacos.svc:8848
- name: NACOS_USERNAME
value: nacos
- name: NACOS_PASSWORD
Expand Down

0 comments on commit 4bbf03f

Please sign in to comment.