Mounting ebs volume via bootstrap-containers #4521
Replies: 1 comment
-
|
Nevermind, I've just realized that the script must be a part of dockerfile instead of passing it through user-data, once I've pasted it to image and set it as entrypoint everything started working. I guess you were my rubber duck |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi!
I have setup with karpenter that creates bottlerocket nodes with the following
blockDevicesMappingssettingI want the
/dev/xvdcto be mounted on node so my pods can use hostPath volume for on-node cache mechanism. I've read that bootstrap-containers is the way to go for me so I've tried to set it up by passing userData on the EC2NodeClass resourceit's from this discussion #2168 with a small adjustment for my case.
Do you see anything that I'm doing wrong or how can I at least debug that? I tried getting into node via aws ssm ->
apiclient exec admin bash->sheltieand runningjournalctlbut all I get to find there is that the/usr/bin/boostrap-containerscommand has been run and no longs from inside the container that would suggest anything wrong. The one thing that I've noticed that although I set ebs as /dev/xvdc it's always nvme2n1 in admin shell so I've changed that device name in scriptBeta Was this translation helpful? Give feedback.
All reactions