def generate_kernel_pod_yaml(keywords):
    'Return the kubernetes pod spec as a yaml string.\n\n    - load jinja2 template from this file directory.\n    - substitute template variables with keywords items.\n    '
    j_env = Environment(loader=FileSystemLoader(os.path.dirname(__file__)), trim_blocks=True, lstrip_blocks=True)
    k8s_yaml = j_env.get_template(KERNEL_POD_TEMPLATE_PATH).render(**keywords)
    return k8s_yaml
Return the kubernetes pod spec as a yaml string.

- load jinja2 template from this file directory.
- substitute template variables with keywords items.
def generate_kernel_pod_yaml(keywords):
    'Return the kubernetes pod spec as a yaml string.\n\n    - load jinja2 template from this file directory.\n    - substitute template variables with keywords items.\n    '
    j_env = Environment(loader=FileSystemLoader(os.path.dirname(__file__)), trim_blocks=True, lstrip_blocks=True)
    k8s_yaml = j_env.get_template(KERNEL_POD_TEMPLATE_PATH).render(**keywords)
    return k8s_yaml