diff options
author | Christian Pointner <equinox@spreadspace.org> | 2020-06-30 16:09:52 +0200 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2020-06-30 16:09:52 +0200 |
commit | b8a5b98ee991669ef16eed50b9fa221eecf27d87 (patch) | |
tree | cc695018cdc96ce4d4fd715e087e567291d62f7e /roles/kubernetes/standalone | |
parent | kubernetes: add standalone/pod role (diff) |
apps/coturn: migrate to new standalone pod role
Diffstat (limited to 'roles/kubernetes/standalone')
-rw-r--r-- | roles/kubernetes/standalone/pod/defaults/main.yml | 2 | ||||
-rw-r--r-- | roles/kubernetes/standalone/pod/tasks/main.yml | 5 |
2 files changed, 4 insertions, 3 deletions
diff --git a/roles/kubernetes/standalone/pod/defaults/main.yml b/roles/kubernetes/standalone/pod/defaults/main.yml index 87e849d8..c20d37cf 100644 --- a/roles/kubernetes/standalone/pod/defaults/main.yml +++ b/roles/kubernetes/standalone/pod/defaults/main.yml @@ -13,7 +13,7 @@ # - /bin/bash # - -c # - "sleep inf" - +# mode: 0600 # config_hash_items: # - path: /path/to/configfile # properties: 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) }}" |