jina.orchestrate.deployments.config.k8slib.kubernetes_tools module

jina.orchestrate.deployments.config.k8slib.kubernetes_tools.get_yaml(template, params)[source]

Create a resource on Kubernetes based on the template. It fills the template using the params.

Parameters
  • template (str) – path to the template file.

  • params (Dict) – dictionary for replacing the placeholders (keys) with the actual values.

Return type

Dict

Returns

The yaml dictionary with the corresponding template filled with parameters