7.3.3. 创建 LDAP secret
要使用身份提供程序,您必须定义一个包含 bindPassword 字段的 OpenShift Container Platform Secret 对象。
流程
创建包含
bindPassword字段的Secret对象:$ oc create secret generic ldap-secret --from-literal=bindPassword=<secret> -n openshift-config1 - 1
- 包含
--from-literal参数的 bindPassword 的 secret 键必须称为bindPassword。
提示您还可以应用以下 YAML 来创建 secret:
apiVersion: v1 kind: Secret metadata: name: ldap-secret namespace: openshift-config type: Opaque data: bindPassword: <base64_encoded_bind_password>