Skip to content

Proposal: Support for pod template (podspec) #1951

Closed

Description

@krancour

As an alternative to #1816, I want to suggest that perhaps Revisions should support pod template (PodSpec) as an alternative to a container template (ContainerSpec).

I think this has come up before and been shot down, with the reasoning having been that the desired model in Knative Serving is to keep things simple-- and that multi-container pods don't fit that mold.

While I respect that rationale, I humbly propose that it could be flawed. Knative Serving isn't useful only for functions. imho, Knative Serving implements a deployment model that could be compelling for workloads (e.g. applictions) of any size. Supporting only one container per pod in a Revision would seem to preclude such "off label" use in many cases.

I'd like to propose that the current model be preserved, but that specifying a pod template instead of a container template become optional and that those two options be mutually exclusive with one another.

Activity

  1. voor commented on Aug 28, 2018

    @voor

    The thing that made knative serving so attractive was the ability to lower the barrier for scaling on something other than CPU threshold, scale to zero at idle states, effectively manage append-only versions of a service, having an easily managed message queue in front of a service ingress (retry, async, throttling), and potentially some other features I'm not able to recall from memory. None of those are dependent on just a single container, and pretty much that whole list would be applicable to sidecar models of pod deployments. Knative might be attracting attention due to the fact it's using a buzzword serverless, but in my mind knative has a bountiful feature-set applicable to the entirely of services in kubernetes.

  2. added
    area/API
    kind/spec
    on Aug 29, 2018
  3. mattmoor commented on Aug 29, 2018

    @mattmoor
    Contributor

    I think this is covered by #1794 going to dedupe.

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/APIkind/spec

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions