Add Kubernetes Service support for annotations

This commit is contained in:
Harrison Katz
2020-12-03 18:36:02 -05:00
committed by GitHub
parent 9fc5579a50
commit 8b4b54d2c4

View File

@@ -518,6 +518,12 @@ metadata:
namespace: {{ kubernetes_namespace }}
labels:
name: {{ kubernetes_deployment_name }}-web-svc
{% if kubernetes_service_annotations is defined %}
annotations:
{% for key, value in kubernetes_service_annotations.items() %}
{{ key }}: {{ value | quote }}
{% endfor %}
{% endif %}
spec:
type: {{ kubernetes_web_svc_type }}
ports: