private ExposeExternallyMode getExposeExternallyMode(Map<String, Comparable> properties) {
        Boolean exposeExternally = getOrNull(properties, KUBERNETES_SYSTEM_PREFIX, EXPOSE_EXTERNALLY);
        if (exposeExternally == null) {
            return ExposeExternallyMode.AUTO;
        } else if (exposeExternally) {
            return ExposeExternallyMode.ENABLED;
        } else {
            return ExposeExternallyMode.DISABLED;
        }
    }
@Test
    public void kubernetesApiExposeExternally() {
        // given
        Map<String, Comparable> properties = createProperties();
        properties.put(KubernetesProperties.EXPOSE_EXTERNALLY.key(), true);

        // when
        KubernetesConfig config = new KubernetesConfig(properties);

        // then
        assertEquals(ExposeExternallyMode.ENABLED, config.getExposeExternallyMode());
    }