简体   繁体   English

从C#https://github.com/Microsoft/Docker.DotNet连接到Azure容器服务群群集的正确端点是什么

[英]What is the proper endpoint for connecting to azure container service swarm cluster from c# https://github.com/Microsoft/Docker.DotNet

After deploying a azuze container service and using swarm, how do one connect using the example given: 部署azuze容器服务并使用swarm之后,如何使用给定的示例进行连接:

var credentials = new CertificateCredentials (new X509Certificate2 ("CertFile", "Password"));
var config = new DockerClientConfiguration("http://ubuntu-docker.cloudapp.net:4243", credentials);
DockerClient client = config.CreateClient();

I have made the certificate and just cant figure out wht the proper endpoint to use is? 我已经制作了证书,只是无法确定要使用的正确端点是?

the url from azure portl: <name>-mgmt.<region>.cloudapp.azure.com 来自天蓝色portl的URL: <name>-mgmt.<region>.cloudapp.azure.com

ACS does not use certs by default. ACS默认不使用证书。 We use SSH tunneling as documented at https://docs.microsoft.com/en-us/azure/container-service/container-service-connect 我们使用https://docs.microsoft.com/zh-cn/azure/container-service/container-service-connect中记录的SSH隧道

If you have connected to the masters and manually configured it to use certs as well as correctly installing those certs o the masters then there is nothing magical about the endpoints and connection details. 如果您已连接到主服务器并手动将其配置为使用证书,并且正确地在主服务器上安装了这些证书,那么端点和连接详细信息就没有神奇之处。 It's just Docker, so follow the appropriate Docker documentation. 它只是Docker,因此请遵循适当的Docker文档。 The correct URL is, as you note in your question <name>-mgmt.<region>.cloudapp.azure.com . 如您在问题<name>-mgmt.<region>.cloudapp.azure.com ,正确的URL是。

However, you should be aware that since we do not use certs by default we do not open the necessary ports on the Master LB. 但是,您应该注意,由于默认情况下我们不使用证书,因此我们不会在主LB上打开必要的端口。 You will also need to open those on your master LB. 您还需要在主LB上打开它们。 For an example (which is against the agent LB but the processes is the same) see https://docs.microsoft.com/en-us/azure/container-service/container-service-enable-public-access 有关示例(针对代理LB,但过程相同),请参见https://docs.microsoft.com/zh-cn/azure/container-service/container-service-enable-public-access

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

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