Aller au contenu

Specific DNS entries (HostAliases)#

Hostaliases allow to add additional DNS entries to be injected directly into pods. To configure it you need to add custom DNS entries in envs-ng/client_specific_configurations.cue configuration file.

See the example below:

envs: ["echo"]: configurations: ["blackbox-exporter-core-client"]: {
    helm: values: "prometheus-blackbox-exporter": {
        hostAliases: [
            {
                ip: "1.1.1.1"
                hostNames: ["test123.com", "123test.com"]
            },
            {
                ip: "8.8.8.8"
                hostNames: ["google.com", "test12.com"]
            },
        ]
    }
}

Caution

Hostaliases is not activated unless a Hostaliases entry is defined like in the example above.