HELP: (Please) with SCALE and application networking

csjjpm

Contributor
Joined
Feb 16, 2015
Messages
126
Hi,
I've just upgraded to SCALE this morning which seemed to go well. I am trying to understand the networking config with this 'Kubernetes Node IP' thing.
With my old JAILS they got an IP by DHCP (reserved) from my router. How do I do the same with the applications?
I've read this https://www.truenas.com/docs/scale/scaletutorials/apps/usingapps/ and this https://www.truenas.com/docs/scale/gettingstarted/vmandappconfigscale/ but I need a real world example to be able to understand the technical changes.
My router is 192.168.0.1
Currently the Kubernetes settings are Node IP 0.0.0.0 and the Cluster CIDR is 172.16.0.0/16, Service CIDR 172.17.0.0/16 and Cluster DNS IP 172.17.0.10

My router before would route ports to internal IP ports e.g. mydomain.net:8920 -- > 192.168.0.17:8920

If I create an application and ifconfig in the console the application is a 172.16.0.?? address.

How do I achieve this again?
Thanks
Paul

*apologies realise this may be in the wrong section and should be under the SCALE threads
 
Last edited:

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,703
With my old JAILS they got an IP by DHCP (reserved) from my router. How do I do the same with the applications?
You don't... unless you're wanting to remain stuck in the past and try to cajole a system into doing something it's really not designed to do.

Now's your chance to embrace the Kubernetes Ingress way of doing things... One Ingress controller (usually Traefik) in front of all your other apps.
 

csjjpm

Contributor
Joined
Feb 16, 2015
Messages
126
:smile: I'm beginning to realise how this works. I've realised that the application ports are running off the truenas IP so I've got emby working.

My issue will be when I setup my web server and how I route 80/443 etc.. I'll work that out too :smile:
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,703
My issue will be when I setup my web server and how I route 80/443 etc.. I'll work that out too
Somebody already sorted that out...

And because they broke one of the links on that page:
 
Last edited:

csjjpm

Contributor
Joined
Feb 16, 2015
Messages
126
Somebody already sorted that out...

And because they broke one of the links on that page:
Hi,
I've installed this and am getting 404 page not found when I go to my server:9000 or server:9080
There is an open button on the application tile but that doesn't do anything.
I installed Traefik form Truecharts
Thanks
Paul
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,703
There is an open button on the application tile but that doesn't do anything.
Does that point at port 9000?

also, did you move the TrueNAS ports away from 443/80? (and are you sure the app is running and not just re-deploying, crashing and starting again?)
 

csjjpm

Contributor
Joined
Feb 16, 2015
Messages
126
Does that point at port 9000?

also, did you move the TrueNAS ports away from 443/80? (and are you sure the app is running and not just re-deploying, crashing and starting again?)
It appears to be running
1678805874284.png


and I'm accessing my server now on port 81
1678805913412.png


In my browser
1678805966989.png
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,703
Try it like this:


Also, you should have changed the ports to be 443 and 80, not 9443 and 9080 (otherwise, you don't need to move the TrueNAS GUI).

I just did the (painful and IMHO completely unnecessary) process to upgrade that app yet again and I see where you are. The current/latest version has broken the Open button.
 
Last edited:
Top