apiVersion: extensions/v1beta1 kind: DaemonSet metadata: name: configmap-updater namespace: default spec: template: metadata: labels: component: configmap-monitor system: kube annotations: pod.alpha.kubernetes.io/initialized: "true" pod.alpha.kubernetes.io/init-containers: '[ { "name": "copy-config", "image": "docker.io/port/centos-binary-kolla-kube-toolbox:3.0.1", "command": [ "/bin/sh", "-c", "cp -a /tmp/main-process-configmap/..data/* /tmp/pod-main-config/; kubectl get configmap main-process-configmap -o json | jq -r ''.metadata.resourceVersion '' > /tmp/configmap-monitor/configmap-version.txt; " ], "volumeMounts": [ { "name": "pod-main-config", "mountPath": "/tmp/pod-main-config" }, { "name": "configmap-monitor", "mountPath": "/tmp/configmap-monitor" }, { "name": "main-process-configmap", "mountPath": "/tmp/main-process-configmap" } ] } ]' spec: containers: - image: docker.io/port/centos-binary-kolla-kube-toolbox:3.0.1 name: main livenessProbe: exec: command: - /bin/bash - -c - | original_version=$(