Show HN: Kubernates in Node.js
github.com
Show HN: Kubernates in Node.js
1–10 of 71 posts
Re: Show HN: Kubernates in Node.js
#2Re: Show HN: Kubernates in Node.js
#3Re: Show HN: Kubernates in Node.js
#4Re: Show HN: Kubernates in Node.js
#5As a concrete example, command: ["bash -c uptime"] will not work because there is no such command '/usr/bin/bash -c uptime' and the actual form is command: ["bash", "-c", "uptime"]
Related, it often bites people that exec does no shell interpolation, neither resolving variables nor redirection, so command: ["doit", ">/dev/null"] will not shake out, nor will command: ["echo", "$HOSTNAME"] (although there is a nuance to that since kubernetes itself will actually resolve any env:[] references in a (regrettably horrible) syntax of command: ["echo", "$(USERNAME)"], env: [{name: USERNAME, value: megapixel99}]
All in all, congratulations on your Show HN!
Re: Show HN: Kubernates in Node.js
#6Re: Show HN: Kubernates in Node.js
#7Re: Show HN: Kubernates in Node.js
#8This seems like a small CRUD app to replace apiserver/etcd with a nodejs app and mongodb.
Re: Show HN: Kubernates in Node.js
#9depending on what, exactly "bash commands don't work" https://github.com/Megapixel99/nodejs-k8s/blob/master/functi... > is talking about, but a thing that bites A LOT of folks when dealing with command: [] (and its args:[] friend) is that they are exec style, not "sh -c" style as one might experience with a Dockerfile RUN command. I think Dockerfile's RUN [""] syntax is also exec style, but I don't use it much becaus…
Re: Show HN: Kubernates in Node.js
#10depending on what, exactly "bash commands don't work" https://github.com/Megapixel99/nodejs-k8s/blob/master/functi... > is talking about, but a thing that bites A LOT of folks when dealing with command: [] (and its args:[] friend) is that they are exec style, not "sh -c" style as one might experience with a Dockerfile RUN command. I think Dockerfile's RUN [""] syntax is also exec style, but I don't use it much becaus…