diff options
author | Valerij Fredriksen <freva@users.noreply.github.com> | 2024-02-29 16:10:37 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-29 16:10:37 +0100 |
commit | 7778895f56c449431005fc7b2196736a3c639a09 (patch) | |
tree | afef5e6b5fa20f1436973de01aa4c4882ce638ae | |
parent | 2831c66dc4ea04ed1ba2dda836a4dc0c2e7f8164 (diff) | |
parent | 7f1db4955a6cad6d5b2ce07450895885f26d7f94 (diff) |
Merge pull request #30439 from vespa-engine/hakonhall/document-private-vs-public-ips-in-azure
Document private vs public IPs in Azure
-rw-r--r-- | node-repository/src/main/java/com/yahoo/vespa/hosted/provision/node/Dns.java | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/node-repository/src/main/java/com/yahoo/vespa/hosted/provision/node/Dns.java b/node-repository/src/main/java/com/yahoo/vespa/hosted/provision/node/Dns.java index 9f5aaf4b327..1131529c84e 100644 --- a/node-repository/src/main/java/com/yahoo/vespa/hosted/provision/node/Dns.java +++ b/node-repository/src/main/java/com/yahoo/vespa/hosted/provision/node/Dns.java @@ -38,11 +38,12 @@ public class Dns { } if (cloudName == CloudName.AZURE) { - return ipVersion.is6() ? - EnumSet.noneOf(RecordType.class) : - enclave || hostType == confighost ? - EnumSet.of(RecordType.FORWARD, RecordType.PUBLIC_FORWARD) : - EnumSet.of(RecordType.FORWARD); + return ipVersion.is6() ? EnumSet.noneOf(RecordType.class) : + // Each Azure enclave and cfg host and child gets one private 10.* address and one public address. + // The private DNS zone resolves to the private, while the public DNS zone resolves to the public, + // which is why we return FORWARD and PUBLIC_FORWARD here. The node repo only contains the private addresses. + enclave || hostType == confighost ? EnumSet.of(RecordType.FORWARD, RecordType.PUBLIC_FORWARD) : + EnumSet.of(RecordType.FORWARD); } throw new IllegalArgumentException("Does not manage DNS for cloud " + cloudName); |