Skip to content

Support for providing kubeclient config for core and group APIs? #32

@joeauty

Description

@joeauty

We are trying to use this gem using the kubeclient instructions for connecting inside a cluster (using a service account and its token), and this is mostly working, but we can only get Kubeclient get_jobs calls working with client configured as:

config.kubeclient = Kubeclient::Client.new(
    'https://kubernetes.default.svc/apis/batch',
    'v1',
    auth_options: auth_options,
    ssl_options:  ssl_options
  )

and can only get get_pods calls working with the client configured as follows:

config.kubeclient = Kubeclient::Client.new(
    'https://kubernetes.default.svc',
    'v1',
    auth_options: auth_options,
    ssl_options:  ssl_options
  )

It looks like resque-kubernetes is not built to support the core and group APIs when a custom kubeclient config is provided (we do not have a production ~/.kube/config volume mount)? I'm wondering if this assessment is correct, if any users have found workarounds, or whether this is an appropriate thing to issue a patch for?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions