mirror of
https://github.com/ansible/awx.git
synced 2026-01-19 21:51:26 -03:30
Add support for Kubernetes Pod annotations
Variable `kubernetes_pod_annotations` will add annotations to Kubernetes pods
This commit is contained in:
parent
81a79c30cb
commit
a50e32d4ea
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user