INNER CODE UNIT · Python

kube_services_process

vchinnipilli/kubestriker · kubestriker/__main__.py:74

def kube_services_process(option, file_obj, host, port=None):
    """
    This function executes api server secure and insecure, kubelet RW and RO
    :param option:
    :param file_obj:
    :param host:
    :param port:
    :return:
    """
    token = ''
    end_point = ''
    service_discovery = ServiceDiscovery(file_obj)
    service_discovery.service_result(host, port)
    service_discovery_result = service_discovery.result
    apiserver_insecure = service_discovery_result.get('apiserver_insecure').get('active')
    kubelet_rw = service_discovery_result.get('kubelet_rw').get('active')
    kubelet_ro = service_discovery_result.get('kubelet_ro').get('active')
    ser_hunt = ServiceHunt(file_obj)

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…