blob: ffd8c329154bf41e4c21d622e4d003ebbffe77e7 [file] [log] [blame]
# Licensed to 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. Apache Software Foundation (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.
apiVersion: v1
kind: ConfigMap
metadata:
name: {{ .Name }}-config
namespace: {{ .Namespace }}
data:
elasticsearch.yml: |
network.host: 0.0.0.0
{{ if .Spec.Security.User.SecretName }}
xpack.security.enabled: true
xpack.security.transport.ssl.enabled: true
xpack.security.transport.ssl.verification_mode: certificate
xpack.security.transport.ssl.keystore.path: storage.p12
xpack.security.transport.ssl.keystore.password: skywalking
xpack.security.transport.ssl.truststore.path: storage.p12
xpack.security.transport.ssl.truststore.password: skywalking
{{end}}
{{ if .Spec.Security.TLS }}
xpack.security.http.ssl.enabled: true
xpack.security.http.ssl.verification_mode: certificate
xpack.security.http.ssl.keystore.path: storage.p12
xpack.security.http.ssl.keystore.password: skywalking
xpack.security.http.ssl.truststore.path: storage.p12
xpack.security.http.ssl.truststore.password: skywalking
{{end}}