Skip to content

create cloudsql sidecar container #4659

Closed

Description

@bitvirago

In what area(s)?

In service definition

What version of Knative?

0.7

Expected Behavior

I need to create more than one container in the Service definition.

Actual Behavior

If I want to create a google cloud sql sidecar container. I got the following error message:

Error from server (InternalError): error when creating "deploy-app.yaml": Internal error occurred: admission webhook "webhook.serving.knative.dev" denied the request: mutation failed: missing field(s): spec.template.spec.containers[0].image

Steps to Reproduce the Problem

My service definition:

apiVersion: serving.knative.dev/v1alpha1
kind: Service
metadata:
  name: test-svc
  namespace: test
spec:
  template:
    spec:
      containers:
        - image: gcr.io/cloudsql-docker/gce-proxy
        - image: hub.docker.com/_/hello-world

Activity

  1. added
    kind/bug
    on Jul 9, 2019
  2. markusthoemmes commented on Jul 10, 2019

    @markusthoemmes
    Contributor

    We don't allow for more than one container today in Knative Service/Configuration/Revision. See https://github.com/knative/serving/blob/master/docs/spec/spec.md

  3. dgerd commented on Jul 10, 2019

    @dgerd

    As Markus mentioned is not currently supported today. That said that error message looks like a bug. It should be invalid field for the second container instead of missing for the first.

    missing field(s): spec.template.spec.containers[0].image

  4. dgerd commented on Jul 10, 2019

    @dgerd

    Created a bug for the error message: #4706

    Going to change this to feature request.

  5. added
    area/API
    kind/feature
    kind/spec
    and removed
    kind/bug
    on Jul 10, 2019
  6. added this to the Ice Box milestone on Jul 10, 2019
  7. knative-housekeeping-robot commented on Dec 25, 2019

    @knative-housekeeping-robot

    Issues go stale after 90 days of inactivity.
    Mark the issue as fresh by adding the comment /remove-lifecycle stale.
    Stale issues rot after an additional 30 days of inactivity and eventually close.
    If this issue is safe to close now please do so by adding the comment /close.

    Send feedback to Knative Productivity Slack channel or file an issue in knative/test-infra.

    /lifecycle stale

  8. added
    lifecycle/stale
    on Dec 25, 2019
  9. dgerd commented on Dec 26, 2019

    @dgerd

    Resolving this as duplicate of #5822

    See https://github.com/mattmoor/bindings#googlecloudsqlbinding as a potential workaround for this Cloud SQL in current release.

  10. removed this from the Ice Box milestone on Oct 6, 2021
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/featurekind/speclifecycle/stale

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions