k8s-handle icon indicating copy to clipboard operation
k8s-handle copied to clipboard

Add to Readme info about include ENV vars in deployment from another file

Open dekhtyarev opened this issue 6 years ago • 0 comments

Russia edition:

  • Использование yaml include с вариативным количеством отступов:
...
    resources:
      requests:
        cpu: {{ requests_cpu }}
        memory: {{ requests_memory }}
      limits:
        cpu: {{ limits_cpu }}
        memory: {{ limits_memory }}
    env:{% macro incvars() %}{% include "env.yaml.j2" with context %}{% endmacro %}
    {{ incvars()|indent(8) }}

dekhtyarev avatar Aug 24 '18 11:08 dekhtyarev