Skip to content

Ability to configure PTP hardware clock in chrony #4407

Description

@cristi-

What I'd like:

We would like to be able to configure chrony with the PTP protocol for precision timing according to: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/configure-ec2-ntp.html#connect-to-the-ptp-hardware-clock

The ability to enable the option phc_enable for the ena driver is available ✅ :

apiclient apply <<EOF
[settings.boot.kernel-parameters]
"ena.phc_enable" = ["1"]
EOF

however i couldn't find any way to add the following config option to /etc/chrony.conf

refclock PHC /dev/ptp_ena poll 0 delay 0.000010 prefer

Any alternatives you've considered:
maybe configuring chrony.conf from a k8s privileged pod (update: after reading a few issues it looks like changing files in /etc/ is not a good idea)?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    status/iceboxThings we think would be nice but are not prioritizedtype/enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions