Giter Site home page Giter Site logo

dguyhasnoname / k8s-cluster-checker Goto Github PK

View Code? Open in Web Editor NEW
12.0 4.0 10.0 5.14 MB

A utility tool to analyse kubernetes configuration.

License: Apache License 2.0

Python 99.84% Dockerfile 0.16%
kubernetes security pods analyses-configurations analyses cluster docker-image k8s-cluster-checker

k8s-cluster-checker's Introduction

k8s-cluster-checker's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

k8s-cluster-checker's Issues

python3 objects/cluster.py Failed

Environmental Information:
1、K8S_VERSION:v1.18.3
2、DOCKER_VERSION:19.3.12
3、Python3 version:Python 3.7.2
4、OS system: CentOS Linux release 7.6.1810 (Core)

Whether I use docker or Python3,I get the following error:
#################################
Cluster name: kubernetes

▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁

[INFO] Fetching nodes data...

Node details:

TOTAL_NODES K8S_VERSION TOTAL_CPU TOTAL_MEM_GB OS_NAME DOCKER_VERSION VOLUMES_IN_USE

masters: 3 v1.18.3 22 24.6GB CentOS Linux 7 (Core) 19.3.12 0
worker: 0
etcd: 0
others: 2

total: 5

[INFO] Checking for latest and installed versions...
Traceback (most recent call last):
File "objects/cluster.py", line 158, in
main()
File "objects/cluster.py", line 153, in main
call_all(options[1], options[3])
File "objects/cluster.py", line 136, in call_all
Cluster.get_node_data(v, l)
File "objects/cluster.py", line 35, in get_node_data
node._Nodes.get_nodes_details(v, l)
File "/root/k8s-cluster-checker/objects/nodes.py", line 100, in get_nodes_details
docker_version, item.status.node_info.kubelet_version, l)
File "/root/k8s-cluster-checker/objects/modules/process.py", line 854, in node_version_check
Nodes.get_latest_os_version(current_os_version)
File "/root/k8s-cluster-checker/objects/modules/process.py", line 836, in get_latest_os_version
return version_check.append(['OS', latest_os_version, current_os_version, status])
UnboundLocalError: local variable 'status' referenced before assignment
#################################

Can you help to see what the cause is?
TKS very much!

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.