-
Notifications
You must be signed in to change notification settings - Fork 29
Added initial docker/kubernetes/helm support #121
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Added initial docker/kubernetes/helm support #121
Conversation
Hi Instead of changing so many OTS files. You can fix most of the problems with a init script. I'm not fully in the k8s world yet, but you will likely run into file permissions when running as non-root or not setting UID/GIU on the container user, I tried with my setup initially. When the "local" folder and app user don't have the same UID/GIU many reported problems with permissions. https://github.com/milsimdk/ots-docker/blob/main/compose.override.yaml-example |
Looks like I picked a hell of a day to quit sniffing glue. Great work
everyone
…On Mon, Feb 24, 2025, 9:25 AM nerdalertdk ***@***.***> wrote:
Hi
Instead of changing so many of the OTS files. You can fix most of the
problems with a init script.
You are welcome to see how I got ENV support for my docker image here
https://github.com/milsimdk/ots-docker-image/blob/main/entrypoint.d/__init__.py
—
Reply to this email directly, view it on GitHub
<#121 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AD3F7PTWYLDO23R2YCWKLBD2RNIXDAVCNFSM6AAAAABXYQGE6OVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMNZZGE3DIOBQHA>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
[image: nerdalertdk]*nerdalertdk* left a comment
(brian7704/OpenTAKServer#121)
<#121 (comment)>
Hi
Instead of changing so many of the OTS files. You can fix most of the
problems with a init script.
You are welcome to see how I got ENV support for my docker image here
https://github.com/milsimdk/ots-docker-image/blob/main/entrypoint.d/__init__.py
—
Reply to this email directly, view it on GitHub
<#121 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AD3F7PTWYLDO23R2YCWKLBD2RNIXDAVCNFSM6AAAAABXYQGE6OVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMNZZGE3DIOBQHA>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Thanks for the very good input. I like the solution with the init file, I'll adopt it. |
Did suspect kubernetes did something smart with permissions, so that's great. You are more then welcome to just use my image, have one for both OTS and OTS-UI |
Sorry for the delay but I finally got some time to take a look at this. I'm unfamiliar with how k8s/helm work so I'm going to read up on them. I also want to confirm that these changes won't impact users who use the installer script. I'll add comments in the code review if I have any specific questions for you. |
@CPlusPlus17 How did you configure RabbitMQ authentication? I installed OTS from the installer script and then installed this PR and it gets an error about plain auth not being enabled in RabbitMQ. Did you just add |
I did some testing and realized that no config changes are needed for RabbitMQ. However if |
I'm not sure if I'm doing something wrong or if there's an issue with the helm chart but when I try to install the helm chart I get this error. $ helm install opentakserver opentakserver-0.1.0.tgz
Error: INSTALLATION FAILED: 1 error occurred:
* Deployment in version "v1" cannot be handled as a Deployment: json: cannot unmarshal number into Go struct field EnvVar.spec.template.spec.containers.env.name of type string |
You are right, I adjusted it to only support authenticated connection. Will adjust it. |
Do you provide a values file when installing? |
Initial docker support with helm chart. I also refactored rabbitmq to use authentication.
Please let me know your feedback.