meso5533 最近的时间轴更新
meso5533

meso5533

V2EX 第 257987 号会员,加入于 2017-10-06 22:09:17 +08:00
315 晚会说的篡改删除别人的网页是怎么做到的?
问与答  •  meso5533  •  2022-03-16 08:19:38 AM  •  最后回复来自 ttgo
13
k8s 配置文件中的 dsn 是如何解析的?
Kubernetes  •  meso5533  •  2022-03-03 16:43:35 PM  •  最后回复来自 julyclyde
11
meso5533 最近回复了
@meso5533 通过 service_name:grpc_port 的话可以正常通信,但是通过 pod_ip:grpc_port 不行
apiVersion: v1
kind: Service
metadata:
name: test-k8s-server-grpc
namespace: test-k8s
spec:
ports:
- name: grpc
port: 16071
protocol: TCP
targetPort: 16071
selector:
app: test-k8s-server

---

apiVersion: v1
kind: Service
metadata:
name: test-k8s-server-debug
namespace: test-k8s
annotations:
prometheus.io/scrape: 'true'
prometheus.io/port: '15225'
spec:
ports:
- name: debug
port: 15225
protocol: TCP
targetPort: 15225
selector:
app: test-k8s-server

---

apiVersion: apps/v1
kind: Deployment
metadata:
name: test-k8s-server
namespace: test-k8s
spec:
replicas: 1
selector:
matchLabels:
app: test-k8s-server
template:
metadata:
name: test-k8s-server
labels:
app: test-k8s-server
spec:
containers:
- name: test-k8s-server
image: xxxxxx:latest
command:
- /root/test_k8s
- server
- --log-level
- debug
ports:
- name: grpc
containerPort: 16071
- name: debug
containerPort: 15225
imagePullSecrets:
- name: regcred

grpc 的 port 无法正常通信,debug( http 协议)的 port 可以
@newskillsget 是的
@GopherDaily pod 和 svc 是相同的 port
istioctl proxy-config -n test-k8s listeners test-k8s-server-9cbcf8b9b-4s2q5 --port 16071
ADDRESS PORT MATCH DESTINATION
0.0.0.0 16071 Trans: raw_buffer; App: http/1.1,h2c Route: 16071
0.0.0.0 16071 ALL PassthroughCluster
2022-11-14 10:23:33 +08:00
回复了 yujianwjj 创建的主题 Kubernetes 请教 prometheus 怎么配抖动告警?
abs((sum by (name) (irate(node_cpu{mode!~"idle"}[5m])) * 100) - on (name) (sum by (name) (irate(node_cpu{mode!~"idle"}[5m] offset 5m))) * 100) > 5

不确定对不对,总之要用到 offset
成功关掉了,谢谢两位
查了一下,需要在 robots.txt 里声明信任其他域名 sitemap
2022-03-02 21:05:55 +08:00
回复了 meso5533 创建的主题 Kubernetes k8s 配置文件中的 dsn 是如何解析的?
@okoklll 看起来应该是 k8s 默认会给 pod 创建 dns 解析
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   1013 人在线   最高记录 6543   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 24ms · UTC 19:24 · PVG 03:24 · LAX 12:24 · JFK 15:24
Developed with CodeLauncher
♥ Do have faith in what you're doing.