This documentation is for a release that is no longer maintained
See documentation for the latest supported version 3 or the latest supported version 4.7.3.3. 创建 LDAP secret
要使用身份提供程序,您必须定义一个包含 bindPassword
字段的 OpenShift Container Platform Secret
对象。
流程
创建包含
bindPassword
字段的Secret
对象:oc create secret generic ldap-secret --from-literal=bindPassword=<secret> -n openshift-config
$ oc create secret generic ldap-secret --from-literal=bindPassword=<secret> -n openshift-config
1 Copy to Clipboard Copied! Toggle word wrap Toggle overflow - 1
- 包含
--from-literal
参数的 bindPassword 的 secret 键必须称为bindPassword
。
提示您还可以应用以下 YAML 来创建 secret:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow