I'm new to TrueNAS and my use case requires using docker containers so I went to Scale instead of Core but I have trouble setting up kubernetes.
On a fresh install, after having set up my network and created my pools and set up my shares I went to the "Apps" tab.
Here it asked me for a pool to store apps data on and then I got an error:
Complete error in spoiler:
I thought by default there would be a "local" kubernetes that starts and use my NAS as one node but it does not seem to work that way.
I found the settings for kubernetes but I do not know what to set in Cluster CIDR, Service CIDR, Cluster DNS IP (since I only want my dockers to run on my NAS).
Could you explain what I missed or point me to some documentation that could help me fix this issue?
On a fresh install, after having set up my network and created my pools and set up my shares I went to the "Apps" tab.
Here it asked me for a pool to store apps data on and then I got an error:
FAILED
[EINVAL] kubernetes_update.route_v4_gateway: Please set a default route for system or for kubernetes. [EINVAL] kubernetes_update.route_v4_interface: Please set a default route for system or specify default interface to be used for kubernetes.
Complete error in spoiler:
Code:
Error: Traceback (most recent call last): File "/usr/lib/python3/dist-packages/middlewared/job.py", line 378, in run await self.future File "/usr/lib/python3/dist-packages/middlewared/job.py", line 414, in __run_body rv = await self.method(*([self] + args)) File "/usr/lib/python3/dist-packages/middlewared/schema.py", line 1001, in nf return await f(*args, **kwargs) File "/usr/lib/python3/dist-packages/middlewared/plugins/kubernetes_linux/update.py", line 227, in do_update await self.validate_data(config, 'kubernetes_update', old_config) File "/usr/lib/python3/dist-packages/middlewared/plugins/kubernetes_linux/update.py", line 158, in validate_data verrors.check() File "/usr/lib/python3/dist-packages/middlewared/service_exception.py", line 62, in check raise self middlewared.service_exception.ValidationErrors: [EINVAL] kubernetes_update.route_v4_gateway: Please set a default route for system or for kubernetes. [EINVAL] kubernetes_update.route_v4_interface: Please set a default route for system or specify default interface to be used for kubernetes.
I thought by default there would be a "local" kubernetes that starts and use my NAS as one node but it does not seem to work that way.
I found the settings for kubernetes but I do not know what to set in Cluster CIDR, Service CIDR, Cluster DNS IP (since I only want my dockers to run on my NAS).
Could you explain what I missed or point me to some documentation that could help me fix this issue?