Kritical Kubernetes error on new TrueNAS SCALE install

nicholas-h

Dabbler
Joined
Feb 24, 2023
Messages
19
Hi All,

I'm seeing the following critical error in my TrueNAS SCALE alerts panel. However, I have only configured my new server, with latest edition of TrueNAS SCALE, for SMB shares--no Kubernetes (yet), and no app plugins have been installed. Basically, this is a bare-bones install with only pools, datasets, SMB shares, and replication jobs configured, all which are working fine. I'm not sure if TrueNAS itself leverages Kubernetes, perhaps for its backup jobs (which are working)? Can anyone confirm or explain this?

"Failed to configure kubernetes cluster for Applications: [EINVAL] kubernetes.route_v4_interface: Please, set IPv4 Default Gateway (it can be fake) in Network → Global Configuration and then update Kubernetes settings. Currently, k3s cannot be used without a default route."​


Just before the above (same timestamp) I also have the following error:

Failed to sync OFFICIAL catalog: [EFAULT] Failed to clone 'https://github.com/truenas/charts.git' repository at '/mnt/mydataset/ix-applications/catalogs/github_com_truenas_charts_git_master' destination: Cmd('git') failed due to: exit code(128) cmdline: git clone -v https://github.com/truenas/charts.git /mnt/mydataset/ix-applications/catalogs/github_com_truenas_charts_git_master stderr: 'Cloning into '/mnt/mydataset/ix-applications/catalogs/github_com_truenas_charts_git_master'... fatal: unable to access 'https://github.com/truenas/charts.git/': Could not resolve host: github.com '​


Thank You,
Nicholas
 

nicholas-h

Dabbler
Joined
Feb 24, 2023
Messages
19
Hi All,

I'm seeing the following critical error in my TrueNAS SCALE alerts panel. However, I have only configured my new server, with latest edition of TrueNAS SCALE, for SMB shares--no Kubernetes (yet), and no app plugins have been installed. Basically, this is a bare-bones install with only pools, datasets, SMB shares, and replication jobs configured, all which are working fine. I'm not sure if TrueNAS itself leverages Kubernetes, perhaps for its backup jobs (which are working)? Can anyone confirm or explain this?

"Failed to configure kubernetes cluster for Applications: [EINVAL] kubernetes.route_v4_interface: Please, set IPv4 Default Gateway (it can be fake) in Network → Global Configuration and then update Kubernetes settings. Currently, k3s cannot be used without a default route."​


Just before the above (same timestamp) I also have the following error:

Failed to sync OFFICIAL catalog: [EFAULT] Failed to clone 'https://github.com/truenas/charts.git' repository at '/mnt/mydataset/ix-applications/catalogs/github_com_truenas_charts_git_master' destination: Cmd('git') failed due to: exit code(128) cmdline: git clone -v https://github.com/truenas/charts.git /mnt/mydataset/ix-applications/catalogs/github_com_truenas_charts_git_master stderr: 'Cloning into '/mnt/mydataset/ix-applications/catalogs/github_com_truenas_charts_git_master'... fatal: unable to access 'https://github.com/truenas/charts.git/': Could not resolve host: github.com '​


Thank You,
Nicholas

BTW, I have an IPv4 Default Gateway already defined in settings.
 

nicholas-h

Dabbler
Joined
Feb 24, 2023
Messages
19
After further investigation, it seems TrueNAS SCALE uses Kubernetes for applications. While I had not configured any applications, this error was confusing. However, I see in the Advanced Application settings a separate place to specify the v4 interface (which was not selected), and the v4 Gateway (which is separate from the gateway settings in the networks panel). After setting these, the error has been cleared.
 
Top