Ignite not discoverable in kubernetes cluster with TcpDiscoveryKubernetesIpFinder
According to the URL, the IP finder tries to use a service named ignite
, while you create it by name ignite-service
.
You should provide both namespace and service name in the IP finder configuration:
<bean class="org.apache.ignite.spi.discovery.tcp.ipfinder.kubernetes.TcpDiscoveryKubernetesIpFinder"> <property name="namespace" value="my-namespace"/> <property name="serviceName" value="ignite-service"/></bean>
You need to make sure you have the following locked down and handled.
- Creation of your namespace in kubernetes
- Creation of your service account in kubernetes
- Permissions set for your service account in your namespace in your cluster.
service account permissions
https://kubernetes.io/docs/reference/access-authn-authz/rbac/#service-account-permissions