Hi.
I want to set up NTP Pool, using my own machine.
So I followed this instruction.
Link 1 : Installation instructions - NTP Pool Development
But it didn’t worked.
So I checked git hub issue in Link 2,
Link 2 : docker link broken · Issue #155 · abh/ntppool · GitHub
And I changed instruction.
Link 3 : ntppool 0.4.15 · ntp/ntppool
But it’s still didn’t worked.
I installed minikube, docker, docker-compose in ubuntu 20.04 LTS(VM)
And error is
Error : INSTALLATION FAILED: template: ntppool/charts/geoip/templates/deployment.yaml:59:26: executing “ntppool/charts/geoip/templates/deployment.yaml” at <.Values.geoipupdate.config_script>: nil pointer evaluating interface {}.config_script
My question is
How can I set up NTP Pool in local?
If you experienced NTP Pool installing in your local machine, please help me.
ask
2
Oops – apologies for that. I appreciate you trying to get it running so others than me try it out!
MaxMind changed the geoip databases to require authentication to update the databases.
The values.yaml
configuration for the NTP Pool needs some configuration for that. I made an issue to remind myself to fix the documentation. Document geoip configuration in ntppool chart · Issue #1 · ntppool/charts · GitHub
In my environment I use Vault to store secrets (including the MaxMind API key); the config script is where the vault agent writes the secret.
The format of the secret (it can be mounted as a kubernetes secret) needs to be
export GEOIPUPDATE_ACCOUNT_ID="123"
export GEOIPUPDATE_LICENSE_KEY="ABC456"
Untested, but if you are willing to give it a try this might help you get a little further:
Put the contents above in a file (with configuration from MaxMind instead of the sample values) named env.sh
and then create a secret with
kubectl create secret generic --from-file=env.sh geoip-keys
In the NTP Pool values.yaml you then configure the geoip container with something like:
geoip:
geoipupdate:
/var/geoip-keys/env.sh
persistence:
geoip-keys:
enabled: true
mountPath: /var/geoip-keys/
name: geoip-keys
type: secret