diff --git a/dev-upgrade/nacos/nacos-no-pvc-ingress.yaml b/dev-upgrade/nacos/nacos-no-pvc-ingress.yaml index 400c35a..9554929 100644 --- a/dev-upgrade/nacos/nacos-no-pvc-ingress.yaml +++ b/dev-upgrade/nacos/nacos-no-pvc-ingress.yaml @@ -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 kind: Service @@ -17,9 +35,7 @@ spec: - port: 9848 name: client-rpc targetPort: 9848 - - port: 9849 - name: raft-rpc - targetPort: 9849 + --- apiVersion: v1 kind: ConfigMap @@ -31,6 +47,7 @@ data: mysql.port: "3306" mysql.user: "root" mysql.password: "Admin@2099" + --- apiVersion: apps/v1 kind: StatefulSet @@ -121,16 +138,11 @@ spec: value: "SSBhbSB0aGUgc3RhZmYgb2Ygd3d3LmJlYWNvbmZpcmVpbmMuY29tCg==" - name: NACOS_AUTH_IDENTITY_VALUE value: "SSBhbSB0aGUgc3RhZmYgb2Ygd3d3LmJlYWNvbmZpcmVpbmMuY29tCg==" - selector: - matchLabels: - selector: - matchLabels: selector: matchLabels: app: nacos --- -# ------------------- App Ingress ------------------- # apiVersion: networking.k8s.io/v1 kind: Ingress metadata: