成人午夜视频全免费观看高清-秋霞福利视频一区二区三区-国产精品久久久久电影小说-亚洲不卡区三一区三区一区

nacos集群部署-k8s環(huán)境-創(chuàng)新互聯(lián)

通過StatefulSets?在Kubernetes上部署Nacos

成都創(chuàng)新互聯(lián)公司從2013年成立,公司以成都網(wǎng)站設(shè)計(jì)、網(wǎng)站制作、系統(tǒng)開發(fā)、網(wǎng)絡(luò)推廣、文化傳媒、企業(yè)宣傳、平面廣告設(shè)計(jì)等為主要業(yè)務(wù),適用行業(yè)近百種。服務(wù)企業(yè)客戶上1000家,涉及國內(nèi)多個(gè)省份客戶。擁有多年網(wǎng)站建設(shè)開發(fā)經(jīng)驗(yàn)。為企業(yè)提供專業(yè)的網(wǎng)站建設(shè)、創(chuàng)意設(shè)計(jì)、宣傳推廣等服務(wù)。 通過專業(yè)的設(shè)計(jì)、獨(dú)特的風(fēng)格,為不同客戶提供各種風(fēng)格的特色服務(wù)。

快速部署可以參考官網(wǎng)https://nacos.io/en-us/docs/use-nacos-with-kubernetes.html

1 快速部署

git?clone?https://github.com/nacos-group/nacos-k8s.git? cd?nacos-k8s chmod?+x?quick-startup.sh ./quick-startup.sh

1.2服務(wù)測試

服務(wù)注冊(cè) curl?-X?PUT?'http://cluster-ip:8848/nacos/v1/ns/instance?serviceName=nacos.naming.serviceName&ip=20.18.7.10&port=8080' 服務(wù)發(fā)現(xiàn) curl?-X?GET?'http://cluster-ip:8848/nacos/v1/ns/instances?serviceName=nacos.naming.serviceName' 發(fā)布配置 curl?-X?POST?"http://cluster-ip:8848/nacos/v1/cs/configs?dataId=nacos.cfg.dataId&group=test&content=helloWorld" 獲取配置 curl?-X?GET?"http://cluster-ip:8848/nacos/v1/cs/configs?dataId=nacos.cfg.dataId&group=test"

2 NFS方式部署。

NFS的使用是為了保留數(shù)據(jù),數(shù)據(jù)庫的數(shù)據(jù)以及nacos的數(shù)據(jù)日志等。

該方式部署需要對(duì)官方的yaml進(jìn)行修改,下面列出實(shí)測可用的步驟及yaml文件

2.1部署NFS服務(wù)環(huán)境

找一臺(tái)可以與k8s環(huán)境通信的內(nèi)網(wǎng)機(jī)器192.168.1.10,在機(jī)器上部署nfs服務(wù),選擇合適磁盤,作為共享目錄。

yum?install?-y?nfs-utils?rpcbind mkdir?-p?/data/nfs mkdir?-p?/data/mysql_master? mkdir?-p?/data/mysql_slave vim?/etc/exports /data/nfs?*(insecure,rw,async,no_root_squash) /data/mysql_slave?*(insecure,rw,async,no_root_squash) /data/mysql_master?*(insecure,rw,async,no_root_squash) systemctl?start?rpcbind systemctl?start?nfs systemctl?enable?rpcbind systemctl?enable?nfs-server exportfs?-a showmount?-e

2.2 k8s上部署nfs

cd?nacos-k8s/deploy/nfs/ [root@localhost?nfs]#?ll 總用量?12 -rw-r--r--.?1?root?root??153?10月?15?08:05?class.yaml -rw-r--r--.?1?root?root??877?10月?15?14:37?deployment.yaml -rw-r--r--.?1?root?root?1508?10月?15?08:05?rbac.yaml

2.2.1 創(chuàng)建rbac,使用默認(rèn)的rbac.yaml 不用修改,采用的是default命名空間,如果需要部署到特定的命名空間,則修改其中的namespace。

kubectl create -f rbac.yaml

kind:?ClusterRole apiVersion:?rbac.authorization.k8s.io/v1 metadata: ??name:?nfs-client-provisioner-runner rules: -?apiGroups:?[""] ??resources:?["persistentvolumes"] ??verbs:?["get",?"list",?"watch",?"create",?"delete"] -?apiGroups:?[""] ??resources:?["persistentvolumeclaims"] ??verbs:?["get",?"list",?"watch",?"update"] -?apiGroups:?[""] ??resources:?["endpoints"] ??verbs:?["get",?"list",?"watch",?"create",?"update",?"patch"] -?apiGroups:?["storage.k8s.io"] ??resources:?["storageclasses"] ??verbs:?["get",?"list",?"watch"] -?apiGroups:?[""] ??resources:?["events"] ??verbs:?["create",?"update",?"patch"] --- kind:?ClusterRoleBinding apiVersion:?rbac.authorization.k8s.io/v1 metadata: ??name:?run-nfs-client-provisioner subjects: -?kind:?ServiceAccount ??name:?nfs-client-provisioner ??namespace:?default roleRef: ??kind:?ClusterRole ??name:?nfs-client-provisioner-runner ??apiGroup:?rbac.authorization.k8s.io --- kind:?Role apiVersion:?rbac.authorization.k8s.io/v1 metadata: ??name:?leader-locking-nfs-client-provisioner rules: -?apiGroups:?[""] ??resources:?["endpoints"] ??verbs:?["get",?"list",?"watch",?"create",?"update",?"patch"] --- kind:?RoleBinding apiVersion:?rbac.authorization.k8s.io/v1 metadata: ??name:?leader-locking-nfs-client-provisioner subjects: -?kind:?ServiceAccount ??name:?nfs-client-provisioner ??#?replace?with?namespace?where?provisioner?is?deployed ??namespace:?default roleRef: ??kind:?Role ??name:?leader-locking-nfs-client-provisioner

2.2.2?創(chuàng)建ServiceAccount和部署NFS-Client Provisioner

kubectl create -f deployment.yaml? ? ##修改ip和目錄

apiVersion:?v1 kind:?ServiceAccount metadata: ??name:?nfs-client-provisioner --- kind:?Deployment apiVersion:?extensions/v1beta1 metadata: ??name:?nfs-client-provisioner spec: ??replicas:?1 ??strategy: ????type:?Recreate ??template: ????metadata: ??????labels: ????????app:?nfs-client-provisioner ????spec: ??????serviceAccount:?nfs-client-provisioner ??????containers: ??????-?name:?nfs-client-provisioner ????????image:?quay.io/external_storage/nfs-client-provisioner:latest ????????volumeMounts: ????????-?name:?nfs-client-root ??????????mountPath:?/persistentvolumes ????????env: ????????-?name:?PROVISIONER_NAME ??????????value:?fuseim.pri/ifs ????????-?name:?NFS_SERVER ??????????value:?192.168.1.10 ????????-?name:?NFS_PATH ??????????value:?/data/nfs ??????volumes: ??????-?name:?nfs-client-root ????????nfs: ??????????server:?192.168.1.10 ??????????path:?/data/nfs

2.2.3?創(chuàng)建NFS StorageClass

kubectl create -f class.yaml? ?##無需修改yaml

apiVersion:?storage.k8s.io/v1 kind:?StorageClass metadata: ??name:?managed-nfs-storage provisioner:?fuseim.pri/ifs parameters: ??archiveOnDelete:?"false"

2.3 部署數(shù)據(jù)庫

cd nacos-k8s/deploy/mysql/

2.3.1部署主數(shù)據(jù)庫

kubectl create -f mysql-master-nfs.yaml? ##需要修改的是nfs的IP和目錄

apiVersion:?v1 kind:?ReplicationController metadata: ??name:?mysql-master ??labels: ????name:?mysql-master spec: ??replicas:?1 ??selector: ????name:?mysql-master ??template: ????metadata: ??????labels: ????????name:?mysql-master ????spec: ??????containers: ??????-?name:?master ????????image:?nacos/nacos-mysql-master:latest ????????ports: ????????-?containerPort:?3306 ????????volumeMounts: ????????-?name:?mysql-master-data ??????????mountPath:?/var/lib/mysql ????????env: ????????-?name:?MYSQL_ROOT_PASSWORD ??????????value:?"root" ????????-?name:?MYSQL_DATABASE ??????????value:?"nacos_devtest" ????????-?name:?MYSQL_USER ??????????value:?"nacos" ????????-?name:?MYSQL_PASSWORD ??????????value:?"nacos" ????????-?name:?MYSQL_REPLICATION_USER ??????????value:?'nacos_ru' ????????-?name:?MYSQL_REPLICATION_PASSWORD ??????????value:?'nacos_ru' ??????volumes: ??????-?name:?mysql-master-data ????????nfs: ??????????server:?192.168.1.10 ??????????path:?/data/mysql_master --- apiVersion:?v1 kind:?Service metadata: ??name:?mysql-master ??labels: ????name:?mysql-master spec: ??ports: ??-?port:?3306 ????targetPort:?3306 ??selector: ????name:?mysql-master

2.3.2 部署從數(shù)據(jù)庫

kubectl create -f??mysql-slave-nfs.yaml

apiVersion:?v1 kind:?ReplicationController metadata: ??name:?mysql-slave ??labels: ????name:?mysql-slave spec: ??replicas:?1 ??selector: ????name:?mysql-slave ??template: ????metadata: ??????labels: ????????name:?mysql-slave ????spec: ??????containers: ??????-?name:?slave ????????image:?nacos/nacos-mysql-slave:latest ????????ports: ????????-?containerPort:?3306 ????????volumeMounts: ????????-?name:?mysql-slave-data ??????????mountPath:?/var/lib/mysql ????????env: ????????-?name:?MYSQL_ROOT_PASSWORD ??????????value:?"root" ????????-?name:?MYSQL_REPLICATION_USER ??????????value:?'nacos_ru' ????????-?name:?MYSQL_REPLICATION_PASSWORD ??????????value:?'nacos_ru' ??????volumes: ??????-?name:?mysql-slave-data ????????nfs: ??????????server:?192.168.1.10 ??????????path:?/data/mysql_slave --- apiVersion:?v1 kind:?Service metadata: ??name:?mysql-slave ??labels: ????name:?mysql-slave spec: ??ports: ??-?port:?3306 ????targetPort:?3306 ??selector: ????name:?mysql-slave

2.4? 部署nacos

cd?nacos-k8s/deploy/nacos/

kubectl create -f nacos-pvc-nfs.yaml? ?##該文件需要大修改,主要是改成基于quickstart版本增加掛載,其他無關(guān)的內(nèi)容清理掉,具體如下

注意- name: NACOS_SERVERS這一項(xiàng),創(chuàng)建時(shí)候域名是會(huì)自動(dòng)生成一個(gè)這樣的cluster.local,nacos-0.nacos-headless.default.svc.cluster.local:8848,我的k8s默認(rèn)集群名設(shè)置成了cluster.test。所以文件中修改成這樣的nacos-0.nacos-headless.default.svc.cluster.test:8848。

--- apiVersion:?v1 kind:?Service metadata: ??name:?nacos-headless ??labels: ????app:?nacos-headless spec: ??ports: ????-?port:?8848 ??????name:?server ??????targetPort:?8848 ??selector: ????app:?nacos --- apiVersion:?v1 kind:?ConfigMap metadata: ??name:?nacos-cm data: ??mysql.master.db.name:?"nacos_devtest" ??mysql.master.port:?"3306" ??mysql.slave.port:?"3306" ??mysql.master.user:?"nacos" ??mysql.master.password:?"nacos" --- apiVersion:?apps/v1 kind:?StatefulSet metadata: ??name:?nacos spec: ??serviceName:?nacos-headless ??replicas:?3 ??template: ????metadata: ??????labels: ????????app:?nacos ??????annotations: ????????pod.alpha.kubernetes.io/initialized:?"true" ????spec: ??????affinity: ????????podAntiAffinity: ??????????requiredDuringSchedulingIgnoredDuringExecution: ????????????-?labelSelector: ????????????????matchExpressions: ??????????????????-?key:?"app" ????????????????????operator:?In ????????????????????values: ??????????????????????-?nacos-headless ??????????????topologyKey:?"kubernetes.io/hostname" ??????containers: ????????-?name:?k8snacos ??????????imagePullPolicy:?Always ??????????image:?nacos/nacos-server:latest ??????????resources: ????????????requests: ??????????????memory:?"2Gi" ??????????????cpu:?"500m" ??????????ports: ????????????-?containerPort:?8848 ??????????????name:?client ??????????env: ????????????-?name:?NACOS_REPLICAS ??????????????value:?"3" ????????????-?name:?SERVICE_NAME ??????????????value:?"nacos-headless" ????????????-?name:?POD_NAMESPACE ??????????????valueFrom: ????????????????fieldRef: ??????????????????apiVersion:?v1 ??????????????????fieldPath:?metadata.namespace ????????????-?name:?MYSQL_MASTER_SERVICE_DB_NAME ??????????????valueFrom: ????????????????configMapKeyRef: ??????????????????name:?nacos-cm ??????????????????key:?mysql.master.db.name ????????????-?name:?MYSQL_MASTER_SERVICE_PORT ??????????????valueFrom: ????????????????configMapKeyRef: ??????????????????name:?nacos-cm ??????????????????key:?mysql.master.port ????????????-?name:?MYSQL_SLAVE_SERVICE_PORT ??????????????valueFrom: ????????????????configMapKeyRef: ??????????????????name:?nacos-cm ??????????????????key:?mysql.slave.port ????????????-?name:?MYSQL_MASTER_SERVICE_USER ??????????????valueFrom: ????????????????configMapKeyRef: ??????????????????name:?nacos-cm ??????????????????key:?mysql.master.user ????????????-?name:?MYSQL_MASTER_SERVICE_PASSWORD ??????????????valueFrom: ????????????????configMapKeyRef: ??????????????????name:?nacos-cm ??????????????????key:?mysql.master.password ????????????-?name:?NACOS_SERVER_PORT ??????????????value:?"8848" ????????????-?name:?PREFER_HOST_MODE ??????????????value:?"hostname" ????????????-?name:?NACOS_SERVERS ??????????????value:?"nacos-0.nacos-headless.default.svc.cluster.test:8848?nacos-1.nacos-headless.default.svc.cluster.test:8848?nacos-2.nacos-headless.default.svc.cluster.test:8848" ??????????volumeMounts: ????????????-?name:?datadir ??????????????mountPath:?/home/nacos/data ????????????-?name:?logdir ??????????????mountPath:?/home/nacos/logs ??volumeClaimTemplates: ????-?metadata: ????????name:?datadir ????????annotations: ??????????volume.beta.kubernetes.io/storage-class:?"managed-nfs-storage" ??????spec: ????????accessModes:?[?"ReadWriteMany"?] ????????resources: ??????????requests: ????????????storage:?5Gi ????-?metadata: ????????name:?logdir ????????annotations: ??????????volume.beta.kubernetes.io/storage-class:?"managed-nfs-storage" ??????spec: ????????accessModes:?[?"ReadWriteMany"?] ????????resources: ??????????requests: ????????????storage:?5Gi ??selector: ????matchLabels: ??????app:?nacos

也可以使用這種原始的

--- apiVersion:?v1 kind:?Service metadata: ??name:?nacos-headless ??labels: ????app:?nacos ??annotations: ????service.alpha.kubernetes.io/tolerate-unready-endpoints:?"true" spec: ??ports: ????-?port:?8848 ??????name:?server ??????targetPort:?8848 ??clusterIP:?None ??selector: ????app:?nacos --- apiVersion:?v1 kind:?ConfigMap metadata: ??name:?nacos-cm data: ??mysql.master.db.name:?"nacos_devtest" ??mysql.master.port:?"3306" ??mysql.slave.port:?"3306" ??mysql.master.user:?"nacos" ??mysql.master.password:?"nacos" --- apiVersion:?apps/v1 kind:?StatefulSet metadata: ??name:?nacos spec: ??serviceName:?nacos-headless ??replicas:?2 ??template: ????metadata: ??????labels: ????????app:?nacos ??????annotations: ????????pod.alpha.kubernetes.io/initialized:?"true" ????spec: ??????affinity: ????????podAntiAffinity: ??????????requiredDuringSchedulingIgnoredDuringExecution: ????????????-?labelSelector: ????????????????matchExpressions: ??????????????????-?key:?"app" ????????????????????operator:?In ????????????????????values: ??????????????????????-?nacos ??????????????topologyKey:?"kubernetes.io/hostname" ??????serviceAccountName:?nfs-client-provisioner ??????initContainers: ????????-?name:?peer-finder-plugin-install ??????????image:?nacos/nacos-peer-finder-plugin:latest ??????????imagePullPolicy:?Always ??????????volumeMounts: ????????????-?mountPath:?"/home/nacos/plugins/peer-finder" ??????????????name:?plugindir ??????containers: ????????-?name:?nacos ??????????imagePullPolicy:?Always ??????????image:?nacos/nacos-server:latest ??????????resources: ????????????requests: ??????????????memory:?"2Gi" ??????????????cpu:?"1000m" ??????????ports: ????????????-?containerPort:?8848 ??????????????name:?client-port ??????????env: ????????????-?name:?NACOS_REPLICAS ??????????????value:?"3" ????????????-?name:?SERVICE_NAME ??????????????value:?"nacos-headless" ????????????-?name:?POD_NAMESPACE ??????????????valueFrom: ????????????????fieldRef: ??????????????????apiVersion:?v1 ??????????????????fieldPath:?metadata.namespace ????????????-?name:?MYSQL_MASTER_SERVICE_DB_NAME ??????????????valueFrom: ????????????????configMapKeyRef: ??????????????????name:?nacos-cm ??????????????????key:?mysql.master.db.name ????????????-?name:?MYSQL_MASTER_SERVICE_PORT ??????????????valueFrom: ????????????????configMapKeyRef: ??????????????????name:?nacos-cm ??????????????????key:?mysql.master.port ????????????-?name:?MYSQL_SLAVE_SERVICE_PORT ??????????????valueFrom: ????????????????configMapKeyRef: ??????????????????name:?nacos-cm ??????????????????key:?mysql.slave.port ????????????-?name:?MYSQL_MASTER_SERVICE_USER ??????????????valueFrom: ????????????????configMapKeyRef: ??????????????????name:?nacos-cm ??????????????????key:?mysql.master.user ????????????-?name:?MYSQL_MASTER_SERVICE_PASSWORD ??????????????valueFrom: ????????????????configMapKeyRef: ??????????????????name:?nacos-cm ??????????????????key:?mysql.master.password ????????????-?name:?NACOS_SERVER_PORT ??????????????value:?"8848" ????????????-?name:?PREFER_HOST_MODE ??????????????value:?"hostname" ??????????readinessProbe: ????????????httpGet: ??????????????port:?client-port ??????????????path:?/nacos/v1/console/health/readiness ????????????initialDelaySeconds:?60 ????????????timeoutSeconds:?3 ??????????livenessProbe: ????????????httpGet: ??????????????port:?client-port ??????????????path:?/nacos/v1/console/health/liveness ????????????initialDelaySeconds:?60 ????????????timeoutSeconds:?3 ??????????volumeMounts: ????????????-?name:?plugindir ??????????????mountPath:?/home/nacos/plugins/peer-finder ????????????-?name:?datadir ??????????????mountPath:?/home/nacos/data ????????????-?name:?logdir ??????????????mountPath:?/home/nacos/logs ??volumeClaimTemplates: ????-?metadata: ????????name:?plugindir ????????annotations: ??????????volume.beta.kubernetes.io/storage-class:?"managed-nfs-storage" ??????spec: ????????accessModes:?[?"ReadWriteMany"?] ????????resources: ??????????requests: ????????????storage:?5Gi ????-?metadata: ????????name:?datadir ????????annotations: ??????????volume.beta.kubernetes.io/storage-class:?"managed-nfs-storage" ??????spec: ????????accessModes:?[?"ReadWriteMany"?] ????????resources: ??????????requests: ????????????storage:?5Gi ????-?metadata: ????????name:?logdir ????????annotations: ??????????volume.beta.kubernetes.io/storage-class:?"managed-nfs-storage" ??????spec: ????????accessModes:?[?"ReadWriteMany"?] ????????resources: ??????????requests: ????????????storage:?5Gi ??selector: ????matchLabels: ??????app:?nacos

查看結(jié)果

[root@localhost?nacos]#?kubectl?get?pod? NAME???????????????????????????????????????????READY???STATUS?????????????RESTARTS???AGE mysql-master-hnnzq?????????????????????????????1/1?????Running????????????0??????????43h mysql-slave-jjq98??????????????????????????????1/1?????Running????????????0??????????43h nacos-0????????????????????????????????????????1/1?????Running????????????0??????????41h nacos-1????????????????????????????????????????1/1?????Running????????????0??????????41h nacos-2????????????????????????????????????????1/1?????Running????????????0??????????41h nfs-client-provisioner-57c8c85896-cpxtx????????1/1?????Running????????????0??????????45h [root@localhost?nacos]#?kubectl?get?svc NAME???????????????????????????????TYPE????????CLUSTER-IP??????EXTERNAL-IP???PORT(S)?????AGE kubernetes?????????????????????????ClusterIP???172.21.0.1??????<none>????????443/TCP?????9d mysql-master???????????????????????ClusterIP???172.21.12.11????<none>????????3306/TCP????43h mysql-slave????????????????????????ClusterIP???172.21.1.9??????<none>????????3306/TCP????43h nacos-headless?????????????????????ClusterIP???172.21.11.220???<none>????????8848/TCP????41h nginx-svc??????????????????????????ClusterIP???172.21.1.104????<none>????????10080/TCP???8d [root@localhost?nacos]#?kubectl?get?storageclass NAME???????????????????????PROVISIONER??????AGE alicloud-disk-available????alicloud/disk????9d alicloud-disk-efficiency???alicloud/disk????9d alicloud-disk-essd?????????alicloud/disk????9d alicloud-disk-ssd??????????alicloud/disk????9d managed-nfs-storage????????fuseim.pri/ifs???45h[root@localhost?nacos]#?kubectl?get?pv,pvc NAME????????????????????????????????????????????????????????CAPACITY???ACCESS?MODES???RECLAIM?POLICY???STATUS???CLAIM???????????????????????STORAGECLASS??????????REASON???AGE persistentvolume/pvc-c920f9cf-f56f-11e9-90dc-da6119823c38???5Gi????????RWX????????????Delete???????????Bound????default/datadir-nacos-0?????managed-nfs-storage????????????43h persistentvolume/pvc-c921977d-f56f-11e9-90dc-da6119823c38???5Gi????????RWX????????????Delete???????????Bound????default/logdir-nacos-0??????managed-nfs-storage????????????43h persistentvolume/pvc-c922401f-f56f-11e9-90dc-da6119823c38???5Gi????????RWX????????????Delete???????????Bound????default/plugindir-nacos-0???managed-nfs-storage????????????43h persistentvolume/pvc-db3ccda6-f56f-11e9-90dc-da6119823c38???5Gi????????RWX????????????Delete???????????Bound????default/datadir-nacos-1?????managed-nfs-storage????????????43h persistentvolume/pvc-db3dc25a-f56f-11e9-90dc-da6119823c38???5Gi????????RWX????????????Delete???????????Bound????default/logdir-nacos-1??????managed-nfs-storage????????????43h persistentvolume/pvc-db3eb86c-f56f-11e9-90dc-da6119823c38???5Gi????????RWX????????????Delete???????????Bound????default/plugindir-nacos-1???managed-nfs-storage????????????43h persistentvolume/pvc-fa47ae6e-f57a-11e9-90dc-da6119823c38???5Gi????????RWX????????????Delete???????????Bound????default/logdir-nacos-2??????managed-nfs-storage????????????41h persistentvolume/pvc-fa489723-f57a-11e9-90dc-da6119823c38???5Gi????????RWX????????????Delete???????????Bound????default/plugindir-nacos-2???managed-nfs-storage????????????41h persistentvolume/pvc-fa494137-f57a-11e9-90dc-da6119823c38???5Gi????????RWX????????????Delete???????????Bound????default/datadir-nacos-2?????managed-nfs-storage????????????41h NAME??????????????????????????????????????STATUS???VOLUME?????????????????????????????????????CAPACITY???ACCESS?MODES???STORAGECLASS??????????AGE persistentvolumeclaim/datadir-nacos-0?????Bound????pvc-c920f9cf-f56f-11e9-90dc-da6119823c38???5Gi????????RWX????????????managed-nfs-storage???43h persistentvolumeclaim/datadir-nacos-1?????Bound????pvc-db3ccda6-f56f-11e9-90dc-da6119823c38???5Gi????????RWX????????????managed-nfs-storage???43h persistentvolumeclaim/datadir-nacos-2?????Bound????pvc-fa494137-f57a-11e9-90dc-da6119823c38???5Gi????????RWX????????????managed-nfs-storage???41h persistentvolumeclaim/logdir-nacos-0??????Bound????pvc-c921977d-f56f-11e9-90dc-da6119823c38???5Gi????????RWX????????????managed-nfs-storage???43h persistentvolumeclaim/logdir-nacos-1??????Bound????pvc-db3dc25a-f56f-11e9-90dc-da6119823c38???5Gi????????RWX????????????managed-nfs-storage???43h persistentvolumeclaim/logdir-nacos-2??????Bound????pvc-fa47ae6e-f57a-11e9-90dc-da6119823c38???5Gi????????RWX????????????managed-nfs-storage???41h persistentvolumeclaim/plugindir-nacos-0???Bound????pvc-c922401f-f56f-11e9-90dc-da6119823c38???5Gi????????RWX????????????managed-nfs-storage???43h persistentvolumeclaim/plugindir-nacos-1???Bound????pvc-db3eb86c-f56f-11e9-90dc-da6119823c38???5Gi????????RWX????????????managed-nfs-storage???43h persistentvolumeclaim/plugindir-nacos-2???Bound????pvc-fa489723-f57a-11e9-90dc-da6119823c38???5Gi????????RWX????????????managed-nfs-storage???41h [root@localhost?nacos]#

然后用ingress映射出去就可以訪問8848端口

nacos集群部署-k8s環(huán)境

另外有需要云服務(wù)器可以了解下創(chuàng)新互聯(lián)cdcxhl.cn,海內(nèi)外云服務(wù)器15元起步,三天無理由+7*72小時(shí)售后在線,公司持有idc許可證,提供“云服務(wù)器、裸金屬服務(wù)器、高防服務(wù)器、香港服務(wù)器、美國服務(wù)器、虛擬主機(jī)、免備案服務(wù)器”等云主機(jī)租用服務(wù)以及企業(yè)上云的綜合解決方案,具有“安全穩(wěn)定、簡單易用、服務(wù)可用性高、性價(jià)比高”等特點(diǎn)與優(yōu)勢,專為企業(yè)上云打造定制,能夠滿足用戶豐富、多元化的應(yīng)用場景需求。

網(wǎng)頁名稱:nacos集群部署-k8s環(huán)境-創(chuàng)新互聯(lián)
標(biāo)題路徑:http://jinyejixie.com/article24/dpcpce.html

成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供定制網(wǎng)站網(wǎng)站設(shè)計(jì)、品牌網(wǎng)站制作電子商務(wù)、做網(wǎng)站響應(yīng)式網(wǎng)站

廣告

聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請(qǐng)盡快告知,我們將會(huì)在第一時(shí)間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場,如需處理請(qǐng)聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時(shí)需注明來源: 創(chuàng)新互聯(lián)

成都網(wǎng)頁設(shè)計(jì)公司
土默特左旗| 拜泉县| 秦安县| 信丰县| 杂多县| 巴彦淖尔市| 金乡县| 庆阳市| 丹东市| 临海市| 石楼县| 沭阳县| 吴江市| 乐清市| 平原县| 克山县| 洛南县| 永春县| 黔西| 遵义市| 漯河市| 沁水县| 福泉市| 建阳市| 玛沁县| 北辰区| 磐石市| 诸城市| 泸州市| 凤山市| 罗源县| 阳新县| 梁河县| 大足县| 丹寨县| 八宿县| 龙门县| 会泽县| 宜阳县| 赣榆县| 连山|