Git Product home page Git Product logo

kubernetes's Introduction

Please visit checkmk_kube_agent

Please visit our checkmk_kube_agent repository to follow our latest features and releases!

kubernetes's People

Contributors

anthonyh209 avatar martinhv avatar lisa-pi avatar

Stargazers

 avatar Furkan Taşbaşı avatar Hinrich avatar zsh avatar Levi Govaerts avatar Leo A. avatar Simon Oakes avatar Daniel Manners avatar Christian W. avatar Patrick Lewis avatar Santiago Ramis avatar Jens Köhler avatar Andrej Haar avatar Baris Leenders avatar  avatar

Watchers

Neustradamus avatar James Cloos avatar Lars avatar  avatar Andrej Haar avatar

kubernetes's Issues

CheckMK Raw in k8s with CIFS / NFS

Hi guys,

what kind of storage do you guys use for the PV? I was trying to use NFS with a PV which did not work because redis was not able to start properly. (before i had to configure an emptydir for the tmpfs because there were a lot of Bad Filetype errors...)

I tried to further isolate the problem and mounted the NFS Server directly on the worker nodes and published the NFS Volume via hostPath into the container. Same error, redis did not start well (it is running, but if you do an omd restart you see errors)

I also tried the same via CIFS and hostPath but there im facing the following issue

Traceback (most recent call last):
  File "/usr/bin/omd", line 60, in <module>
    omdlib.main.main()
  File "/omd/versions/2.0.0p12.cre/lib/python3/omdlib/main.py", line 4009, in main
    command.handler(version_info, site, global_opts, args, command_options)
  File "/omd/versions/2.0.0p12.cre/lib/python3/omdlib/main.py", line 1827, in main_create
    admin_password = init_site(version_info, site, global_opts, config_settings, options)
  File "/omd/versions/2.0.0p12.cre/lib/python3/omdlib/main.py", line 1895, in init_site
    create_version_symlink(site, omdlib.__version__)
  File "/omd/versions/2.0.0p12.cre/lib/python3/omdlib/main.py", line 232, in create_version_symlink
    os.symlink("../../versions/%s" % version, linkname)
OSError: [Errno 95] Operation not supported: '../../versions/2.0.0p12.cre' -> '/omd/sites/eizi_site1/version'

When using emptydir only, without NFS Checkmk is working.

Thanks for your answer

ipv6 support

We run a ipv6 only cluster and find following in the helm chart - https://github.com/Checkmk/checkmk_kube_agent/blob/2bfcf8ff0f0a2cd804464ce18ac8a0e985097e11/deploy/charts/checkmk/templates/cluster-collector-deploy.yaml#L49

We are already create a workaround for testing on our side with:

            {{- if .Values.clusterCollector.ipv6 }}
            - "--host=[::]"
            {{- else }}
            - "--host=0.0.0.0"
            {{- end }}

But now we are running into different trouble, so could it be that there is a general ipv6 support missing?

CRITICAL:	 2023-09-27 15:04:01,574 - Failed to send container metrics to cluster collector: Internal Server Error
Traceback (most recent call last):
  File "/usr/local/bin/checkmk-container-metrics-collector", line 8, in <module>
    sys.exit(main_container_metrics())
  File "/usr/local/lib/python3.10/site-packages/checkmk_kube_agent/send_metrics.py", line 466, in _main
    worker(session, cluster_collector_base_url, headers, verify)
  File "/usr/local/lib/python3.10/site-packages/checkmk_kube_agent/send_metrics.py", line 355, in container_metrics_worker
    _verify_and_log_cluster_collector_response(
  File "/usr/local/lib/python3.10/site-packages/checkmk_kube_agent/send_metrics.py", line 416, in _verify_and_log_cluster_collector_response
    cluster_collector_response.raise_for_status()
  File "/usr/local/lib/python3.10/site-packages/requests/models.py", line 960, in raise_for_status
    raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 500 Server Error: Internal Server Error for url: http://checkmk-cluster-collector.monitoring:8080/update_container_metrics
    solved_result = await solve_dependencies(
  File "/usr/local/lib/python3.10/site-packages/fastapi/dependencies/utils.py", line 527, in solve_dependencies
    solved = await call(**sub_values)
  File "/usr/local/lib/python3.10/site-packages/checkmk_kube_agent/api.py", line 158, in authenticate_post
    return authenticate(
  File "/usr/local/lib/python3.10/site-packages/checkmk_kube_agent/api.py", line 95, in authenticate
    token_review_response = session.post(
  File "/usr/local/lib/python3.10/site-packages/requests/sessions.py", line 577, in post
    return self.request('POST', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.10/site-packages/requests/sessions.py", line 515, in request
    prep = self.prepare_request(req)
  File "/usr/local/lib/python3.10/site-packages/requests/sessions.py", line 443, in prepare_request
    p.prepare(
  File "/usr/local/lib/python3.10/site-packages/requests/models.py", line 318, in prepare
    self.prepare_url(url, params)
  File "/usr/local/lib/python3.10/site-packages/requests/models.py", line 386, in prepare_url
    raise InvalidURL(*e.args)
requests.exceptions.InvalidURL: Failed to parse: https://2a01:4f8:d0:448e:ffff::1:443/apis/authentication.k8s.io/v1/tokenreviews
2a01:4f8:d0:4482:ffff::aa28:43728 - "GET /health HTTP/1.1" 200

PS: we will do a pull request to helm chart if the rest is also ipv6 ready :-)

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.