Skip to content

debug should support debugging a Knative service #4702

Open

Description

@briandealwis

I think it's a matter of rewriting the podSpec and configuring the scale bounds to min/max of 1.

Activity

  1. added this to the milestone on Sep 1, 2020
  2. added
    priority/p3
    and removed
    priority/p2
    on Apr 21, 2021
  3. removed this from the milestone on May 11, 2021
  4. csantanapr commented on Oct 12, 2021

    @csantanapr

    Init containers are now supported in knative upstream, is in nightly you need to enable with feature flag https://knative.dev/development/admin/serving/feature-flags/#kubernetes-init-containers

    I would ❤️ to see skaffold debug support for knative development, specially nodejs dev

  5. csantanapr commented on Nov 3, 2021

    @csantanapr

    Now with knative 1.0 init containers and emptydir are supported in a release
    I have a demo here using skaffold to hot reload and debug knative using skaffold

    Happy to collaborate to get knative hot reload and debug into skaffold
    https://github.com/csantanapr/ato-2021/blob/main/skaffold.yaml

  6. salanki commented on Feb 7, 2022

    @salanki

    +1 on this

  7. briandealwis commented on Apr 9, 2022

    @briandealwis
    MemberAuthor

    We love patches :-)

    Our current debugging approach relies on being able to:

    1. identify the type of runtime for each container,
    2. configure the container environment and rewriting the application command-line. You can see examples in some of the tests for NodeJS.

    The key functions are in transformManifest which iterate over the Kubernetes objects and then run over their pod-specs.

    I'm not sure if Knative embeds pod-specs?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/debugkind/feature-requestpriority/p3

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions