itzg / minecraft-server-charts

MIT License
267 stars 142 forks source link

Proxy tty/stdin not working with Helm chart #175

Closed AeonRemnant closed 10 months ago

AeonRemnant commented 10 months ago

Pretty much exactly what is says. I'm playing around testing some new software and using the standard minecraft-proxy helm chart doesn't allow me to kubectl attach to it, which is fine because it doesn't come shipped with tty and stdin out of the box, but I can't figure out where exactly these should go since the chart is a little confusing. Helm says it goes in spec and there is no spec in this chart.

Still new here so I'm a smidge confused.

I'm pretty sure my config is borked but just to be sure and sanity check I'll poke in here since I can see there's docker compose config with tty and stdin in the docs so I'm certain it's allowed by default.

itzg commented 10 months ago

I'm wondering why you posted the issue here and not on the charts repo? I can move the issue if you intended for the other repo.

AeonRemnant commented 10 months ago

Lmfao yeah I did, my bad. Been awake a little too long and I'm making mistakes.

itzg commented 10 months ago

Making a note that the deployment template for the proxy needs similar to

https://github.com/itzg/minecraft-server-charts/blob/2b64e8212444956bc3531e8422d462bbe0238e7a/charts/minecraft/templates/deployment.yaml#L155

AeonRemnant commented 10 months ago

Thanks for the speed mate! But this should work if I manually add tty and stdin to the chart? Just sanity checking since I'm using unfamiliar tech.

itzg commented 10 months ago

No, the chart itself needs to be modified.

(Personally I don't use Helm because I prefer the flexibility to modify the manifests directly.)

itzg commented 10 months ago

To phrase the answer differently: you could clone this repo, change the charts deployment file manually, and that'll work. At that point a PR to submit back that change would be awesome 😀

AeonRemnant commented 10 months ago

I'm eyeballing manifests, yeah. Trying to poke into GitOps but I don't expect to be full ball on it for a good while. :p Yeah I'll poke around and go do some testing.

itzg commented 10 months ago

I totally get that. It'll be an easy change for me -- just need to spin off a few minutes to do it 😁.

AeonRemnant commented 10 months ago

I mean hey, may as well learn as much as I can, y'know? Kube isn't even remotely kind if you're unwilling to dig into things and tinker.

itzg commented 10 months ago

Just wanted to point out that chart version 3.3.1 now enabled tty and stdin.

AeonRemnant commented 10 months ago

Tried and tested, works perfectly. :) I appreciate it, mate.