<p>I'm trying to deploy a service with a container and a initContainer, using KNative.<br>
I installed Istio without sidecar injection if that matters.<br>
This is the error I get:</p>

<pre><code>Internal error occurred: admission webhook "webhook.serving.knative.dev" denied the request: validation failed: must not set the field(s): spec.template.spec.initContainers
volumes not mounted: [some_script]: spec.template.spec.containers[0].volumeMounts
</code></pre>

<p>My YAML file:</p>

<pre><code>apiVersion: serving.knative.dev/v1
kind: Service
metadata:
  name: my-service
spec:
  template:
    spec:
      containers:
      - image: image
        imagePullPolicy: IfNotPresent
        name: my-container
        ports:
        - containerPort: 1234
        volumeMounts:
        - mountPath: ........
          name: .....
          .......
      initContainers:
      - args:
        - -c
        - /some_dir/some_script.sh
        command:
        - /bin/sh
        image: alpine
        imagePullPolicy: IfNotPresent
        name: my-init-container
        volumeMounts:
        - mountPath: /some_dir
          name: some_dir
        - mountPath: /some_dir/some_script.sh
          name: some_script
          subPath: some_script.sh
      - configMap:
          defaultMode: 511
          name: some_script.sh
        name: some_script
</code></pre>

<p>Thanks!</p>

Daniel
<p>Init containers  are not there in the Knative serving API <a href="https://github.com/knative/docs/blob/master/docs/serving/spec/knative-api-specification-1.0.md#container" rel="nofollow noreferrer">spec</a> which leaves me to believe that it's not supported.</p>
