hazelcast helm template, how do i pass my hazelcast.xml?
Following the README example
you need to uncomment the configurationFiles on values and put paste your own xml file conten:
configurationFiles:hazelcast.xml: |- <?xml version="1.0" encoding="UTF-8"?> <hazelcast xsi:schemaLocation="http://www.hazelcast.com/schema/config hazelcast-config-3.10.xsd" xmlns="http://www.hazelcast.com/schema/config" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <properties> <property name="hazelcast.discovery.enabled">true</property> </properties> <network> <join> <multicast enabled="false"/> <tcp-ip enabled="false" /> <discovery-strategies> <discovery-strategy enabled="true" class="com.hazelcast.kubernetes.HazelcastKubernetesDiscoveryStrategy"> </discovery-strategy> </discovery-strategies> </join> </network> <management-center enabled="${hazelcast.mancenter.enabled}">${hazelcast.mancenter.url}</management-center> <!-- Custom Configuration Placeholder --> </hazelcast>
but if you don't want to past the content insede the values.yaml
you can use. File to get the content of a file in the same path
configurationFiles: hazelcast.xml: |- {{ .Files.Get "hazelcast.xml" | indent 4}}
Remember you can copy the original values.yaml
from the chart and use -f
to specify you own values instead of using --set
every time.