让istio中的jaeger跑起来
现在的水平,仅止于让它跑起来。:)
同样的环境,microk8s+istio。
步骤如下:
一,使用kubectl get pod -n istio-system查看所有istio的POD运行正常。
NAME READY STATUS RESTARTS AGE grafana-5b5bb96d6d-xsmwb / Running 7d6h istio-citadel-69694bd465-wj5pp / Running 7d6h istio-cleanup-secrets-7m87h / Completed 7d6h istio-egressgateway-6d5cfb474-ffxv6 / Running 7d6h istio-galley-6d6b7f9cdd-tbdbb / Running 7d6h istio-grafana-post-/ Completed 7d6h istio-ingressgateway-859977c87-srsrg / Running 7d6h istio-pilot-5ffcbc484f-wxdgx / Running 7d6h istio-policy-76479db9b8-vgsfv / Running 7d6h istio-security-post-/ Completed 7d6h istio-sidecar-injector-56cdcffcd8-frrmb / Running 7d6h istio-telemetry-75bd8c5898-7cs9f / Running 7d6h istio-tracing-c8b67b59c-bvls6 / Running 7d6h prometheus-578b7dcfdc-2g7c9 / Running 7d6h servicegraph-84f87799b5-hs256 / Running 7d6h
二,使用kubectl get svc -n istio-system了解istio主要的服务端口(注意jaeger-query:16686)
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE grafana ClusterIP /TCP 7d6h istio-citadel ClusterIP /TCP,/TCP 7d6h istio-egressgateway ClusterIP /TCP,/TCP 7d6h istio-galley ClusterIP /TCP,/TCP 7d6h istio-ingressgateway LoadBalancer :/TCP,:/TCP,:/TCP,:/TCP,:/TCP,:/TCP,:/TCP,:/TCP 7d6h istio-pilot ClusterIP /TCP,/TCP,/TCP,/TCP 7d6h istio-policy ClusterIP /TCP,/TCP,/TCP 7d6h istio-sidecar-injector ClusterIP /TCP 7d6h istio-telemetry ClusterIP /TCP,/TCP,/TCP,/TCP 7d6h jaeger-agent ClusterIP None <none> /UDP,/UDP,/UDP 7d6h jaeger-collector ClusterIP /TCP,/TCP 7d6h jaeger-query ClusterIP /TCP 7d6h prometheus ClusterIP /TCP 7d6h servicegraph ClusterIP /TCP 7d6h tracing ClusterIP /TCP 7d6h zipkin ClusterIP /TCP 7d6h
这时,使用查询命令
kubectl get pod -n istio-system -l app=jaeger -o jsonpath='{.items[0].metadata.name}'
输出为:istio-tracing-c8b67b59c-bvls6
三,使用kubectl port-forward命令,将default名字空间下的16686端口的数据,转到istio-system名字空间里的16686端口。( 这个端口看上面输出对应关系)
kubectl port-forward -n istio-system $(kubectl get pod -n istio-system -l app=jaeger -o jsonpath=:
如果命令不放入后台,输出如下:
Forwarding from -> Forwarding from [::]: -> Handling connection Handling connection Handling connection Handling connection
上面的输出,表示port-proxy forward命令,只能支持到127.0.0.1的本地局域网。
四,用SSH进行二次转发。
: root@0.0.0.0
此处需要输入root密码,如果可以,更换为普通用户。
五,浏览器输入http://ip:16687即可访问到jaeger UI了。



让istio中的jaeger跑起来的更多相关文章
- 在ISTIO中让GRAFANA跑起来
比较轻车熟路了. 这个GRAFANA内,已集成了ISTIO常见的DASHBOARD了. 一,映射本地端口 kubectl port-forward -n istio-system $(kubectl ...
- 在istio中让prometheus跑起来
使用microk8s安装,默认的prometheus已就位. 可直接弄. 一,映射本地端口(注意,命令行最后的两个端口,前一个为要映射的本地端口,后一个为POD的服务端口,如果本地相同端口被占用,则要 ...
- 专访探探DBA张文升:PG在互联网应用中同样也跑的很欢畅
张文升认为,PG无论在可靠性和性能方面都不输其它任何关系型数据库 张文升,探探DBA,负责探探的数据库架构.运维和调优的工作.拥有8年开发经验,曾任去哪儿网DBA. 9月24日,张文升将参加在 ...
- Istio中的流量配置
Istio中的流量配置 目录 Istio中的流量配置 Istio注入的容器 Istio-init istio-proxy Envoy架构 Pilot-agent生成的初始配置文件 Envoy管理接口获 ...
- 在 Istio 中实现 Redis 集群的数据分片、读写分离和流量镜像
Redis 是一个高性能的 key-value 存储系统,被广泛用于微服务架构中.如果我们想要使用 Redis 集群模式提供的高级特性,则需要对客户端代码进行改动,这带来了应用升级和维护的一些困难.利 ...
- 如何在 Istio 中支持 Dubbo、Thrift、Redis 以及任何七层协议?
赵化冰,腾讯云高级工程师,Istio Member,ServiceMesher管理委员,Istio 项目贡献者, Aerika 项目创建者 ,热衷于开源.网络和云计算.目前主要从事服务网格的开源和研发 ...
- Istio 中实现客户端源 IP 的保持
作者 尹烨,腾讯专家工程师, 腾讯云 TCM 产品负责人.在 K8s.Service Mesh 等方面有多年的实践经验. 导语 对于很多后端服务业务,我们都希望得到客户端源 IP.云上的负载均衡器,比 ...
- DB2中循环日期跑数据
1.数据库版本: 2.具体实现方式: ),)) /*************************************************************************** ...
- [erlang 002]gen_server中何时会跑到terminate函数
一.从start方法产出的独立gen_server进程 实验代码: %%%-------------------------------------- %%% @Module : %%% @Auth ...
随机推荐
- Xamarin.Forms移动开发系列1:介绍和安装
摘要 Xamarin成立于2011年5月16日.Xamarin 是一套基于C#语言的跨平台移动应用开发工具,2016年2月24日被微软正式收购. 前言 很早就已经听说强大的.NET生态中有一个移动开发 ...
- [LeetCode] 895. Maximum Frequency Stack 最大频率栈
Implement FreqStack, a class which simulates the operation of a stack-like data structure. FreqStack ...
- [LeetCode] 719. Find K-th Smallest Pair Distance 找第K小的数对儿距离
Given an integer array, return the k-th smallest distance among all the pairs. The distance of a pai ...
- Spring Boot Admin2.X监控的服务context-path问题
在使用Spring Boot Admin进行监控时,如果被监控的服务没有加context-path的话是不会有任何问题的,一旦服务加了context-path的配置,监控就会失败. 下图是正常情况的显 ...
- Ubuntu 14.04 apt-get update失效解决(转)
现象如下: VirtualBox:~$ sudo apt-get update Err http://mirrors.aliyun.com trusty InRelease Err http://mi ...
- SQL语句中使用回车换行符
今天发现sql数据库有个图片路径中包含空格,结果在替换和查找时,发现用空格无效,后来经过确认才发现原来是回车换行符引起,从表面看很像空格,实际是回车符,要用char(13)才能进行替换和查找 --查找 ...
- alicebot
一. 为什么Alice不支持中文因为Alice的question都会被bitoflife.chatterbean.text.Transformations类中的fit函数过滤,而过滤的表达式就是: ...
- 第五节:EF Core中的三类事务(SaveChanges、DbContextTransaction、TransactionScope)
一. 说明 EF版本的事务介绍详见: 第七节: EF的三种事务的应用场景和各自注意的问题(SaveChanges.DBContextTransaction.TransactionScope). 本节主 ...
- c++中获得对象类型 typeid 与 type_info
复杂部分略去,摘录要素如下: 1.typeid是C++的关键字之一,等同于sizeof这类的操作符. 2.typeid操作符的返回结果是名为type_info的标准库类型的对象的引用(在头文件type ...
- springmvc全局异常处理ControllerAdvice区分返回响应类型是页面还是JSON
思路: 加一个拦截器,在preHandler中取得HandlerMethod,判断其方法的返回类型,以及方法的注解和类的注解. 如果返回是json,收到异常则返回默认的异常包装类型. 如果返回是页面, ...