<p>I have created a simple Springboot application which runs on my localhost port number 9091 which returns &quot;Hello world!!!&quot; when http://localhost:9091/helloWorld url is invoked.</p>
<p>Below are the code snippets of my Springboot main class and controller class</p>
<pre><code>@SpringBootApplication
public class HelloWorldApplication {

    public static void main(String[] args) {
        SpringApplication.run(HelloWorldApplication.class, args);
    }

}

@RestController
public class HelloWorldController {
    
    @GetMapping(value=&quot;/helloWorld&quot;)
    public String helloWorld() {
        return &quot;Hello world!!!!&quot;;
    }

}
</code></pre>
<p>Below are the dependencies in my pom.xml</p>
<pre><code>        &lt;dependency&gt;
            &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
            &lt;artifactId&gt;spring-boot-starter-web&lt;/artifactId&gt;
        &lt;/dependency&gt;

        &lt;dependency&gt;
            &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
            &lt;artifactId&gt;spring-boot-devtools&lt;/artifactId&gt;
            &lt;scope&gt;runtime&lt;/scope&gt;
            &lt;optional&gt;true&lt;/optional&gt;
        &lt;/dependency&gt;

        &lt;dependency&gt;
            &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
            &lt;artifactId&gt;spring-boot-starter-test&lt;/artifactId&gt;
            &lt;scope&gt;test&lt;/scope&gt;
        &lt;/dependency&gt;

        &lt;!-- https://mvnrepository.com/artifact/org.springdoc/springdoc-openapi-ui --&gt;
        &lt;dependency&gt;
            &lt;groupId&gt;org.springdoc&lt;/groupId&gt;
            &lt;artifactId&gt;springdoc-openapi-ui&lt;/artifactId&gt;
            &lt;version&gt;1.6.3&lt;/version&gt;
        &lt;/dependency&gt;
</code></pre>
<p>I can also access the swagger ui of my Springboot project using the following url http://localhost:9091/swagger-ui/index.html</p>
<p><a href="https://i.stack.imgur.com/UM55G.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/UM55G.png" alt="Swagger UI Accessed on Localhost" /></a></p>
<p>I have deployed this Springboot application into my k8s cluster using the below yaml file configuration</p>
<pre><code>apiVersion: apps/v1
kind: Deployment
metadata:
   name: hello-world
spec:
   replicas: 1
   selector:
      matchLabels:
         app: hello-world
   template:
      metadata:
        labels:
           app: hello-world
      spec:
         containers:
            - name: hello-world
              image: moviepopcorn/hello_world:0.0.1
              ports:
                 - containerPort: 9091
              imagePullPolicy: Always
---
apiVersion: v1
kind: Service
metadata:
   name: hello-world
spec:
   type: NodePort
   selector:
      app: hello-world
   ports:
      - port: 9091
        targetPort: 9091
        nodePort: 30001
</code></pre>
<p>And I could also access the helloWorld endpoint with the following url &lt;K8S_MASTER_NODE_IP&gt;:&lt;NODE_PORT (30001)&gt; as you can see below</p>
<p><a href="https://i.stack.imgur.com/Yql7d.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Yql7d.png" alt="Node port service accessed on a browser" /></a></p>
<p>But when I try to access the swagger-ui of my Springboot using the following url <a href="http://192.168.254.94:30001/swagger-ui/index.html" rel="nofollow noreferrer">http://192.168.254.94:30001/swagger-ui/index.html</a> I see the below Whilelabel Error Page</p>
<p><a href="https://i.stack.imgur.com/QEAeq.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/QEAeq.png" alt="Whitelabel Error Page" /></a></p>
<p>Could you please help me understand on what is causing this Whitelabel Error Page issue when I access my springboot app using my cluster master node ip?</p>

Srinivasan Ramu
<p>I found the solution for this. I just added the following dependency in the pom.xml</p>
<pre><code>    &lt;dependency&gt;
        &lt;groupId&gt;org.springdoc&lt;/groupId&gt;
        &lt;artifactId&gt;springdoc-openapi-webflux-ui&lt;/artifactId&gt;
        &lt;version&gt;1.6.3&lt;/version&gt;
    &lt;/dependency&gt;
</code></pre>
