GithubHelp home page GithubHelp logo

Comments (3)

coldfire84 avatar coldfire84 commented on June 26, 2024 1

Had the same issue on a pi4 I recently tested k3os image on using instructions here https://www.chriswoolum.dev/k3s-cluster-on-raspberry-pi, it was down to date/ time being out of sync (ntp hadn't worked on boot).

My config/ yaml formatting ended up slightly different to the linked article, and it works now:

# the hostname you want to use for the Pi
hostname: k3os1

# a public key if you intend to use ssh to connect to the node. This is highly recommended since k3OS has no root user.
ssh_authorized_keys:
  - <redacted>

# Ethernet config
write_files:
- encoding: ""
  path: /var/lib/connman/default.config
  content: |-
    [service_eth0]
    Type=ethernet
    IPv4=192.168.1.10/255.255.255.0/192.168.1.1
    IPv6=off
    Nameservers=192.168.1.1

# Ensure NFS provider can start, will generate error otherwise: "Failed to stat /var/lib/nfs/sm: No such file or directory"
run_cmd:
- "mkdir -p /var/lib/nfs/sm"

# Enable rpsbind/ nfs services: https://github.com/rancher/k3os/issues/555 | https://github.com/democratic-csi/charts/issues/3
boot_cmd:
- rc-update add rpc.statd
- rc-update add nfs

k3os:
  ntp_servers:
  - 0.uk.pool.ntp.org
  - 1.uk.pool.ntp.org

  dns_nameservers:
  - 192.168.1.254

  k3s_args:
  - server

from picl-k3os-image-generator.

frudolph77 avatar frudolph77 commented on June 26, 2024

I've the very same problem, the solution form @coldfire84 does not work for me.

My network only uses DHCP and WIFI, so no fixed IPs. Therefore I had no connman config but I tried it also with a config.

I think the main problem is that busybox does not start the ntpd. When starting ntpd by hand and restarting k3s-service it is running fine.

Unfortunately I didn't get ntpd working on boot.

from picl-k3os-image-generator.

sgielen avatar sgielen commented on June 26, 2024

Closing all issues, because the project is archived. Thank you for being a contributor and/or user!

from picl-k3os-image-generator.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.