def _handle_docker_port(port):
    """Translates a Docker-Compose style port to a Kubernetes servicePort """
    kube_port = {}
    try:
        kube_port["port"] = port.split(":")[1]
        kube_port["targetPort"] = port.split(":")[0]
    except IndexError:
        kube_port["port"] = port.split(":")[0]

    return kube_port