Giter Club home page Giter Club logo

Comments (24)

Shifter2600 avatar Shifter2600 commented on September 16, 2024 1

I got it 👍 with help from this post rancher/k3os#103
https://pastebin.com/2fCnqwPu
base64 /usr/share/zoneinfo/America/Edmonton
take the output and remove the linefeeds into one line and replace the content with your timezone.

from charts.

Shifter2600 avatar Shifter2600 commented on September 16, 2024

Ahh I think I understand now. I need to pass in a yaml I create with my settings.
helm install freenas democratic-csi/democratic-csi -f myvalues.yaml
and use your freenas-nfs.yaml as a template.

from charts.

travisghansen avatar travisghansen commented on September 16, 2024

Yes that's correct. Did it go ok so far?

from charts.

Shifter2600 avatar Shifter2600 commented on September 16, 2024

Hitting an error on the deploy. The 5/5 controllers and running
but the nodes are 2/3 and showing a CrashloopBackoff and RunContainerErrors

RunContainerError: failed to create containerd task: OCI runtime create failed: container_linux.go:349: starting container process caused "process_linux.go:449: container init caused "rootfs_linux.go:58: mounting \"/etc/localtime\" to rootfs \"/run/k3s/containerd/io.containerd.runtime.v2.task/k8s.io/a557d452fa4267b548cfd6b1127dab1a59f5e1043f6447be549ca04b45fd404a/rootfs\" at \"/run/k3s/containerd/io.containerd.runtime.v2.task/k8s.io/a557d452fa4267b548cfd6b1127dab1a59f5e1043f6447be549ca04b45fd404a/rootfs/usr/share/zoneinfo/UCT\" caused \"not a directory\""": unknown

from charts.

travisghansen avatar travisghansen commented on September 16, 2024

Pretty common to set that up..what distro are you running?

Should look something like this..

ls -l /etc/localtime
lrwxrwxrwx. 1 root root 36 May 31  2018 /etc/localtime -> ../usr/share/zoneinfo/America/Denver
``

from charts.

Shifter2600 avatar Shifter2600 commented on September 16, 2024

k3os and k3s.
ls -l /etc/localtime
total 0

from charts.

travisghansen avatar travisghansen commented on September 16, 2024

Interesting, k3os is quite minimal. Not sure if you can use cloud-init to set that value or not. Is the fs immutable or can you manually set the link?

from charts.

Shifter2600 avatar Shifter2600 commented on September 16, 2024

Looks like there was some merges in april with someone with a similar need. Ya looks like I can set it in the config.yaml by writing a file. Just means I need to rebuild my cluster here not a big deal but i'll need to get to that tomorrow. Thx for the help. I will report back once I have the localtime set in there.
rancher/k3os#103

from charts.

travisghansen avatar travisghansen commented on September 16, 2024

Ah ok cool. Thanks for trying it out. I'll get around to putting proper documentation in place as well.

What version of k8s are you running?

When I last did the charts I built them with the alpha support for snapshots which has since gone beta (and changed relatively substantially) so the chart isn't really equipped to deal with snapshot classes etc as is. In other words, leave those blank for now.

from charts.

Shifter2600 avatar Shifter2600 commented on September 16, 2024

k3s from rancher labs.
Looks like it is going to be a straight forward addition to the config.yaml
sudo ln -vs /usr/share/zoneinfo/America/Edmonton /etc/localtime
that will populate it.

from charts.

travisghansen avatar travisghansen commented on September 16, 2024

What’s the current version of k8s being installed by it? Is it 1.18?

from charts.

Shifter2600 avatar Shifter2600 commented on September 16, 2024

Ya 1.18..
That didn't work same error.
RunContainerError: failed to create containerd task: OCI runtime create failed: container_linux.go:349: starting container process caused "process_linux.go:449: container init caused "rootfs_linux.go:58: mounting \"/etc/localtime\" to rootfs \"/run/k3s/containerd/io.containerd.runtime.v2.task/k8s.io/2982f3eeeb5758b328efa78e71b5c0598152389693360b98bb24c30267278b15/rootfs\" at \"/run/k3s/containerd/io.containerd.runtime.v2.task/k8s.io/2982f3eeeb5758b328efa78e71b5c0598152389693360b98bb24c30267278b15/rootfs/usr/share/zoneinfo/UCT\" caused \"not a directory\""": unknown

k3s00269eab19b4 [/usr/share/zoneinfo/America]$ ls -l /etc/localtime
total 0
lrwxrwxrwx 1 root root 36 May 23 04:43 Edmonton -> /usr/share/zoneinfo/America/Edmonton

from charts.

travisghansen avatar travisghansen commented on September 16, 2024

Hmm. I’ll setup a cluster with k3os and give it a whirl. In the mean time localtime is probably not critical and can likely be removed from the DaemonSet manually if you’re comfortable doing that kind of thing.

from charts.

Shifter2600 avatar Shifter2600 commented on September 16, 2024

I'd rather figure out how to get k3s compliant since it will likely come up again with other deploys. I have some messages out on their slack to see what to do about the time. I wonder if it's the symlink its having an issue with?

from charts.

travisghansen avatar travisghansen commented on September 16, 2024

I was wondering about that myself. It seems like something funny with some sort of overlay fs or whatever that’s making it kinda weird. Can you copy the file in place instead of the symlink?

from charts.

Shifter2600 avatar Shifter2600 commented on September 16, 2024

Here is the structure. /etc looks like it gets wiped on reboot so I'll have to find a way to get that file in there on build and on boot I guess
/etc - ephemeral
/usr - read-only (except /usr/local is writable and persistent)
/k3os - system files
/home - persistent
/var - persistent
/opt - persistent
/usr/local - persistent

from charts.

travisghansen avatar travisghansen commented on September 16, 2024

Yeah OK. I'm not quite ready to fire up a cluster with k3os but slowly working through my weekend list and I'll get there. I do quite a bit of stuff with rancher's products so I don't imagine it will be too much of a learning curve but if you want to shout out any configs/build steps you're doing to fast track it that would be good.

I added that mount to the chart simply because it's pretty common among the other csi installations (NetApp trident, openebs, etc) so yeah, you'll probably want a solid solution for this to fully solve the issue.

from charts.

Shifter2600 avatar Shifter2600 commented on September 16, 2024

configMACADDRESS.yaml
https://pastebin.com/N1zJKc26
I just added the TZ to environment based on another user. I will go ahead and rebuild my cluster here. BTW I use PXE with this script which brings in this config.
https://pastebin.com/YLTV4QiN

from charts.

Shifter2600 avatar Shifter2600 commented on September 16, 2024

Just rolled it on one node so far and the container fully deployed. Now just need to roll though the other 5 and PXE boot with the new config addition.

from charts.

travisghansen avatar travisghansen commented on September 16, 2024

Nice! Let me know how provisioning goes. Not sure if k3os includes all the necessary nfs/iscsi packages by default? I'd also recommend setting up iscsi as well.

For me I have 2 deployments of democratic-csi one for nfs and the other for iscsi. If you have all the right stuff in place on the nodes (iscsiadm, nfs-utils, etc) then you should have a pretty decent setup to roll with for however many clusters (run each cluster/deployment with it's own parent dataset).

You will inevitably find workloads that are just better with iscisi. nfs is nice and easy to start with but iscsi is really the better option unless you really need multiple nodes/pods to access the same storage. If you want/need help getting iscsi configured on the server let me know.

from charts.

Shifter2600 avatar Shifter2600 commented on September 16, 2024

Success so far I have both deployed and now need to try setting up some PVC's

from charts.

travisghansen avatar travisghansen commented on September 16, 2024

Very cool. Keep me updated.

Does k3os come with all the necessary host-level requirements for iscsi to work?

from charts.

Shifter2600 avatar Shifter2600 commented on September 16, 2024

Yes and it's all working so the only hang up was really the localtime timezone thing which is all in my config.yaml when the nodes get built

from charts.

travisghansen avatar travisghansen commented on September 16, 2024

Cool! Keep me updated and let me know if you run into anything weird. I’ll get the snapshot support cleaned up and then that should be in good enough shape to start using again as well.

from charts.

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.