Skip to main content

We have installed the IFS application with three MicroK8s VMS with a load balancer.

The application is working correctly with the following configuration in the main_config.json  file:

"LinuxUserName":  "ifs",

                "Linuxhost": "10.20.20.6",  #privateIP of loadbalancer

                "Nodes":   

                "microk8s-01.internal.cloudapp.net",

                "microk8s-02.internal.cloudapp.net",

                "microk8s-03.internal.cloudapp.net"

                ],

However, when trying to install the monitoring component, we encounter the following error:

secret/elastic-auth created
Error from server (NotFound): namespaces "-o" not found
Error from server (NotFound): namespaces "-o" not found
You cannot call a method on a null-valued expression.
At C:\IFS\qua\ifsroot\utils\local.psm1:1111 char:5
+     $yamlObject.metadata.Remove("namespace")
+     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) <], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull

You cannot call a method on a null-valued expression.
At C:\IFS\qua\ifsroot\utils\local.psm1:1112 char:5
+     $yamlObject.metadata.Remove("resourceVersion")
+     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) ~], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull

You cannot call a method on a null-valued expression.
At C:\IFS\qua\ifsroot\utils\local.psm1:1113 char:5
+     $yamlObject.metadata.Remove("uid")
+     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) ~], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull

You cannot call a method on a null-valued expression.
At C:\IFS\qua\ifsroot\utils\local.psm1:1114 char:5
+     $yamlObject.metadata.Remove("annotations")
+     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) ~], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull

You cannot call a method on a null-valued expression.
At C:\IFS\qua\ifsroot\utils\local.psm1:1115 char:5
+     $yamlObject.metadata.Remove("creationTimestamp")
+     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) ], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull

error: no objects passed to apply
Release "elasticsearch" does not exist. Installing it now.
Error: 1 error occurred:
        * Ingress.extensions "elasticsearch-master" is invalid: spec.rulesg0].host: Invalid value: "10.234.245.6": must be a DNS name, not an IP
Release "kibana" does not exist. Installing it now.
Error: 1 error occurred:
* Ingress.extensions "kibana" is invalid: spec.rulest0].host: Invalid value: "10.234.245.6": must be a DNS name, not an IP address


Release "ifs-monitoring-curator" does not exist. Installing it now.

 

REVISION: 1
Release "kube-prometheus-stack" does not exist. Installing it now.
Error: 1 error occurred:
* Ingress.extensions "kube-prometheus-stack-grafana" is invalid: spec.rules 0].host: Invalid value: "10.234.245.6": must be a DNS name, not an IP address


The variable to set URL is :
 $FQDN_FOR_MONITORING_INGRESS=$envParams.Ifs.Linuxhost

 

How can I fix the LinuxHost issue and install these components on each VM?

 

Regards,

Hi,
Is the IFS Cloud namespace installed and named in the main_config.json?
Also part of the error suggest that LinuxHost might need to be a hostname (FQDN?), not a IP?


Hello,

Thak you for your reply,

I used the private IP of my load balancer. Should I create a dedicated FQDN for monitoring, or can I use the application's FQDN( URL for my application )?

 

Regards,

 

 


I think you need the same FQDN, as it will share certificate with the IFS Cloud system url
Later e.g. Grafana will be accessed by https://Linuxhost/grafana 


Hello,

I did test this solution, it’s working.

Thank you for your help,

 

Regards, 


Reply