Code Monkey home page Code Monkey logo

k8s-day2-ops's Introduction

k8s-day2-ops's People

Contributors

dguyhasnoname avatar mukundmckinsey avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

k8s-day2-ops's Issues

issue with namespace, nodes, btplc-status-dot-panel

Hello,

env: AWS EKS
version: 1.17
Grafana: 7.1.5

I've three issues:

  • Panel plugin not found: btplc-status-dot-panel
  • I could display only one namespace
  • I saw multiple nodes the dashboard even if I have only one node on my cluster

Incorrect kube version on k8s-deprecations.sh

I found this script from your link on sturrent/k8s-check-deprecated-apis#1, which was very helpful, thank you!

However, i found that there's a bug in the regex for getting the current version:

 kubectl get nodes -o json \
>     | jq -r '.items[].status.nodeInfo.kubeletVersion' | uniq | sed 's/\v//g'
v1.18.9-eks-d1db3c

This then sets the version incorrectly further in the script:

Gathering info of current cluster...
Current k8s version: vv1.18.9-eks-d1db3c

With this change, it works correctly:

--- k8s-deprecations.sh	2021-03-30 14:25:46.000000000 -0600
+++ k8s-deprecations.sh-new	2021-03-30 14:21:15.000000000 -0600
@@ -46,7 +46,7 @@
     echo "Gathering info of current cluster..."

     current_k8s_version="$(kubectl get nodes -o json \
-    | jq -r '.items[].status.nodeInfo.kubeletVersion' | uniq | sed 's/\v//g')"
+    | jq -r '.items[].status.nodeInfo.kubeletVersion' | uniq | sed 's/^v//g')"

     echo "Current k8s version: v$current_k8s_version"
     version="$(echo $current_k8s_version | sed 's/\(.*\)\..*/\1/').0"

Error when running script

I get the following error when trying to run the k8s-toppur.py file

Traceback (most recent call last): File "/Users/myusername/dev/tools/k8s-day2-ops/resource_calcuation/k8s-toppur/k8s-toppur.py", line 7, in <module> from modules.kube_config import KubeConfig File "/Users/myusername/dev/tools/k8s-day2-ops/resource_calcuation/k8s-toppur/modules/kube_config.py", line 1, in <module> from kubernetes import config, client ModuleNotFoundError: No module named 'kubernetes'

I have exported my kubeconfig path to KUBECONFIG.

Can you suggest what the issue is please?

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.