Git Product home page Git Product logo

Comments (9)

tintoy avatar tintoy commented on July 17, 2024 2

Published v2.2.6.

from dotnet-kube-client.

tintoy avatar tintoy commented on July 17, 2024 1

Yep, pretty sure I can expose it on both :)

from dotnet-kube-client.

felixfbecker avatar felixfbecker commented on July 17, 2024 1

Shipped in PSKubectl, can verify it works :)

from dotnet-kube-client.

felixfbecker avatar felixfbecker commented on July 17, 2024 1

It works in PSKubectl:

https://github.com/felixfbecker/PSKubectl/blob/d409ff4a3d4bf8e669aaceb4feb2c215b9f9b22a/src/Cmdlets/GetKubeLogCmdlet.cs#L39-L46

from dotnet-kube-client.

tintoy avatar tintoy commented on July 17, 2024

Hmm, interesting question - if you run your kubectl command with —v=10 (note the double dash) it should log the API calls it is making which may be of some assistance. I’ll take a look tonight myself and see if anything stands out...

from dotnet-kube-client.

tintoy avatar tintoy commented on July 17, 2024

I suspect it haven’t exposed the query parameters needed to scan from the end of the log yet - the API docs list a few promising candidates.

from dotnet-kube-client.

brobichaud avatar brobichaud commented on July 17, 2024

Yeah I just used this command line: kc logs --tail=20 podname -v=10

And it shows the api call of:
GET /api/v1/namespaces/default/pods/dev-madras-aggregator-97988547-vsrnh/log?tailLines=20

I'm assuming the dashboard is using this method or something similar.

I'd love to be able to ask for the last X lines of the logs AND be able to monitor for new incoming lines (ala StreamLogs). But that last monitoring part is just a bonus, if I can ask for say the last 100 lines then refreshing manually is perfectly workable.

from dotnet-kube-client.

tintoy avatar tintoy commented on July 17, 2024

Will add it this weekend and publish a new set of packages :)

from dotnet-kube-client.

brobichaud avatar brobichaud commented on July 17, 2024

Sweet! I just upgraded to the v2.2.6 nuget and the Logs() method is perfecto! Thanks a ton for the super quick turn-around @tintoy.

I'm experimenting with the StreamLogs() method and am clearly using it wrong. I can get the first pull of data but am not seeing updates even though I've implemented IObserver. OnNext is never called. Then it stops working at all after I've called this method a couple of times. Has anyone used StreamLogs() successfully?

from dotnet-kube-client.

Related Issues (20)

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.