update dockerfile

main
chatmoo 2023-07-17 16:24:38 +08:00
parent 5b3acfb03e
commit f9320bcaaa
1 changed files with 21 additions and 9 deletions

View File

@ -1,4 +1,22 @@
###使用自建数据库使用Ingress发布配置后台### apiVersion: v1
kind: Service
metadata:
name: nacos-public
labels:
app: nacos
spec:
type: NodePort
selector:
app: nacos
ports:
- port: 8848
name: server
targetPort: 8848
nodePort: 30848
- port: 9848
name: client-rpc
targetPort: 9848
nodePort: 30948
--- ---
apiVersion: v1 apiVersion: v1
kind: Service kind: Service
@ -17,9 +35,7 @@ spec:
- port: 9848 - port: 9848
name: client-rpc name: client-rpc
targetPort: 9848 targetPort: 9848
- port: 9849
name: raft-rpc
targetPort: 9849
--- ---
apiVersion: v1 apiVersion: v1
kind: ConfigMap kind: ConfigMap
@ -31,6 +47,7 @@ data:
mysql.port: "3306" mysql.port: "3306"
mysql.user: "root" mysql.user: "root"
mysql.password: "Admin@2099" mysql.password: "Admin@2099"
--- ---
apiVersion: apps/v1 apiVersion: apps/v1
kind: StatefulSet kind: StatefulSet
@ -121,16 +138,11 @@ spec:
value: "SSBhbSB0aGUgc3RhZmYgb2Ygd3d3LmJlYWNvbmZpcmVpbmMuY29tCg==" value: "SSBhbSB0aGUgc3RhZmYgb2Ygd3d3LmJlYWNvbmZpcmVpbmMuY29tCg=="
- name: NACOS_AUTH_IDENTITY_VALUE - name: NACOS_AUTH_IDENTITY_VALUE
value: "SSBhbSB0aGUgc3RhZmYgb2Ygd3d3LmJlYWNvbmZpcmVpbmMuY29tCg==" value: "SSBhbSB0aGUgc3RhZmYgb2Ygd3d3LmJlYWNvbmZpcmVpbmMuY29tCg=="
selector:
matchLabels:
selector:
matchLabels:
selector: selector:
matchLabels: matchLabels:
app: nacos app: nacos
--- ---
# ------------------- App Ingress ------------------- #
apiVersion: networking.k8s.io/v1 apiVersion: networking.k8s.io/v1
kind: Ingress kind: Ingress
metadata: metadata: