Comments (6)
Hey, thanks for reaching out @jdamata !
I haven't used EKS, so I'm going to have to rely on you. From the error message, it sounds like it's successfully contacting the kubernetes api server (so your 'kubeconfig' is valid), but the user is not authorised to list nodes.
How did you generate the kubeconfig
? Does EKS generate it for you ?
I'm also wondering, if, for security reasons, they are not just disallowing that.
from powerfulseal.
EKS can generate the kubeconfig for you but I generated mine manually.
Its not blocked.
I think it might just be this: kubernetes-client/python-base#75
Im using kubernetes==8.0.1 and I can authenticate to the cluster with exported AWS credentials to grab a list of nodes:
#!/usr/bin/env python3
import kubernetes
import boto3
import os
from pprint import pprint
kubernetes.config.load_kube_config(os.path.abspath('REDACTED'))
v1 = kubernetes.client.CoreV1Api()
nodes = v1.list_node()
pprint(nodes)
from powerfulseal.
It is true, that we are using a very old version of kubernetes
package. Would you like to upgrade it and take it for a spin ?
from powerfulseal.
Yup that looks better.
$ ./.tox/py37/bin/seal -v interactive --aws --inventory-kubernetes --ssh-allow-missing-host-keys --kubeconfig REDACTED --ssh-path-to-private-key REDACTED --remote-user ec2-user
2019-03-04 19:12:05 REDACTED powerfulseal[52492] INFO Creating kubernetes client with config REDACTED
2019-03-04 19:12:05 REDACTED powerfulseal.k8s.k8s_client[52492] INFO Initializing with config: REDACTED
2019-03-04 19:12:05 REDACTED powerfulseal[52492] INFO Building AWS driver
2019-03-04 19:12:05 REDACTED powerfulseal[52492] INFO Attempting to read the inventory from kubernetes
2019-03-04 19:12:05 REDACTED powerfulseal.clouddrivers.aws_driver[52492] INFO Synchronizing remote nodes
2019-03-04 19:12:05 REDACTED powerfulseal.clouddrivers.aws_driver[52492] INFO Synchronizing remote nodes
2019-03-04 19:12:07 REDACTED powerfulseal.clouddrivers.aws_driver[52492] INFO Fetched 43 remote servers
2019-03-04 19:12:23 REDACTED powerfulseal[52492] INFO STARTING INTERACTIVE MODE
(seal) $
from powerfulseal.
That's great. Would you like to do the honors and start a PR ? CI will run the tests suit.
from powerfulseal.
Thanks for the help Mikolaj
#97
from powerfulseal.
Related Issues (20)
- cloneAction step fails on schema validation on toxiproxy HOT 13
- Inventory collection HOT 3
- Exception when matching on a node's group HOT 1
- The stopPodsHostAction is not allowed in the CRD HOT 1
- Run probeHTTP on a filter
- Execution in ssh mode fails HOT 1
- Seal prometheus metrics empty HOT 1
- stopPodsHostAction results in schema validation error HOT 2
- checkPodCount ends preemptively when 0 pods remain after pod killing HOT 3
- Affect network traffic after startup HOT 1
- Support all kinds of k8s objects
- Use powerfulseal as library HOT 1
- qol re-route traffic HOT 1
- HTTP probe expected code is ignored HOT 1
- Update CRD to v1
- Wait between scenario runs HOT 2
- pass in kubeconfig.yaml
- Prometheus logs are not generating for seal_pods_kills
- Bump Kubernetes python client version HOT 2
- kubernetes.client.rest.ApiException: (404) error HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from powerfulseal.