-
-
Notifications
You must be signed in to change notification settings - Fork 14
Description
Hi
I'm having trouble using chisel operator in my kuber cluster. i used
kubectl apply -k https://github.com/FyraLabs/chisel-operator
to install it in cluster.
My exit node is a VPS of mine which hosts the chisel server and works fine. i even tried chisel client
from my local to verify that the chisel server is good to go, and it is.
I applied a simple hello world pod in cluster for testing the operator functionality. I then applied the loadbalancer svc and operator created a pod for chisel client. but i keep getting this log from this pod:
2024/12/31 12:36:59 client: Connecting to ws://{myvpsip}:9090
2024/12/31 12:36:59 client: Connection error: dial tcp {myvpsip}:9090: connect: connection refused
2024/12/31 12:36:59 client: Retrying in 100ms...
2024/12/31 12:36:59 client: Connection error: dial tcp {myvpsip}:9090: connect: connection refused (Attempt: 1/unlimited)
2024/12/31 12:36:59 client: Retrying in 200ms...
2024/12/31 12:36:59 client: Connection error: dial tcp {myvpsip}:9090: connect: connection refused (Attempt: 2/unlimited)
2024/12/31 12:36:59 client: Retrying in 400ms...
2024/12/31 12:37:00 client: Connection error: dial tcp {myvpsip}:9090: connect: connection refused (Attempt: 3/unlimited)
2024/12/31 12:37:00 client: Retrying in 800ms...
I tried running chisel client command without using the operator and inside a random pod in cluster, and it worked. but with the operator, i keep getting this error.
this is my chisel server config:
[Unit]
Description=Chisel Tunnel
Wants=network-online.target
After=network-online.target
StartLimitIntervalSec=0
[Install]
WantedBy=multi-user.target
[Service]
Restart=always
RestartSec=1
User=root
ExecStart=/usr/local/bin/chisel server --port=9090 --reverse --auth 'admin:admin' -v
and these are exitnode and svc manifest:
apiVersion: chisel-operator.io/v1
kind: ExitNode
metadata:
name: my-exit-node
namespace: chisel-operator-system
spec:
auth: exit-node-secret
default_route: false
host: {myvpsip}
port: 9090
---
apiVersion: v1
kind: Service
metadata:
name: hello-world
namespace: chisel-operator-system
annotations:
chisel-operator.io/exit-node-name: "my-exit-node"
spec:
selector:
app: hello-world
ports:
- port: 80
targetPort: 80
type: LoadBalancer
Can someone help me ?