Add support for Kubernetes Pod annotations

Variable `kubernetes_pod_annotations` will add annotations to Kubernetes pods
This commit is contained in:
Nicolas G 2020-10-21 19:59:11 -04:00 committed by GitHub
parent 81a79c30cb
commit a50e32d4ea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -104,6 +104,12 @@ spec:
{% endif %}
template:
metadata:
{% if kubernetes_pod_annotations is defined %}
annotations:
{% for key, value in kubernetes_pod_annotations.items() %}
{{ key }}: {{ value }}
{% endfor %}
{% endif %}
labels:
name: {{ kubernetes_deployment_name }}-web-deploy
service: django