def generate_service_selector(pod_name):
    """
                |   python launcher  | framework controller
    ------------------------------------------------
    regular     | ab8e7a11-bff7-497f-bd6d-22a326d2c304 | 9cfb453b7afc453bb40a963be1225549-master-0
    distributed | 842e9fc8-a4a1-425c-b551-4e5b4fad4337-{ps,worker}[0-9]+ | eb43c114365a441881faf95ac24a9f88-{ps,worker}-[0-9]+
    """
    parts = pod_name.split("-")
    if len(parts) == 3:
        # job created by framework controller
        uuid, role, idx = parts
        return {
            "FC_FRAMEWORK_NAME": uuid,
            "FC_TASKROLE_NAME": role,
            "FC_TASK_INDEX": idx
        }
    else:
        return {"podName": pod_name}