zooes
zooes

Reputation: 1468

Micronaut - Kubernetes fails bean initialization

I am trying to integrate K8 with my micronaut application. Here is my config. But I get this error . Anyone know what I am doing wrong? I am trying to run my application locally, but connecting to remote K8 cluster.

Error:

17:09:18.120 [main] DEBUG i.m.context.condition.Condition - Bean [io.micronaut.kubernetes.discovery.$KubernetesDiscoveryClientDefinition] will not be loaded due to failing conditions:
17:09:18.121 [main] DEBUG i.m.context.condition.Condition - * None of the required environments [k8s] are active: []

Config :

kubernetes:
  client:
    host: remote-url
    port: 443
    secure: true
    namespace: default
    secrets:
      enabled: true
      paths:
        - /kv/

Upvotes: 1

Views: 398

Answers (1)

The Kubernetes beans will only be loaded when the application is running within a Kubernetes cluster. If you care to elaborate your use case, we can revisit this restriction in an upcoming release.

Upvotes: 2

Related Questions