【问题标题】:`gcloud compute instances create-with-container --public-dns` - what does this do?`gcloud compute instances create-with-container --public-dns` - 这是做什么的?
【发布时间】:2020-03-26 17:01:51
【问题描述】:

我希望为我的计算实例获取公共 DNS 名称,我注意到在 create-with-container there's the --public-dns flag 的测试版中。我用这个标志创建了一个容器,但是当我进行检查时,我看不到任何类型的公共 DNS 名称。

有什么方法可以在不启动负载平衡器等的情况下为我的容器获取公共 DNS 名称?

【问题讨论】:

    标签: google-cloud-platform google-compute-engine google-container-os


    【解决方案1】:

    我建议你看一下文档“Creating an instance with a PTR record

    gcloud 命令的等价物是

    gcloud compute instances create [INSTANCE_NAME] \
        --image-family [IMAGE_FAMILY] \
        --image-project [IMAGE_PROJECT] \
        --public-ptr --public-ptr-domain [DOMAIN_NAME]
    

    【讨论】:

    • 我不想创建链接到我的域的 PTR 记录。相反,我想要一个我的计算实例的公共 DNS 名称(例如[INSTANCE_NAME].project-id.googlecloud.com)。这个 --public-dns 标志记录不足,我正在努力理解它。
    猜你喜欢
    • 2020-03-29
    • 2021-11-20
    • 1970-01-01
    • 2016-06-30
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-12-24
    • 2016-08-23
    相关资源
    最近更新 更多