Previously we had a look on the RBAC needed for and ignite cluster in Kubernetes.
This blogs focuses on the deployment and the configuration of the cache.
The default ignite installation uses and xml based configuration. It is easy to mount files using configmaps.
> kubectl get configmap ignite-cache-configmap -o yaml NAME DATA AGE ignite-cache-configmap 1 32d gkatzioura@MacBook-Pro-2 templates % kubectl get configmap ignite-cache-configmap -o yaml apiVersion: v1 data: ignite-config.xml: "....\n" kind: ConfigMap metadata: creationTimestamp: 2020-03-07T22:23:50Z name: ignite-cache-configmap namespace: default resourceVersion: "137521" selfLink: /api/v1/namespaces/default/configmaps/ignite-cache-configmap uid: ff530e3d-10d6-4708-817f-f9845886c1b0
Since viewing the xml from the configmap is cumbersome this is the actual xml
<?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation=" http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd"> <bean class="org.apache.ignite.configuration.IgniteConfiguration"> <property name="peerClassLoadingEnabled" value="false"/> <property name="dataStorageConfiguration"> <bean class="org.apache.ignite.configuration.DataStorageConfiguration"> </bean> </property> <property name="discoverySpi"> <bean class="org.apache.ignite.spi.discovery.tcp.TcpDiscoverySpi"> <property name="ipFinder"> <bean class="org.apache.ignite.spi.discovery.tcp.ipfinder.kubernetes.TcpDiscoveryKubernetesIpFinder"> <property name="namespace" value="default"/> <property name="serviceName" value="ignite-cache"/> </bean> </property> </bean> </property> </bean> </beans>
The default DataStorageConfiguration is being used.
What you can see different from other ignite installations is TCP discovery. The tcp discover used is using the Kubernetes TCP based discovery.
The next blog focuses on the services and the deployment.
3 thoughts on “Apache Ignite on your Kubernetes Cluster Part 3: Configuration explained”