rancher / k3os

Purpose-built OS for Kubernetes, fully managed by Kubernetes.
https://k3os.io
Apache License 2.0
3.5k stars 396 forks source link

set fake ntp while no internet access and no NTP access #861

Open kkosowsk opened 1 year ago

kkosowsk commented 1 year ago

Version (k3OS / kernel) NAME="k3OS" VERSION="k3OS v0.11.1" ID=k3os ID_LIKE=alpine PRETTY_NAME="k3OS v0.11.1" VERSION_ID="v0.11.1" HOME_URL="https://k3os.io/" SUPPORT_URL="https://k3os.io/" BUG_REPORT_URL="https://github.com/rancher/k3os/issues" ISO_URL="https://github.com/rancher/k3os/releases/download/v0.11.1/k3os-arm64.iso"

Architecture aarch64

Describe the bug When no NTP access, or its not set its impossible to connect to k3s cluster

hwclock: Cannot access the Hardware Clock via any known method. Failed to set the system clock

To Reproduce Cut NTP access / cut internet access Expected behavior

Nice to have the possibility to set a fake clock k3os switch to localtime / fake time / read the time from file?

Actual behavior K3os are not able to get the time and that's affects k3s

Additional context I have to run an application on RPI with k3os, and RPI doesn't have access to any network