简体   繁体   English

Rancher Cluster`cloud_provider` YAML:如何在YAML中使用Active Directory域凭据(即带反斜杠的用户名)?

[英]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: 我试图将我的AD域凭据放入rancher创建的YAML配置文件中,以便可以在Rancher / Kubernetes中使用vSphere存储,但是,我遇到了virtual_center config部分格式问题:

(...)
    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. NVM,我明白了。

JK, answer below. JK,请在下面回答。

Apparently the solution is to use a user@domain.site.local format rather than a DOMAIN\\user\u003c/code> format. 显然,解决方案是使用user@domain.site.local格式,而不是DOMAIN\\user\u003c/code>格式。

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

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Rancher 使用自托管和云提供商? - Rancher use self-hosted and cloud provider? 如何在问题上传递哈希值。 Rancher 中的 yaml - How to pass hashes over questions.yaml in Rancher 如何在 ArgoCD 中添加新集群(使用 Rancher 的配置文件)? - 服务器已要求客户端提供凭据 - How to add new cluster in ArgoCD (use config file of Rancher)? - the server has asked for the client to provide credentials 我正在尝试使用 cluster.yaml deployment.yaml 和 service.yaml 创建 EKS 集群,但 nodeSelector 未按预期工作 - I am trying to create an EKS cluster with cluster.yaml deployment.yaml and service.yaml but nodeSelector is not working as expected 你如何在谷歌云上仅使用 yaml 在单独的节点上部署 kubernetes 集群 - How do you deploy a kubernetes cluster on separate nodes using only yaml on google cloud 如何通过重定向在谷歌云中设置 yaml 入口 - how to setup yaml ingress in google cloud with redirect 如何为 kubernetes 集群修复 calico.yaml? - How to fix calico.yaml for kubernetes cluster? 如何在kubernetes yaml文件的环境变量中分配集群,名称空间和pod名称 - How to assign cluster, namespace and pod name in kubernetes yaml file's environment variable 在创建之前,如何在Kubernetes yaml文件中获取群集IP信息? - How can I get the cluster IP info within the Kubernetes yaml file before it's been created? 使用不同名称的 kustomization.yaml - Use different name of the kustomization.yaml
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM