Centos7 Kubernetes(k8s) 开发服务器(单服务器)部署 zipkin 链路跟踪

版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
本文链接:https://blog.csdn.net/wljk506/article/details/92437007

这几天对开发服务器中的 k8s和相关模块 进行升级,做个记录
开发服务器(单服务器)部署 zipkin 链路跟踪

环境,与系统

系统:centos 7.6

内核: 5.1.9-1.el7.elrepo.x86_64

Kubernetes(K8s) 1.14.3

服务器IP:192.168.0.254

服务器IP 说明

如果更改了服务器IP 为其他IP,那么请全局全部替换成你改的IP
fox.风

如何安装 k8s

请看 最近写的一篇文章,

https://blog.csdn.net/fenglailea/article/details/88745642
常用 k8s 命令
https://foxwho.blog.csdn.net/article/details/92137467

服务器资源限制

对CPU,内存都做了限制,请自行针对修改

没有使用持久化存储,这里直接使用宿主机存储,如有需要,请自行增加

目录

请把项目放置到 /www/k8s/foxdev/ 目录下,所有都是基于此目录
或者请看 下面一节的 拉取代码

拉取代码

mkdir -p /www/k8s/
cd /www/k8s/

git clone https://github.com/foxiswho/k8s-nacos-sentinel-rocketmq-zipkin-elasticsearch-redis-mysql.git foxdev

cd foxdev

chmod +x *sh

以下是 独立部署 相关模块

k8s zipkin 独立部署

相关说明

端口:9411

独立部署 zipkin 操作

直接执行 根目录create.z.zipkin.start.sh 即可


./create.z.zipkin.start.sh

访问

直接用浏览器访问

http://192.168.0.254:9411

Kubernetes 编排文件

zipkin-rc.yml

apiVersion: v1
kind: ReplicationController
metadata:
#  namespace: default
  name: zipkin
  labels:
    name: zipkin
spec:
  replicas: 1
  selector:
    name: zipkin
  template:
    metadata:
      labels:
        name: zipkin
    spec:
      containers:
        - name: zipkin
          image: openzipkin/zipkin
          imagePullPolicy: IfNotPresent
          resources:
            limits:
              cpu: 150m
              memory: 256Mi
            requests:
              cpu: 100m
              memory: 128Mi
          env:
            - name: TZ
              value: Asia/Shanghai
          ports:
            - containerPort: 9411

zipkin-service.yml



apiVersion: v1
kind: Service
metadata:
#  namespace: default
  name: zipkin
  labels:
    name: zipkin
spec:
  type: NodePort
  ports:
    - port: 9411
      targetPort: 9411
      nodePort: 9411
  selector:
    name: zipkin

create.z.zipkin.start.sh


在开发服务器上部署成功,有问题的,可以联系我

源文件

https://github.com/foxiswho/k8s-nacos-sentinel-rocketmq-zipkin-elasticsearch-redis-mysql

展开阅读全文

微服务分布式链路跟踪Zipkin

05-18

<p>n <span style="color:#4F4F4F;font-size:16px;background-color:#FFFFFF;">【</span><span style="color:#4F4F4F;font-size:16px;background-color:#FFFFFF;"><span style="font-size:16px;">课程目标</span></span><span style="color:#4F4F4F;font-size:16px;background-color:#FFFFFF;">】</span> n</p>n<p>n <span style="font-size:16px;">你将快速掌握SpringCloud的研发和Redis5 cluster的一键启动,实战派</span> n</p>n<p>n <br /></p>n<p>n <span style="color:#818181;font-size:16px;">适用人群</span> n</p>n<p>n <span style="color:#424242;font-size:16px;">速成类研发体系:适合零基础的同学或者对SpringCloud微服务想快速掌握的同学,非理论派</span> n</p>n<p>n <span style="color:#424242;"><br /></span> n</p>n<p>n <span style="color:#424242;"><span style="color:#4F4F4F;font-size:16px;background-color:#FFFFFF;">【</span><span style="color:#4F4F4F;font-size:16px;background-color:#FFFFFF;">适用人群</span><span style="color:#4F4F4F;font-size:16px;background-color:#FFFFFF;">】</span></span> n</p>n<p>n <span style="color:#424242;"> </span>n</p>n<p>n <span style="font-size:16px;color:#4F4F4F;">1</span><span style="font-size:16px;color:#4F4F4F;">. </span><span style="font-size:16px;color:#4F4F4F;">零基础到快速上手研发,而非理论</span><span style="font-size:16px;color:#4F4F4F;">/</span><span style="font-size:16px;color:#4F4F4F;">原理性讲解;告别繁琐的原理,</span><span style="color:#4F4F4F;font-size:16px;">直接上手的手把手整合实战课;</span> n</p>n<p>n <span style="font-size:16px;color:#4F4F4F;">2. </span><span style="font-size:16px;color:#4F4F4F;">适合零基础的同学或者对</span><span style="font-size:16px;color:#4F4F4F;">SpringCloud</span><span style="font-size:16px;color:#4F4F4F;">微服务想快速掌握的同学,</span><span style="font-size:16px;color:#4F4F4F;">有</span><span style="font-size:16px;color:#4F4F4F;">SpringCloud</span><span style="font-size:16px;color:#4F4F4F;">经验的同学不适用本课;</span> n</p>n<p>n <span style="font-size:27px;color:#4F4F4F;"></span> n</p>n<p>n <span style="font-size:16px;color:#4F4F4F;">3. </span><span style="font-size:16px;color:#4F4F4F;">本课都是从商业项目中剥离出来的例子,都是一线的技术企业级的技术,</span><span style="font-size:16px;color:#4F4F4F;">也是目前最流行的技术。</span> n</p>n<span style="font-size:16px;">【运行展示】</span><br /><p>n <span style="color:#424242;"><span style="font-size:16px;"><img src="https://img-bss.csdn.net/201905110726276252.jpg" alt="" /><br /></span></span> n</p>n<p>n <span style="color:#424242;"><span style="font-size:16px;"><img src="https://img-bss.csdn.net/201905110726563581.jpg" alt="" /><img src="https://img-bss.csdn.net/201905110727014731.jpg" alt="" /><img src="https://img-bss.csdn.net/201905110727178986.jpg" alt="" /><br /></span></span> n</p>n<p>n <span style="color:#424242;"><span style="font-size:16px;"><img src="https://img-bss.csdn.net/201905110733432614.jpg" alt="" /><img src="https://img-bss.csdn.net/201905110733481278.jpg" alt="" /><img src="https://img-bss.csdn.net/201905110733533161.jpg" alt="" /><img src="https://img-bss.csdn.net/201905110733584408.jpg" alt="" /><img src="https://img-bss.csdn.net/201905110734064419.jpg" alt="" /><img src="https://img-bss.csdn.net/201905110734153246.jpg" alt="" /><img src="https://img-bss.csdn.net/201905110734204524.jpg" alt="" /><img src="https://img-bss.csdn.net/201905110734284746.jpg" alt="" /><img src="https://img-bss.csdn.net/201905110734345776.jpg" alt="" /><img src="https://img-bss.csdn.net/201905110734417672.jpg" alt="" /><img src="https://img-bss.csdn.net/201905110734552584.jpg" alt="" /><br /></span></span> n</p>n<p>n <span style="color:#424242;"><span style="font-size:16px;"><br /></span></span> n</p>n<p>n <span style="color:#424242;"><span style="font-size:16px;"><br /></span></span> n</p>n<p>n <span style="color:#424242;"><span style="font-size:16px;"><br /></span></span> n</p>n<p>n <span style="color:#424242;"><span style="font-size:16px;"><br /></span></span> n</p>

微服务分布式链路跟踪ZipKin的设计和Debug

05-18

<p>n <span style="color:#4F4F4F;font-size:16px;background-color:#FFFFFF;">【</span><span style="color:#4F4F4F;font-size:16px;background-color:#FFFFFF;"><span style="font-size:16px;">课程目标</span></span><span style="color:#4F4F4F;font-size:16px;background-color:#FFFFFF;">】</span> n</p>n<p>n <span style="font-size:16px;">你将快速掌握SpringCloud的研发和Redis5 cluster的一键启动,实战派</span> n</p>n<p>n <br /></p>n<p>n <span style="color:#818181;font-size:16px;">适用人群</span> n</p>n<p>n <span style="color:#424242;font-size:16px;">速成类研发体系:适合零基础的同学或者对SpringCloud微服务想快速掌握的同学,非理论派</span> n</p>n<p>n <span style="color:#424242;"><br /></span> n</p>n<p>n <span style="color:#424242;"><span style="color:#4F4F4F;font-size:16px;background-color:#FFFFFF;">【</span><span style="color:#4F4F4F;font-size:16px;background-color:#FFFFFF;">适用人群</span><span style="color:#4F4F4F;font-size:16px;background-color:#FFFFFF;">】</span></span> n</p>n<p>n <span style="color:#424242;"> </span>n</p>n<p>n <span style="font-size:16px;color:#4F4F4F;">1</span><span style="font-size:16px;color:#4F4F4F;">. </span><span style="font-size:16px;color:#4F4F4F;">零基础到快速上手研发,而非理论</span><span style="font-size:16px;color:#4F4F4F;">/</span><span style="font-size:16px;color:#4F4F4F;">原理性讲解;告别繁琐的原理,</span><span style="color:#4F4F4F;font-size:16px;">直接上手的手把手整合实战课;</span> n</p>n<p>n <span style="font-size:16px;color:#4F4F4F;">2. </span><span style="font-size:16px;color:#4F4F4F;">适合零基础的同学或者对</span><span style="font-size:16px;color:#4F4F4F;">SpringCloud</span><span style="font-size:16px;color:#4F4F4F;">微服务想快速掌握的同学,</span><span style="font-size:16px;color:#4F4F4F;">有</span><span style="font-size:16px;color:#4F4F4F;">SpringCloud</span><span style="font-size:16px;color:#4F4F4F;">经验的同学不适用本课;</span> n</p>n<p>n <span style="font-size:27px;color:#4F4F4F;"></span> n</p>n<p>n <span style="font-size:16px;color:#4F4F4F;">3. </span><span style="font-size:16px;color:#4F4F4F;">本课都是从商业项目中剥离出来的例子,都是一线的技术企业级的技术,</span><span style="font-size:16px;color:#4F4F4F;">也是目前最流行的技术。</span> n</p>n<span style="font-size:16px;">【运行展示】</span><br /><p>n <span style="color:#424242;"><span style="font-size:16px;"><img src="https://img-bss.csdn.net/201905110726276252.jpg" alt="" /><br /></span></span> n</p>n<p>n <span style="color:#424242;"><span style="font-size:16px;"><img src="https://img-bss.csdn.net/201905110726563581.jpg" alt="" /><img src="https://img-bss.csdn.net/201905110727014731.jpg" alt="" /><img src="https://img-bss.csdn.net/201905110727178986.jpg" alt="" /><br /></span></span> n</p>n<p>n <span style="color:#424242;"><span style="font-size:16px;"><img src="https://img-bss.csdn.net/201905110733432614.jpg" alt="" /><img src="https://img-bss.csdn.net/201905110733481278.jpg" alt="" /><img src="https://img-bss.csdn.net/201905110733533161.jpg" alt="" /><img src="https://img-bss.csdn.net/201905110733584408.jpg" alt="" /><img src="https://img-bss.csdn.net/201905110734064419.jpg" alt="" /><img src="https://img-bss.csdn.net/201905110734153246.jpg" alt="" /><img src="https://img-bss.csdn.net/201905110734204524.jpg" alt="" /><img src="https://img-bss.csdn.net/201905110734284746.jpg" alt="" /><img src="https://img-bss.csdn.net/201905110734345776.jpg" alt="" /><img src="https://img-bss.csdn.net/201905110734417672.jpg" alt="" /><img src="https://img-bss.csdn.net/201905110734552584.jpg" alt="" /><br /></span></span> n</p>n<p>n <span style="color:#424242;"><span style="font-size:16px;"><br /></span></span> n</p>n<p>n <span style="color:#424242;"><span style="font-size:16px;"><br /></span></span> n</p>n<p>n <span style="color:#424242;"><span style="font-size:16px;"><br /></span></span> n</p>n<p>n <span style="color:#424242;"><span style="font-size:16px;"><br /></span></span> n</p>

没有更多推荐了,返回首页