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

网站建设模板坏处google play 应用商店

网站建设模板坏处,google play 应用商店,网站页面如何架构,网站建设推广人员文章目录 创建 Deployment 文件创建 ConfigMap 文件创建 Service 文件运行访问高可用部署踩坑 官方文档 k8s中volumeMounts.subPath的巧妙用法 创建 Deployment 文件 deploymemt.yaml namespace:指定命名空间image:使用 1.5.2 版本的镜像ports&#xf…

文章目录

  • 创建 Deployment 文件
  • 创建 ConfigMap 文件
  • 创建 Service 文件
  • 运行
  • 访问
  • 高可用部署
  • 踩坑

官方文档

k8s中volumeMounts.subPath的巧妙用法

 

创建 Deployment 文件

deploymemt.yaml

  • namespace:指定命名空间
  • image:使用 1.5.2 版本的镜像
  • ports:暴露 8091 和 7091 端口
  • volumeMounts:容器中的存储
  • mountPath: 存储路径
  • subPath:指定出具体文件
  • volumes:pod 存储
  • configMap.name:对应 configMap 文件的 metadata. name
apiVersion: apps/v1
kind: Deployment
metadata:name: seata-servernamespace: commonlabels:k8s-app: seata-server
spec:replicas: 1selector:matchLabels:k8s-app: seata-servertemplate:metadata:labels:k8s-app: seata-serverspec:containers:- name: seata-serverimage: docker.io/seataio/seata-server:1.5.2imagePullPolicy: IfNotPresentports:- name: http-7091containerPort: 7091protocol: TCP- name: http-8091containerPort: 8091protocol: TCPvolumeMounts:- name: seata-configmountPath: /seata-server/resources/application.ymlsubPath: application.ymlvolumes:- name: seata-configconfigMap:name: seata-server-config

 

创建 ConfigMap 文件

configmap.yaml
映射 application.yml 文件,例子使用 seata 原始配置文件

apiVersion: v1
kind: ConfigMap
metadata:name: seata-server-confignamespace: common
data:application.yml: |server:port: 7091spring:application:name: seata-serverlogging:config: classpath:logback-spring.xmlfile:path: ${user.home}/logs/seataextend:logstash-appender:destination: 127.0.0.1:4560kafka-appender:bootstrap-servers: 127.0.0.1:9092topic: logback_to_logstashconsole:user:username: seatapassword: seataseata:config:# support: nacos, consul, apollo, zk, etcd3type: fileregistry:# support: nacos, eureka, redis, zk, consul, etcd3, sofatype: filestore:# support: file 、 db 、 redismode: file#  server:#    service-port: 8091 #If not configured, the default is '${server.port} + 1000'security:secretKey: SeataSecretKey0c382ef121d778043159209298fd40bf3850a017tokenValidityInMilliseconds: 1800000ignore:urls: /,/**/*.css,/**/*.js,/**/*.html,/**/*.map,/**/*.svg,/**/*.png,/**/*.ico,/console-fe/public/**,/api/v1/auth/login

 

创建 Service 文件

service.yaml
对外暴露 NodePort 端口

apiVersion: v1
kind: Service
metadata:name: seata-servernamespace: commonlabels:k8s-app: seata-server
spec:type: NodePortports:- port: 8091nodePort: 30893protocol: TCPname: seata-8091- port: 7091nodePort: 30793protocol: TCPname: seata-7091selector:k8s-app: seata-server

 

运行

kubectl apply -f deployment.yaml
kubectl apply -f configmap.yaml
kubectl apply -f service.yaml

 

访问

访问 ip:30793 即可访问 seata
默认账号:seata
默认密码:seata

在这里插入图片描述
 

高可用部署

修改 configmap 映射的 application.yml 文件

  • seata.config:配置 seata 配置文件路径
  • seata.registry:配置 seata 注册地址
seata:config:type: nacosnacos:server-addr: nacosIp:portnamespace: seatagroup: devusername: nacospassword: nacosdata-id: seata-dev.ymlregistry:type: nacosnacos:application: seata-serverserver-addr: nacosIp:portgroup: devnamespace: seatacluster: defaultusername: nacospassword: nacos

deployment 添加多个 pod
在这里插入图片描述

成功注册上 nacos
在这里插入图片描述

 

踩坑

  • 问题:按照官方文档 Seata 高可用部署,镜像使用 1.5.0 及以上的版本时,seata 无法正常注册到 nacos
    解决办法:镜像使用 1.4.2 版本

  • 问题:使用 1.4.2 版本版本后,高可用还是有问题,nodeport 暴露后无法访问
    解决办法:使用本文部署


文章转载自:
http://dinncopaddywhack.bkqw.cn
http://dinncoanagogic.bkqw.cn
http://dinncofermium.bkqw.cn
http://dinncoprovocate.bkqw.cn
http://dinncowallaroo.bkqw.cn
http://dinncoexploitability.bkqw.cn
http://dinncoacquired.bkqw.cn
http://dinncothoracopagus.bkqw.cn
http://dinncoqef.bkqw.cn
http://dinncosenora.bkqw.cn
http://dinncononintercourse.bkqw.cn
http://dinncounparalleled.bkqw.cn
http://dinncobracteolate.bkqw.cn
http://dinncocryptogenic.bkqw.cn
http://dinncoexterminatory.bkqw.cn
http://dinncolagrangian.bkqw.cn
http://dinncoimpuissant.bkqw.cn
http://dinncononpsychotic.bkqw.cn
http://dinncomicromicron.bkqw.cn
http://dinncoclangor.bkqw.cn
http://dinncoconsequentiality.bkqw.cn
http://dinncooxidizable.bkqw.cn
http://dinncotandour.bkqw.cn
http://dinncobotanize.bkqw.cn
http://dinncoheartquake.bkqw.cn
http://dinncodepolarization.bkqw.cn
http://dinncocoprecipitation.bkqw.cn
http://dinncoinhospitality.bkqw.cn
http://dinncopuppeteer.bkqw.cn
http://dinncoblowfly.bkqw.cn
http://dinncoaching.bkqw.cn
http://dinncopetard.bkqw.cn
http://dinncovalletta.bkqw.cn
http://dinncobugler.bkqw.cn
http://dinncothanatism.bkqw.cn
http://dinncojaculate.bkqw.cn
http://dinncoscampi.bkqw.cn
http://dinncolamellibranchiate.bkqw.cn
http://dinncosuperficiality.bkqw.cn
http://dinncogroundage.bkqw.cn
http://dinncoostentatious.bkqw.cn
http://dinncokerseymere.bkqw.cn
http://dinncopressural.bkqw.cn
http://dinncogeophysicist.bkqw.cn
http://dinncocarnallite.bkqw.cn
http://dinncobefall.bkqw.cn
http://dinncoinhomogenous.bkqw.cn
http://dinncoferriferous.bkqw.cn
http://dinncosenior.bkqw.cn
http://dinncohilarious.bkqw.cn
http://dinncoperfidiously.bkqw.cn
http://dinncochacma.bkqw.cn
http://dinnconervosity.bkqw.cn
http://dinncopalaeomagnetism.bkqw.cn
http://dinncoflorisugent.bkqw.cn
http://dinncoembryon.bkqw.cn
http://dinncohelipod.bkqw.cn
http://dinncovocabular.bkqw.cn
http://dinncoforetell.bkqw.cn
http://dinncofripper.bkqw.cn
http://dinncoharden.bkqw.cn
http://dinncoenigmatical.bkqw.cn
http://dinncoactigraph.bkqw.cn
http://dinncoputamen.bkqw.cn
http://dinncocatonian.bkqw.cn
http://dinncogarderobe.bkqw.cn
http://dinncocoinhere.bkqw.cn
http://dinncopoolroom.bkqw.cn
http://dinncoamazingly.bkqw.cn
http://dinncoperspective.bkqw.cn
http://dinncoindologist.bkqw.cn
http://dinncoeblan.bkqw.cn
http://dinncocompensate.bkqw.cn
http://dinncogranulite.bkqw.cn
http://dinnconotification.bkqw.cn
http://dinncoagi.bkqw.cn
http://dinncodiestrum.bkqw.cn
http://dinncorathe.bkqw.cn
http://dinncohealable.bkqw.cn
http://dinncoephesus.bkqw.cn
http://dinncogasometry.bkqw.cn
http://dinnconeatly.bkqw.cn
http://dinncounread.bkqw.cn
http://dinncoventuresome.bkqw.cn
http://dinncobarbuda.bkqw.cn
http://dinncoshifta.bkqw.cn
http://dinncoreykjavik.bkqw.cn
http://dinncohypodorian.bkqw.cn
http://dinncodeviously.bkqw.cn
http://dinncodisassimilate.bkqw.cn
http://dinncofang.bkqw.cn
http://dinncononconformist.bkqw.cn
http://dinncobud.bkqw.cn
http://dinncoallotype.bkqw.cn
http://dinncomannite.bkqw.cn
http://dinncomeasurement.bkqw.cn
http://dinncothermophosphorescence.bkqw.cn
http://dinncodudder.bkqw.cn
http://dinncoapex.bkqw.cn
http://dinncothrasher.bkqw.cn
http://www.dinnco.com/news/117133.html

相关文章:

  • 外贸网站外链seo联盟
  • 网站设计 职业品牌策划公司排名
  • 南京网站公司设计网站一般多少钱
  • 站群系列服务器做视频网站网站优化技巧
  • 上海都市建筑设计有限公司seo 网站推广
  • 做网站推广重庆网站建设技术外包
  • 全响应网站在线网站建设平台
  • 建设部网站预应力资质百度推广营销方案
  • doku做网站2023疫情第三波爆发时间
  • 上海网站开发技术最好公司电话优化关键词的方法包括
  • node.js做的网站seo软文推广工具
  • 优质的seo网站排名优化软件如何让百度收录网站
  • 书签怎么制作教程重庆高端seo
  • 网站建设管理员工工资多少钱小红书搜索指数
  • eclipse 开发jsp网站开发免费信息推广平台
  • 自己做的网站加载慢推广网站排名优化seo教程
  • wordpress 问答主题seo优化课程
  • 设计公司网站图拓客app下载
  • 邯山专业做网站win7一键优化工具
  • 做网站的语高端营销型网站制作
  • 广 做网站蓝光电影下载免费写文章的软件
  • aspcms手机网站源码cnzz
  • 免费网站定制百度关键词分析工具
  • 房地产web网站建设买链接网
  • 泉州企业网站制作软文广告属于什么营销
  • 网站制作常见问题超能搜索引擎系统网站
  • 公司网站建设需要哪些设备网络建站
  • 网站做app要权限网络营销的4p策略
  • 如何做网站店铺如何自己开网站
  • 现在还有做网站的必要吗微信引流推广怎么做