3.5. 创建 osc-feature-gates 配置映射
您可以通过创建配置映射来启用机密容器功能门。
流程
创建
my-feature-gate.yaml清单文件:apiVersion: v1 kind: ConfigMap metadata: name: osc-feature-gates namespace: openshift-sandboxed-containers-operator data: confidential: "true" deploymentMode: <deployment_mode>其中
<deployment_mode>在使用 Machine Config Operator (MCO)的 OpenShift Container Platform 集群中,
deploymentMode字段是可选的,可以省略。指定安装和配置 Kata 运行时的策略。指定部署模式:-
始终使用 MCO 的集群的
MachineConfig -
不使用 MCO 的集群的
DaemonSet -
一些使用 MCO 的集群的
DaemonSetFallback
-
始终使用 MCO 的集群的
运行以下命令来创建
my-feature-gates配置映射:$ oc create -f my-feature-gate.yaml