You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ignite.apache.org by dm...@apache.org on 2018/06/22 21:27:21 UTC
ignite git commit: Added Kubernetes config with persistence enabled
Repository: ignite
Updated Branches:
refs/heads/master 21cd24c6f -> c756ff89b
Added Kubernetes config with persistence enabled
Project: http://git-wip-us.apache.org/repos/asf/ignite/repo
Commit: http://git-wip-us.apache.org/repos/asf/ignite/commit/c756ff89
Tree: http://git-wip-us.apache.org/repos/asf/ignite/tree/c756ff89
Diff: http://git-wip-us.apache.org/repos/asf/ignite/diff/c756ff89
Branch: refs/heads/master
Commit: c756ff89b02892b044160fb6dc0f2b6dfa2752a4
Parents: 21cd24c
Author: Denis Magda <dm...@gridgain.com>
Authored: Fri Jun 22 14:27:01 2018 -0700
Committer: Denis Magda <dm...@gridgain.com>
Committed: Fri Jun 22 14:27:01 2018 -0700
----------------------------------------------------------------------
.../config/example-kube-persistence.xml | 56 ++++++++++++++++++++
1 file changed, 56 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/ignite/blob/c756ff89/modules/kubernetes/config/example-kube-persistence.xml
----------------------------------------------------------------------
diff --git a/modules/kubernetes/config/example-kube-persistence.xml b/modules/kubernetes/config/example-kube-persistence.xml
new file mode 100644
index 0000000..bd15327
--- /dev/null
+++ b/modules/kubernetes/config/example-kube-persistence.xml
@@ -0,0 +1,56 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+
+<!--
+ Configuration example with Kubernetes IP finder enabled.
+-->
+<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">
+
+ <!-- Enabling Apache Ignite Persistent Store. -->
+ <property name="dataStorageConfiguration">
+ <bean class="org.apache.ignite.configuration.DataStorageConfiguration">
+ <property name="defaultDataRegionConfiguration">
+ <bean class="org.apache.ignite.configuration.DataRegionConfiguration">
+ <property name="persistenceEnabled" value="true"/>
+ </bean>
+ </property>
+ </bean>
+ </property>
+
+ <!-- Explicitly configure TCP discovery SPI to provide list of initial nodes. -->
+ <property name="discoverySpi">
+ <bean class="org.apache.ignite.spi.discovery.tcp.TcpDiscoverySpi">
+ <property name="ipFinder">
+ <!--
+ Enables Kubernetes IP finder and overriding the namespace value.
+ -->
+ <bean class="org.apache.ignite.spi.discovery.tcp.ipfinder.kubernetes.TcpDiscoveryKubernetesIpFinder">
+ <property name="namespace" value="ignite"/>
+ </bean>
+ </property>
+ </bean>
+ </property>
+ </bean>
+</beans>
\ No newline at end of file