mirror of
https://github.com/ansible/awx.git
synced 2026-05-14 21:07:39 -02:30
Add support for Kubernetes Pod annotations
Variable `kubernetes_pod_annotations` will add annotations to Kubernetes pods
This commit is contained in:
@@ -104,6 +104,12 @@ spec:
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
template:
|
template:
|
||||||
metadata:
|
metadata:
|
||||||
|
{% if kubernetes_pod_annotations is defined %}
|
||||||
|
annotations:
|
||||||
|
{% for key, value in kubernetes_pod_annotations.items() %}
|
||||||
|
{{ key }}: {{ value }}
|
||||||
|
{% endfor %}
|
||||||
|
{% endif %}
|
||||||
labels:
|
labels:
|
||||||
name: {{ kubernetes_deployment_name }}-web-deploy
|
name: {{ kubernetes_deployment_name }}-web-deploy
|
||||||
service: django
|
service: django
|
||||||
|
|||||||
Reference in New Issue
Block a user