pabateman / kubectl-nsenter Goto Github PK
View Code? Open in Web Editor NEWkubectl plugin for pod's linux namespaces command execution via direct node ssh connection
License: Apache License 2.0
kubectl plugin for pod's linux namespaces command execution via direct node ssh connection
License: Apache License 2.0
Currently, it is expected that node has public IP address.
Looks like we can't connect to a node if it runs in private subnet.
SSH_OPTS
variable is also not honored:
❯ ~ export SSH_OPTS="-J [email protected]"
❯ ~ k nsenter -u ubuntu -n kube-system coredns-66f44b9d6-cxjmd ip address
/Users/alexandr/.krew/bin/kubectl-nsenter: dial tcp 10.101.41.119:22: i/o timeout
can't dial node [email protected]
Can we have a flag like --jump-host
and --jump-user
or something like that to specify that we need to use jump host?
Thanks
Hi,
Trying on Openshift 4.10 cluster, but not working.
[root@bastion1 bin]# kubectl-nsenter -u core collector-audit-d4p9z bash
kubectl-nsenter: unsupported container runtime
[root@bastion1 bin]# oc version
Client Version: 4.10.13
Server Version: 4.10.15
Kubernetes Version: v1.23.5+3afdacb
[root@bastion1 bin]# ssh core@infra-swe1-01
Red Hat Enterprise Linux CoreOS 410.84.202205111833-0
Part of OpenShift 4.10, RHCOS is a Kubernetes native operating system
managed by the Machine Config Operator (`clusteroperator/machine-config`).
WARNING: Direct SSH access to machines is not recommended; instead,
make configuration changes via `machineconfig` objects:
https://docs.openshift.com/container-platform/4.10/architecture/architecture-rhcos.html
---
Last login: Thu Jun 2 13:03:01 2022 from 10.30.3.131
[core@infra-swe1-01 ~]$ crictl
NAME:
crictl - client for CRI
USAGE:
crictl [global options] command [command options] [arguments...]
VERSION:
1.23.0
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.