当前位置: 首页 > news >正文

网站建设推广平台有哪些方面做动画的网站有哪些

网站建设推广平台有哪些方面,做动画的网站有哪些,wordpress火车头发布接口,邢台有什么网络公司目录 概述实践nfs安装使用 k8s持久化nacos安装创建角色部署数据库执行数据库初始化语句部署nacos ingress效果展示问题修复 结束 概述 本文主要对 nacos 在k8s上的集群安装 进行说明与实践。主要版本信息#xff0c;k8s: 1.27.x#xff0c;nacos: 2.0.3。运行环境为 centos 7… 目录 概述实践nfs安装使用 k8s持久化nacos安装创建角色部署数据库执行数据库初始化语句部署nacos ingress效果展示问题修复 结束 概述 本文主要对 nacos 在k8s上的集群安装 进行说明与实践。主要版本信息k8s: 1.27.xnacos: 2.0.3。运行环境为 centos 7.x。 实践 在线安装参考: nacos官网安装指南 离线安装: 需要参考 在线安装整理其中的镜像下载后上传私服(注意镜像地址及nfs相关修改其它默认就好)。 懒人快递: nfs-subdir-external-provisioner-4.0.2 mysql离线镜像安装包版本为5.7.26 nacos在k8s上集群化安装-nacos-2.0.3-k8s-1.27.x-yaml配置文件 , nacos-peer-finder-plugin-nacos集群安装所需要的镜像 nacos-server离线镜像安装包:链接https://pan.baidu.com/s/1uQ07yzIkXyQcu2wUPCHDqQ?pwd4utl 提取码4utl –来自百度网盘超级会员V2的分享 nfs 安装 centos 7.x 上安装 nfs repotrack -p nfs nfs-utils repotrack -p nfs rpcbind zip -r nfs.zip ./nfs rpm -ivh --replacefiles --replacepkgs --force --nodeps *.rpm # 安装nfs和rpc的软件包 yum install -y nfs-utils rpcbind # 开启nfs、rpcbind服务 systemctl start nfs systemctl start rpcbind # 开机自启 systemctl enable nfs systemctl enable rpcbind使用 [roothadoop02 ~]# mkdir -p /data/nfs [roothadoop02 data]# chmod 777 ./nfs ls /etc/exports cat /etc/exports vi /etc/exports /data/nfs *(rw,sync,no_root_squash) systemctl restart nfs systemctl restart rpcbind showmount -e 10.xx.xx.143k8s持久化 nacos集群安装使用到了两种类型的持久化策略一种直接使用卷挂载 nfs这种在mysql中使用另一种使用 pvc应用场景在 nacos 上。 mysql-nfs.yaml apiVersion: v1 kind: ReplicationController metadata:namespace: defaultname: mysqllabels:name: mysql spec:replicas: 1selector:name: mysqltemplate:metadata:labels:name: mysqlspec:containers:- name: mysqlimage: harbor.easzlab.io.local:8443/library/nacos/nacos-mysql:5.7ports:- containerPort: 3306volumeMounts:- name: mysql-datamountPath: /var/lib/mysqlenv:- name: MYSQL_ROOT_PASSWORDvalue: root- name: MYSQL_DATABASEvalue: nacos_devtest- name: MYSQL_USERvalue: nacos- name: MYSQL_PASSWORDvalue: nacosvolumes:- name: mysql-datanfs:server: 10.xx.xx.143path: /data/nfs/nacos/mysql --- apiVersion: v1 kind: Service metadata:name: mysqllabels:name: mysql spec:ports:- port: 3306targetPort: 3306selector:name: mysqlnacos-pvc-nfs.yaml 部分代码如下 apiVersion: v1 kind: ConfigMap metadata:namespace: testname: nacos-cm data:mysql.host: mysqlmysql.db.name: nacos_devtestmysql.port: 3306mysql.user: nacosmysql.password: nacos --- apiVersion: apps/v1 kind: StatefulSet metadata:namespace: testname: nacos spec:podManagementPolicy: ParallelserviceName: nacos-headlessreplicas: 3template:metadata:labels:app: nacosannotations:pod.alpha.kubernetes.io/initialized: truespec:affinity:podAntiAffinity:requiredDuringSchedulingIgnoredDuringExecution:- labelSelector:matchExpressions:- key: appoperator: Invalues:- nacostopologyKey: kubernetes.io/hostnameserviceAccountName: nfs-client-provisionerinitContainers:- name: peer-finder-plugin-installimage: harbor.easzlab.io.local:8443/library/nacos/nacos-peer-finder-plugin:1.1imagePullPolicy: AlwaysvolumeMounts:- mountPath: /home/nacos/plugins/peer-findername: datasubPath: peer-findercontainers:- name: nacosimagePullPolicy: Alwaysimage: harbor.easzlab.io.local:8443/library/nacos/nacos-server:latestresources:requests:memory: 2Gicpu: 500mports:- containerPort: 8848name: client-port- containerPort: 9848name: client-rpc- containerPort: 9849name: raft-rpc- containerPort: 7848name: old-raft-rpcenv:- name: NACOS_REPLICASvalue: 3- name: SERVICE_NAMEvalue: nacos-headless- name: DOMAIN_NAMEvalue: cluster.local- name: POD_NAMESPACEvalueFrom:fieldRef:apiVersion: v1fieldPath: metadata.namespace- name: MYSQL_SERVICE_HOSTvalueFrom:configMapKeyRef:name: nacos-cmkey: mysql.host- name: MYSQL_SERVICE_DB_NAMEvalueFrom:configMapKeyRef:name: nacos-cmkey: mysql.db.name- name: MYSQL_SERVICE_PORTvalueFrom:configMapKeyRef:name: nacos-cmkey: mysql.port- name: MYSQL_SERVICE_USERvalueFrom:configMapKeyRef:name: nacos-cmkey: mysql.user- name: MYSQL_SERVICE_PASSWORDvalueFrom:configMapKeyRef:name: nacos-cmkey: mysql.password- name: SPRING_DATASOURCE_PLATFORMvalue: mysql- name: NACOS_SERVER_PORTvalue: 8848- name: NACOS_APPLICATION_PORTvalue: 8848- name: PREFER_HOST_MODEvalue: hostnamevolumeMounts:- name: datamountPath: /home/nacos/plugins/peer-findersubPath: peer-finder- name: datamountPath: /home/nacos/datasubPath: data- name: datamountPath: /home/nacos/logssubPath: logsvolumeClaimTemplates:- metadata:name: dataannotations:volume.beta.kubernetes.io/storage-class: managed-nfs-storagespec:accessModes: [ ReadWriteMany ]resources:requests:storage: 2Giselector:matchLabels:app: nacosnacos安装 创建角色 [roothadoop01 nacos-k8s]# kubectl create -f deploy/nfs/rbac.yaml clusterrole.rbac.authorization.k8s.io/nfs-client-provisioner-runner created clusterrolebinding.rbac.authorization.k8s.io/run-nfs-client-provisioner created role.rbac.authorization.k8s.io/leader-locking-nfs-client-provisioner created rolebinding.rbac.authorization.k8s.io/leader-locking-nfs-client-provisioner created [roothadoop01 nacos-k8s]# kubectl create -f deploy/nfs/deployment.yaml serviceaccount/nfs-client-provisioner created deployment.apps/nfs-client-provisioner created [roothadoop01 nacos-k8s]# kubectl create -f deploy/nfs/class.yaml storageclass.storage.k8s.io/managed-nfs-storage created [roothadoop01 nacos-k8s]# kubectl get pod -l appnfs-client-provisioner NAME READY STATUS RESTARTS AGE nfs-client-provisioner-7ddb7b97b6-n4vh2 1/1 Running 0 24s部署数据库 [roothadoop01 nacos-k8s]# kubectl create -f deploy/mysql/mysql-nfs.yaml replicationcontroller/mysql created service/mysql created [roothadoop01 nacos-k8s]# kubectl get pod NAME READY STATUS RESTARTS AGE mysql-dl99b 1/1 Running 0 15s nfs-client-provisioner-7ddb7b97b6-n4vh2 1/1 Running 0 2m23skubectl exec -it mysql-dl99b CONTAINER_ID mysql -u nacos kubectl exec -it mysql-dl99b sh # mysql -h localhost -u nacos -p Enter password: 执行数据库初始化语句 不用执行已经好了 mysql show tables; ------------------------- | Tables_in_nacos_devtest | ------------------------- | config_info | | config_info_aggr | | config_info_beta | | config_info_tag | | config_tags_relation | | group_capacity | | his_config_info | | permissions | | roles | | tenant_capacity | | tenant_info | | users | ------------------------- 12 rows in set (0.00 sec)mysql select * from uses; ERROR 1146 (42S02): Table nacos_devtest.uses doesnt exist mysql select * from users; --------------------------------------------------------------------------------- | username | password | enabled | --------------------------------------------------------------------------------- | nacos | $2a$10$EuWPZHzz32dJN7jexM34MOeYirDdFAZm2kuWj7VEOJhhZkDrxfvUu | 1 | --------------------------------------------------------------------------------- 1 row in set (0.00 sec)mysql 部署nacos kubectl create -f deploy/nacos/nacos-pvc-nfs.yamlingress ingress-nacos.yaml 如有疑问请参考 k8s中ingress-nginx离线安装实践 #ingress apiVersion: networking.k8s.io/v1 kind: Ingress metadata:name: ingress-nacosnamespace: defaultannotations:nginx.ingress.kubernetes.io/rewrite-target: / # kubernetes.io/ingress.class: nginx spec:ingressClassName: nginxrules:- host: nacos.fun.comhttp:paths:- pathType: Prefixpath: /backend:service:name: nacos-headlessport:number: 8848 效果展示 访问地址http://nacos.fun.com:32570/nacos/index.html 直接使用 http://nacos.fun.com 是无法访问的。 问题修复 解决需要端口进行访问http://nacos.fun.com:32570/nacos/index.html #ingress apiVersion: networking.k8s.io/v1 kind: Ingress metadata:name: ingress-nacosnamespace: defaultannotations: # nginx.ingress.kubernetes.io/rewrite-target: / # kubernetes.io/ingress.class: nginx spec:ingressClassName: nginxrules:- host: nacos.fun.comhttp:paths:- pathType: Prefixpath: /backend:service:name: nacos-headlessport:number: 8848红线部分解决了带端口访问问题 结束 nacos在k8s上的集群安装实践
http://www.hkea.cn/news/14582864/

相关文章:

  • 能看网站的视频app如何做网站卖画
  • 可以查企业备案的网站吗外贸公司怎么做网站
  • 织梦做的网站别人提交给我留的言我去哪里看泰安专业的网络推广公司
  • 外卖网站开发方案抖音网站表白怎么做
  • 平面设计师磨刀石湖南网站推广优化
  • 网站界面布局电商小程序介绍
  • 网站可以做什么企业建站都有什么网站
  • 六师五家渠市建设局网站网站毕设代做多少钱
  • 网站开发的软件支持在线购物系统的分析与设计
  • 广东峰凌建设有限公司网站手机版网页制作
  • 丰台网站制作公司网站建设案例教程视频
  • 鞍山做网站优化网上做衣服的网站
  • ext做的网站有那些怎么做一个手机网站
  • 江苏广兴建设集团网站苏州网站建设开发公司
  • 网站备案要营业执照原件吗网站文章展示是做怎么
  • 重庆网站建站价格个人简历自我介绍200字
  • 网站开发专业有哪些网站开发前端需要学什么
  • 百度做网站续费费用单页网站作用是什么
  • 做旅游计划的网站兰州新区小程序建站
  • 广东泰通建设有限公司网站网站建设有哪些文件
  • 网站源码安全吗商标注册多少钱
  • 电子商务网站采用的开发技术如何零基础做网站
  • 汉中免费做网站公司品牌营销与推广
  • 那几家是做失物招领的网站asp.net网站开发案例
  • 权4网站怎么做企业邮箱是啥
  • 集团微信网站方案策划wordpress影视解析插件
  • 深圳英文网站建设网站是做流程
  • 一个空间2个网站代码东莞平面设计公司有哪些
  • 做国际贸易网站哪家好山西+网站建设
  • 专门找图片素材的网站网络设置的网站