The Issue

ARTIFACTORY: How to force artifactory to run with ipv4 only on an dual stack kubernete cluster

AuthorFullName__c
Paul Pan
articleNumber
000005305
ft:sourceType
Salesforce
FirstPublishedDate
2022-06-12T09:39:31Z
lastModifiedDate
2022-06-12
VersionNumber
2
Artifactory 7.x supports ipv6 and in an environment with ipv6 enabled, it will automatically bind to both ipv4 and ipv6 addresses.

In such case, tomcat will use ipv6 dns lookup method Java_java_net_Inet6AddressImpl_lookupAllHostAddr instead of Java_java_net_Inet4AddressImpl_lookupAllHostAddr

We have discovered that in some kubernete environments, such method could failed DNS look up and crash JVM and this will create random restart on your artifactory pod.