1
0
mirror of https://github.com/openshift/openshift-docs.git synced 2026-02-06 06:46:26 +01:00
Files
openshift-docs/modules/serverless-admin-init-containers.adoc

38 lines
881 B
Plaintext

// Module included in the following assemblies:
//
// * /serverless/admin_guide/serverless-configuration.adoc
:_content-type: PROCEDURE
[id="serverless-admin-init-containers_{context}"]
= Enabling init containers
.Prerequisites
* You have installed {ServerlessOperatorName} and Knative Serving on your cluster.
ifdef::openshift-enterprise[]
* You have cluster administrator permissions.
endif::[]
ifdef::openshift-dedicated,openshift-rosa[]
* You have cluster or dedicated administrator permissions.
endif::[]
.Procedure
* Enable the use of init containers by adding the `kubernetes.podspec-init-containers` flag to the `KnativeServing` CR:
+
.Example KnativeServing CR
[source,yaml]
----
apiVersion: operator.knative.dev/v1beta1
kind: KnativeServing
metadata:
name: knative-serving
spec:
config:
features:
kubernetes.podspec-init-containers: enabled
...
----