charts/hertzbeat/templates/collector/configmap.yaml (42 lines of code) (raw):

# 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. apiVersion: v1 kind: ConfigMap metadata: name: "{{ include "hertzbeat.collector" . }}" labels: {{- include "hertzbeat.labels" . | nindent 4 }} data: IDENTITY: "" MANAGER_HOST: "{{ include "hertzbeat.manager.host" . }}" MANAGER_PORT: "1158" application.yml: |+ server: port: 1159 spring: application: name: ${HOSTNAME:@hertzbeat-collector@}${PID} profiles: active: cluster jackson: default-property-inclusion: ALWAYS # need to disable spring boot mongodb auto config, or default mongodb connection tried and failed... autoconfigure: exclude: org.springframework.boot.autoconfigure.mongo.MongoAutoConfiguration, org.springframework.boot.autoconfigure.data.mongo.MongoDataAutoConfiguration --- spring: config: activate: on-profile: cluster collector: info: version: ${COLLECTOR_VERSION:1.7.0} ip: ${COLLECTOR_IP:} dispatch: entrance: netty: enabled: true identity: ${IDENTITY:} mode: ${MODE:public} manager-host: ${MANAGER_HOST:} manager-port: ${MANAGER_PORT:1158} common: queue: type: netty