Comments (24)
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.
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.
Yes that's correct. Did it go ok so far?
from charts.
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.
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.
k3os and k3s.
ls -l /etc/localtime
total 0
from charts.
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.
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.
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.
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.
What’s the current version of k8s being installed by it? Is it 1.18?
from charts.
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.
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.
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.
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.
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.
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.
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.
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.
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.
Success so far I have both deployed and now need to try setting up some PVC's
from charts.
Very cool. Keep me updated.
Does k3os come with all the necessary host-level requirements for iscsi to work?
from charts.
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.
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)
- Resource limits HOT 6
- unable to upgrade to 0.12.0 HOT 2
- Way to Move TrueNAS Secrets out of freenas-iscsi.yaml (values.yaml)? HOT 2
- Breaking changes: CustomResourceDefinition & field is immutable HOT 1
- Initial setup assist, installed truenas core last week HOT 12
- Regardless of chart version, latest democratic-csi image is always pulled and deployed HOT 3
- Mirror this Helm repo to ArtifactHub HOT 3
- Ability to set pods priority HOT 1
- lustre support from helm chart HOT 2
- k8s.gcr.io Image Registry Will Be Frozen HOT 2
- Proposal: Add helm-docs support on charts HOT 6
- Questions about `datasetPermissions*` and `shareMaproot*` fields HOT 8
- appVersion set to 1.0 for all helm releases HOT 3
- Weird behavior on directory creation for generic NFS mounts HOT 1
- Can't find smb-client.yaml file in the examples HOT 1
- Helm error if defaultClass is set to true HOT 1
- Question about the grpc-proxy HOT 2
- how can I replicate data in 3 different truenas ?
- Split image and tag into different values in the helm chart
- CA_BUNDLE preventing snapshot controller from being installed
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from charts.