package kubecaml

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
val request_path_template : unit -> string
val get : ?timestamps:bool -> ?tail_lines:int -> ?since_seconds:int -> ?previous:bool -> ?pretty:string -> namespace:string -> name:string -> ?limit_bytes:int -> ?follow:bool -> ?container:string -> ?ctx:Cohttp_lwt_unix.Client.ctx -> ?headers:Cohttp.Header.t -> Uri.t -> (string, string) result Lwt.t

read log of the specified Pod

  • parameter timestamps

    If true, add an Rfc3339 or Rfc3339_nano timestamp at the beginning of every line of log output. Defaults to false.

  • parameter tail_lines

    If set, the number of lines from the end of the logs to show. If not specified, logs are shown from the creation of the container or since_seconds or since_time

  • parameter since_seconds

    A relative time in seconds before the current time from which to show logs. If this value precedes the time a pod was started, only logs since the pod start will be returned. If this value is in the future, no logs will be returned. Only one of since_seconds or since_time may be specified.

  • parameter previous

    Return previous terminated container logs. Defaults to false.

  • parameter pretty

    If 'true', then the output is pretty printed.

  • parameter namespace

    object name and auth scope, such as for teams and projects

  • parameter name

    name of the Pod

  • parameter limit_bytes

    If set, the number of bytes to read from the server before terminating the log output. This may not display a complete final line of logging, and may return slightly more or slightly less than the specified limit.

  • parameter follow

    Follow the log stream of the pod. Defaults to false.

  • parameter container

    The container for which to stream logs. Defaults to only container if there is one container in the pod.