Comments (11)
@hermanbanken I think the issue in your case is that Kubescape loads the k8s config when the input is a file, loading the config is unnecessary since the input is a file and not a running cluster.
We will fix this next release :)
Cool! I was looking at the policyhandler package and couldn't figure out why it wasn't loading instead of getting the resources
https://github.com/armosec/kubescape/blob/571a15bee8de5a75beaee1aad091fcde2d7c25ca/policyhandler/handlenotification.go#L79-L84
Turned out it was aborting way before 😄
from kubescape.
@sundowndev I'm not sure what you are missing, is it possible you do not have a running Kubernetes cluster?
We use the client-go package for loading the Kubernetes config.
Please update if you managed to solve your issue
from kubescape.
@dwertent Not sure what I should specify in KUBERNETES_MASTER
for it to work, I tried my kubeconfig path, my cluster's URL...
is it possible you do not have a running Kubernetes cluster?
No, I can manage my cluster with kubectl.
I think a better documentation about requirements and configuration would help me
from kubescape.
@sundowndev , if you don't mind, can you please share how your Kubernetes cluster is hosted? (minikube, EKS, GKE or etc.)
I am asking because for GKE support we needed to include an additional go module
from kubescape.
@BenHirschbergCa It's hosted on Digitalocean
from kubescape.
I have the same error, but I'm using plain YAML generated via Kustomize, eg.
cat output.dev.yaml | kubescape scan framework nsa -
cat output.test.yaml | kubescape scan framework nsa -
from kubescape.
@hermanbanken I think the issue in your case is that Kubescape loads the k8s config when the input is a file, loading the config is unnecessary since the input is a file and not a running cluster.
We will fix this next release :)
from kubescape.
@hermanbanken I fixed the issue, please confirm it works :)
from kubescape.
@sundowndev try setting export KUBECONFIG=<path to config>
, is it better?
from kubescape.
@sundowndev try setting
export KUBECONFIG=<path to config>
, is it better?
yep that's it, I confused KUBE_CONFIG_PATH and KUBECONFIG, thanks
from kubescape.
Verified it works, thanks!
from kubescape.
Related Issues (20)
- Allow Wildcard for repository names defined in imageRepositoryAllowList in controls-inputs.json HOT 1
- scan-images report missing from json output format HOT 6
- Failure to run on AKS cluster HOT 13
- documentation missing HOT 2
- 'kubescape scan image' fails with older quay images (`unsupported MediaType`). HOT 10
- Non-Root container false positive HOT 5
- Kustomize directory analysis not working HOT 3
- Error `exectuateYq err: no matches found` when rendering Helm chart HOT 7
- Increase in CPU usage scanning helm repositories HOT 2
- Does kubescape have arm architecture image? HOT 2
- PolicyReport CRDs support HOT 1
- Evaluating C-0037 seems to report false positives as well as false negatives HOT 1
- Cannot exclude particular rules from Control HOT 1
- Define labels to copy from workloads to reports HOT 3
- Add control references in the PDF output HOT 2
- sha256 not being published since v3.0.3 HOT 5
- Advanced Kubescape plugin features for VSCode HOT 6
- Add Backstage plugin HOT 2
- Report the use of components with vulnerabilities in kubescape HOT 1
- Support excluding some containers of pods from privileged check
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 kubescape.