简体   繁体   中英

Rancher Cluster `cloud_provider` YAML: How to use Active Directory Domain Credentials (i.e. user name with back slash) in YAML?

I'm attempting to put my AD domain credentials into the YAML config file created by rancher so that I may use vSphere storage within Rancher / Kubernetes, however, I'm running into an issue with the formatting of the virtual_center config portion:

(...)
    virtual_center:
        <IP>:
            (...)
            user: "DOMAIN/username"
            password: <PASSWORD>

The cluster doesn't seem to like a backslash (or two backslashes including the escape character), and it also doesn't seem to like a forward slash.

How should I enter my domain credentials in here?

EDIT

nvm, i figured it out.

JK, answer below.

Apparently the solution is to use a user@domain.site.local format rather than a DOMAIN\\user\u003c/code> format.

See: https://github.com/rancher/rancher/issues/16371

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM