summaryrefslogtreecommitdiff
path: root/roles/kubernetes/standalone/pod/tasks/main.yml
diff options
context:
space:
mode:
Diffstat (limited to 'roles/kubernetes/standalone/pod/tasks/main.yml')
-rw-r--r--roles/kubernetes/standalone/pod/tasks/main.yml5
1 files changed, 3 insertions, 2 deletions
diff --git a/roles/kubernetes/standalone/pod/tasks/main.yml b/roles/kubernetes/standalone/pod/tasks/main.yml
index b59e4f38..73048a81 100644
--- a/roles/kubernetes/standalone/pod/tasks/main.yml
+++ b/roles/kubernetes/standalone/pod/tasks/main.yml
@@ -55,14 +55,14 @@
apiVersion: v1
kind: Pod
metadata:
- name: {{ kubernetes_standalone_pod.name }}
+ name: "{{ kubernetes_standalone_pod.name }}"
{% if 'labels' in kubernetes_standalone_pod %}
labels:
{{ kubernetes_standalone_pod.labels | to_nice_yaml(indent=2) | indent(4) }}{% endif %}
{% if config_hash_value is defined or'annotations' in kubernetes_standalone_pod %}
annotations:
{% if config_hash_value is defined %}
- config-hash: {{ config_hash_value }}
+ config-hash: "{{ config_hash_value }}"
{% endif %}
{% if 'annotations' in kubernetes_standalone_pod %}
{{ kubernetes_standalone_pod.annotations | default({}) | to_nice_yaml(indent=2) | indent(4) }}{% endif %}
@@ -70,3 +70,4 @@
spec:
{{ kubernetes_standalone_pod.spec | indent(2) }}
dest: "/etc/kubernetes/manifests/{{ kubernetes_standalone_pod.name }}.yml"
+ mode: "{{ kubernetes_standalone_pod.mode | default(omit) }}"