Giter VIP home page Giter VIP logo

Comments (4)

bgeesaman avatar bgeesaman commented on July 19, 2024

Hi @itsecforu . When Inspec throws an error, it mixes in the error into the output and that is not valid json, so the results parser throws that error trying to "dig" into something that isn't a valid hash. To address the issue, we have to figure out what is causing Inspec to throw an error. Knowing that you are on a master node, the root cause is likely that the KUBECONFIG isn't being mounted in from the correct location, and Inspec is probably throwing an error saying it's unable to connect to the cluster API server.

Take a look at https://github.com/darkbitio/mkit/blob/master/Makefile#L64

  -v $(K8SKUBECONFIG):/${HOMEDIR}/.kube/config:ro

This line mounts in the local KUBECONFIG to /home/node/.kube/config inside the MKIT container.

Try modifying it like so:

  -v /etc/kubernetes/admin.conf:/${HOMEDIR}/.kube/config:ro

Change that path if that's not correct. Re-run and see if that helps.

from mkit.

itsecforu avatar itsecforu commented on July 19, 2024

Hey! thx for feedback
The problem:

make run-k8s
Makefile:65: *** target pattern contains no `%'.  Stop.

My changes Makefile:
1

from mkit.

itsecforu avatar itsecforu commented on July 19, 2024

I temporarily made permissions to the config file.

Now i got other error:

make run-k8s
Running in darkbitio/mkit:latest: /home/node/audit/k8s.sh
Generating results...Profile git dependency failed for https://github.com/bgeesaman/inspec-k8s - error running 'git ls-remote "https://g                             ithub.com/bgeesaman/inspec-k8s" "0.1.3*"': fatal: unable to access 'https://github.com/bgeesaman/inspec-k8s/': Failed to connect to gith                             ub.com port 443: Connection refused
Traceback (most recent call last):
./inspec-results-parser.rb:92:in `<main>': undefined method `dig' for nil:NilClass (NoMethodError)

from mkit.

stale avatar stale commented on July 19, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

from mkit.

Related Issues (8)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.