Skip to content

Feedback to Kubernetes API for sub-process failure #4

Description

@ianlewis

We should have a way to know when the sub-process is failing via the Kubernetes API.

Some options might be:

  1. Wrapping the health check: Health check is specified to ns-reloader which uses it during it's own health check.
  2. Separating ns-reloader and the controller into separate processes, restarting it via a signal.
  • This may not be feasible since we want to wrap controllers which are often configured via environment variables and command-line flags.
    • Could maybe be done with wrapper script which loads the shared config.
  1. Posting events via the Kubernetes API indicating the status.
  2. Returning an error code and terminating the ns-reloader process if the wrapped process starts to crash loop.

Activity

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

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions