incubator-seata icon indicating copy to clipboard operation
incubator-seata copied to clipboard

helm 部署 seata 1.5.1成功

Open heidaodageshiwo opened this issue 2 years ago • 11 comments

我使用helm 部署 seata1.5.1成功了。 说实话我也不确定是不是成功了!只是看到被注册到了nacos中。 我也做了笔记:请大家帮忙看看! https://blog.csdn.net/hunheidaode/article/details/126623672

heidaodageshiwo avatar Aug 31 '22 07:08 heidaodageshiwo

@heidaodageshiwo you can submit the modified code of your helm deployment as a PR.

slievrly avatar Aug 31 '22 07:08 slievrly

deployment.yaml 最后几行改动: 由hostpath改为nfs存储(我是图方便省去了每台节点都把文件复制过去) {{- if .Values.volume }} volumes: {{- range .Values.volume }} - name: {{ .name }} nfs: server: {{ .nfsServers }} path: {{ .nfsPath }} {{- end}} {{- end}}

values.yaml文件改动:(我是把/seata-server/resources下的文件映射出来了) volume:

  • name: seata-config mountPath: /seata-server/resources nfsServers: 192.168.56.211 nfsPath: /data/k8s/resource

image

确实是看到已经注册到naocs中了。 但是不知道我部署的是否是准确的。请大佬给点意见!

heidaodageshiwo avatar Aug 31 '22 07:08 heidaodageshiwo

This is fine if the IP shown in the details of serving the `seata-server` in the nacos console is the host IP that the seata-server is actually deployed with.

如果在nacos控制台中服务seata-server的详情中显示的ip为seata-server实际部署的host IP是没问题的。

slievrly avatar Aug 31 '22 07:08 slievrly

我当时好像是看到是我宿主机的ip地址: image 当时的ip与port为 :192.168.56.211 port:8091

已经把服务关闭了!这周我测试一下分布式事务,是否是起作用了!我在确定一下!

heidaodageshiwo avatar Aug 31 '22 07:08 heidaodageshiwo

@heidaodageshiwo can the modified related code be submitted as a PR or supplemented with a readme deployed by helm?

slievrly avatar Sep 01 '22 03:09 slievrly

我在具体测试一下,还有这块的分布式事务。 seata还有一个控制台,我代理出7091这个端口来,有一个api报错,因为他目前不是使用的mysql8,但是在官网master分支上看到已经在使用MySQL8了。

image

我打算对1.5.1这个版本重新打镜像,而且报错日志太多,所以看不清他那个接口具体报什么错误!我在打镜像确认一下!

heidaodageshiwo avatar Sep 01 '22 03:09 heidaodageshiwo

我把7091 seata控制台端口暴露出来:虽然是启动起来了,但是报错!因为不是mysql8,日志报错太多,看不到错误!我自己下载下1.5.1的包来,自己编译打包!一下午都没有运行起来 1.git clone的是 1.5.1 mvn打包出来是1.5.0 image 2.dockerfile应该是 bash 不是sh image 3./ext/apm-skywalking/skywalking-agent.jar 没有这个包 4.这个日志没有任何输出 。文件为空 image 5.不管是我服务器还是我本地都报错这个接口: image image

该图为:windows系统启动日志: image

7.暴露方式: image image

heidaodageshiwo avatar Sep 01 '22 08:09 heidaodageshiwo

1.接下来开始测试分布式事务,测试该部署方式是否是可行的。 2.seata控制台这个界面问题我们是解决不了的。不管是服务器部署的还是本机部署的都报错!暂时没找到原因!

heidaodageshiwo avatar Sep 01 '22 08:09 heidaodageshiwo

这两天本想搞seata来着,没想到 nacos又出了点问题: helm 部署 nacos2.1.0或k8s部署的 代码不能访问,ui可以访问! 索性本人已经解决了! https://github.com/alibaba/nacos/issues/9075

接下来测试分布式事务!

heidaodageshiwo avatar Sep 03 '22 06:09 heidaodageshiwo

1.helm的部署的暂时还是不可以 2.我把k8s部署seata的代理给解决了。 3.具体的话可以参考:https://blog.csdn.net/hunheidaode/article/details/126623672 4.nacos或者是seata官方给的是可以部署运行,但是代码是绝对访问不了的,这个我已经大量测试过了。 5. nacos这个人还说让我看端口映射。 https://github.com/alibaba/nacos/issues/9075 image 这个人肯定是没有自己使用helm或者是k8s部署过,他如果使用部署过,他用代码连接试试。 8848 9848 这些不都是映射出来了么,确实是访问不了 image 没有必要跟他较劲。自己整出来就行了。 6.正题: k8s部署seata主要改动:

image image

image

7.这样配置就能连接了。 8.helm的正在解决

heidaodageshiwo avatar Sep 06 '22 09:09 heidaodageshiwo

1.helm部署成功,并使用代码经过测试,测试分布式事务没有问题。 2.如果说朋友们你们能使用官网的helm把8091这个端口代理出来,也不用使用我这种方式了。 3.部署方式: 可以看这个:https://blog.csdn.net/hunheidaode/article/details/126623672 也可以使用 helmchart这个仓库。我已经上传上去了: https://heidaodageshiwo.github.io/helm-chart/ 4.这都是经过我测试的。 5.主要改动: image

把官方无用的env环境变量删掉只保留port 与ip

values.yaml image 本人使用nfs。 services.yaml改动: image

6.我是使用的mysql5.7 mysql8一直报错,没有使用mysql8 image

heidaodageshiwo avatar Sep 07 '22 09:09 heidaodageshiwo