K8s provider didn’t find anything
shiipou opened this issue · 1 comments
shiipou commented
Hi there,
I use this repository in my k8s cluster, but it didn't redirect me to my services.
if someone can help me, that can be awesome 😋
Thanks for all.
Here some info :
shiishii@pidev:~ $ kubectl get nodes -owide
NAME STATUS ROLES AGE VERSION INTERNAL-IP EXTERNAL-IP OS-IMAGE KERNEL-VERSION CONTAINER-RUNTIME
host02 Ready control-plane,master,worker 3d6h v1.21.2 10.0.0.2 <none> Ubuntu 21.04 5.11.0-22-generic docker://20.10.7
host03 Ready control-plane,master,worker 3d6h v1.21.2 10.0.0.3 <none> Ubuntu 21.04 5.11.0-22-generic docker://20.10.7
shiishii@pidev:~ $ kubectl get -nsshpiper all
NAME READY STATUS RESTARTS AGE
pod/sshpiper-68d978d47d-7kwk2 1/1 Running 0 56m
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
service/sshpiper LoadBalancer 10.97.56.250 <pending> 2222:30278/TCP 3d6h
NAME READY UP-TO-DATE AVAILABLE AGE
deployment.apps/sshpiper 1/1 1 1 58m
NAME DESIRED CURRENT READY AGE
replicaset.apps/sshpiper-68d978d47d 1 1 1 56m
replicaset.apps/sshpiper-dd9bdd7bb 0 0 0 58m
shiishii@pidev:~ $ kubectl get -ntestssh all
NAME READY STATUS RESTARTS AGE
pod/sftp1-68df8756-8pvxd 1/1 Running 0 44m
pod/sftp2-59ff9b6bd8-6852d 1/1 Running 0 44m
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
service/sftp1 ClusterIP 10.96.246.38 <none> 22/TCP 44m
service/sftp2 ClusterIP 10.98.27.38 <none> 22/TCP 44m
NAME READY UP-TO-DATE AVAILABLE AGE
deployment.apps/sftp1 1/1 1 1 44m
deployment.apps/sftp2 1/1 1 1 44m
NAME DESIRED CURRENT READY AGE
replicaset.apps/sftp1-68df8756 1 1 1 44m
replicaset.apps/sftp2-59ff9b6bd8 1 1 1 44m
shiishii@pidev:~ $ kubectl get -ntestssh sshpipe
NAME USERS SERVICE AGE
sftp1 ["user1"] sftp1 45m
sftp2 ["user2"] sftp2 45m
shiishii@pidev:~ $ kubectl get serviceaccount -nsshpiper
NAME SECRETS AGE
default 1 3d6h
sshpiper 1 3d6h
shiishii@pidev:~ $ kubectl get -nsshpiper clusterrole/sshpiper
NAME CREATED AT
sshpiper 2021-07-14T11:22:48Z
shiishii@pidev:~ $ kubectl get -nsshpiper clusterrolebinding/sshpiper
NAME ROLE AGE
sshpiper ClusterRole/sshpiper 3d6h
shiishii@pidev:~ $ ssh user1@example.com -p 30278
Warning: the RSA host key for '[example.com]:30278' differs from the key for the IP address '[82.xx.xx.xx]:30278'
Offending key for IP in /home/shiishii/.ssh/known_hosts:5
Matching host key in /home/shiishii/.ssh/known_hosts:6
Are you sure you want to continue connecting (yes/no)? yes
Redirecting to your service...
Connection closed by 82.xx.xx.xx port 30278
shiishii@pidev:~ $ kubectl exec -it -nsshpiper deployments/sshpiper -- sh
/ # /sshpiperd pipe
/ #
shiipou commented
Ok that work now after a Kubectl delete -Nash piper pod/sshpiper-xxxxx-xx
Thanks