mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-13 21:25:09 +00:00
AWS: Install ntp daemon on all nodes
The AWS API requires a signature on method calls, including the timestamp to prevent replay attacks. A time drift of up to 5 minutes between client and server is tolerated. However, if the client clock drifts by >5 minutes, the server will start to reject API calls (with the cryptic "AWS was not able to validate the provided access credentials"). To prevent this happening, we install ntp on all nodes. Fix #11371
This commit is contained in:
11
cluster/saltbase/salt/ntp/init.sls
Normal file
11
cluster/saltbase/salt/ntp/init.sls
Normal file
@@ -0,0 +1,11 @@
|
||||
ntp:
|
||||
pkg:
|
||||
- installed
|
||||
|
||||
ntp-service:
|
||||
service:
|
||||
- running
|
||||
- name: ntp
|
||||
- watch:
|
||||
- pkg: ntp
|
||||
|
@@ -3,6 +3,9 @@ base:
|
||||
- base
|
||||
- debian-auto-upgrades
|
||||
- salt-helpers
|
||||
{% if grains.get('cloud') == 'aws' %}
|
||||
- ntp
|
||||
{% endif %}
|
||||
|
||||
'roles:kubernetes-pool':
|
||||
- match: grain
|
||||
|
Reference in New Issue
Block a user