Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TCPProbe annotations on pods didn't make pod probed #2

Open
MUCZ opened this issue Apr 8, 2022 · 0 comments
Open

TCPProbe annotations on pods didn't make pod probed #2

MUCZ opened this issue Apr 8, 2022 · 0 comments

Comments

@MUCZ
Copy link

MUCZ commented Apr 8, 2022

The tcpprobe seems to work well in the k3s cluster. It probes some sites continuously and I can see tcp-related metrics in the Prometheus and Grafana.
I follow the config file described in https://github.com/mehrdadrad/tcpprobe/wiki/helm , where i set a nginx deployment and annotate it to tell tcpprobe to "probe" it.
But after that I deployed the Nginx server. I found several things confusing.

  • the annotation tcpprobe/targets: "http://PODIP:80" didn't get rewritten , which means that PODIP is literally PODIP and so i know the Nginx won't be "probed"
  • even if i fill the right ip address of the nginx server using another pod's annotation, the Nginx server still didn't get probed. I see no data in the metrics it expose.

Env:
OS X + k3d cluster (k3s in docker)

I would appreciate all the help, thanks!

apiVersion: apps/v1 
kind: Deployment
metadata:
  name: nginx-deployment
spec:
  selector:
    matchLabels:
      app: nginx
  replicas: 1
  template:
    metadata:
      labels:
        app: nginx
      annotations:
        tcpprobe/targets: "http://PODIP:80"
        tcpprobe/interval: "10s"
        tcpprobe/labels: '{"app": "nginx"}'
    spec:
      containers:
        - name: nginx
          image: nginx:latest
          ports:
            - containerPort: 80
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant