apiVersion: v1
kind: ConfigMap
metadata:
  name: ntp

data:
  ntpd.conf: |
    listen on 0.0.0.0

    {{- range $i, $s := .Values.ntp_server}}
    servers {{ $s.server }}
    {{- end}}

  healthz: |
    #!/bin/bash
    ntpctl -s all status
    return $?
    };
