diff --git a/roles/ks-core/config/templates/kubesphere-config.yaml.j2 b/roles/ks-core/config/templates/kubesphere-config.yaml.j2 index 8951ebc96..7f6bbde86 100644 --- a/roles/ks-core/config/templates/kubesphere-config.yaml.j2 +++ b/roles/ks-core/config/templates/kubesphere-config.yaml.j2 @@ -157,7 +157,7 @@ data: {% if logging.enabled is defined and logging.enabled == true %} logging: {% if common.es.externalElasticsearchUrl is defined and common.es.externalElasticsearchPort is defined and common.es.externalElasticsearchUrl != "" and common.es.externalElasticsearchPort != "" %} - host: {{ common.es.externalElasticsearchProtocol | default(http) }}://{{ common.es.externalElasticsearchUrl }}:{{ common.es.externalElasticsearchPort }} + host: {{ common.es.externalElasticsearchProtocol | default('http') }}://{{ common.es.externalElasticsearchUrl }}:{{ common.es.externalElasticsearchPort }} {% else %} host: http://elasticsearch-logging-data.kubesphere-logging-system.svc:9200 {% endif %} @@ -175,7 +175,7 @@ data: {% if events.enabled is defined and events.enabled == true %} events: {% if common.es.externalElasticsearchUrl is defined and common.es.externalElasticsearchPort is defined and common.es.externalElasticsearchUrl != "" and common.es.externalElasticsearchPort != "" %} - host: {{ common.es.externalElasticsearchProtocol | default(http) }}://{{ common.es.externalElasticsearchUrl }}:{{ common.es.externalElasticsearchPort }} + host: {{ common.es.externalElasticsearchProtocol | default('http') }}://{{ common.es.externalElasticsearchUrl }}:{{ common.es.externalElasticsearchPort }} {% else %} host: http://elasticsearch-logging-data.kubesphere-logging-system.svc:9200 {% endif %} @@ -191,7 +191,7 @@ data: enable: true webhookURL: https://kube-auditing-webhook-svc.kubesphere-logging-system.svc:6443/audit/webhook/event {% if common.es.externalElasticsearchUrl is defined and common.es.externalElasticsearchPort is defined and common.es.externalElasticsearchUrl != "" and common.es.externalElasticsearchPort != "" %} - host: {{ common.es.externalElasticsearchProtocol | default(http) }}://{{ common.es.externalElasticsearchUrl }}:{{ common.es.externalElasticsearchPort }} + host: {{ common.es.externalElasticsearchProtocol | default('http') }}://{{ common.es.externalElasticsearchUrl }}:{{ common.es.externalElasticsearchPort }} {% else %} host: http://elasticsearch-logging-data.kubesphere-logging-system.svc:9200 {% endif %}