且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在AWS上获取kubernetes负载均衡器服务的永久IP地址?

更新时间:2022-11-03 14:21:34

正如@ error2007s所说,您不能为ELB获得静态IP.但是,如果您只想为ELB分配域名,则可以使用指向aae55ce563ca611e692c10a83aef9ddc-467886677.eu-west-1.elb.amazonaws.com的CNAME记录.如果您使用的是Route53,则还可以定义别名以获得更好的性能.在托管区域下创建一个记录集,选择类型A,在别名:"下选择是",最后从下拉框中选择您的ELB.

As @error2007s said, you can't get a static IP for ELB. But if all you want is to assign a domain name to your ELB, then you can use a CNAME record pointing to aae55ce563ca611e692c10a83aef9ddc-467886677.eu-west-1.elb.amazonaws.com. If you're using Route53 you can also define an alias for better performance. Create a record set under your hosted zone, choose type A, select Yes under "Alias: ", and finally select your ELB from the dropdown box.

两个选项均由Amazon记录:

Both options are documented by Amazon:

http://docs .aws.amazon.com/ElasticLoadBalancing/latest/DeveloperGuide/using-domain-names-with-elb.html