-
Notifications
You must be signed in to change notification settings - Fork 245
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OPSEXP-2950 Prepare to update to Elasticsearch 8 by switching to the bitnami/elasticsearch chart #1267
base: master
Are you sure you want to change the base?
Conversation
helm/alfresco-content-services/templates/config-infrastructure.yaml
Outdated
Show resolved
Hide resolved
helm/alfresco-content-services/templates/config-infrastructure.yaml
Outdated
Show resolved
Hide resolved
configuration: | ||
server: | ||
basePath: "/kibana" | ||
publicBaseUrl: "http://localhost/kibana" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure what this value does but it looks suspicious. Did you check in integration pipeline kibana works ok?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
in global.known_urls we assume default deployment target localhost, so at least is consistent
just add more inline docs to make it easy to understand that it must be set for other types of deployment
replicaCount: 0 | ||
ingest: | ||
replicaCount: 0 | ||
kibana: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this kibana supports any authentication?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK for me with Kibana disabled by default and a small doc on how to enable and secure it leveraging mechanisms provided by the bitnami chart
{{- if .enabled}} | ||
{{- $aasCtx := dict "Values" . "Chart" $.Chart "Release" $.Release }} | ||
{{- $aasServiceName := include "alfresco-audit-storage.fullname" $aasCtx }} | ||
{{- $aasServicePort := .service.port | toString }} | ||
{{- printf "http://%s:%s" $aasServiceName $aasServicePort }} | ||
{{- end }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cosmetics
{{- if .enabled}} | |
{{- $aasCtx := dict "Values" . "Chart" $.Chart "Release" $.Release }} | |
{{- $aasServiceName := include "alfresco-audit-storage.fullname" $aasCtx }} | |
{{- $aasServicePort := .service.port | toString }} | |
{{- printf "http://%s:%s" $aasServiceName $aasServicePort }} | |
{{- end }} | |
{{- if .enabled }} | |
{{- $aasCtx := dict "Values" . "Chart" $.Chart "Release" $.Release }} | |
{{- $aasServiceName := include "alfresco-audit-storage.fullname" $aasCtx }} | |
{{- $aasServicePort := .service.port | toString }} | |
{{- printf "http://%s:%s" $aasServiceName $aasServicePort }} | |
{{- end }} |
|
||
{{/* | ||
Compute the url for elasticsearch for audit | ||
|
||
Usage: include "alfresco-content-services.audit.elasticsearchUrl" $ | ||
|
||
*/}} | ||
{{- define "alfresco-content-services.audit.elasticsearchUrl" -}} | ||
{{- $elasticsearch_audit_url := "" }} | ||
{{- if .Values.global.auditIndex.url }} | ||
{{- $elasticsearch_audit_url = .Values.global.auditIndex.url }} | ||
{{- else }} | ||
{{- with (index .Values "elasticsearch") }} | ||
{{- if .enabled }} | ||
{{- $auditEsHost := printf "%s-%s" $.Release.Name (($.Values.global.elasticsearch).service.name | default "elasticsearch") }} | ||
{{- $auditEsPort := ($.Values.global.elasticsearch).service.ports.restApi | default 9200 }} | ||
{{- $auditEsProto := .protocol | default "http" }} | ||
{{- $elasticsearch_audit_url = coalesce $.Values.global.auditIndex.url (printf "%s://%s:%v" $auditEsProto $auditEsHost $auditEsPort) }} | ||
{{- else if index $.Values "alfresco-audit-storage" "enabled" }} | ||
{{- fail "Chart is configured to use Alfresco Audit Storage but no index backend has been provided. Set one using either global.auditIndex.url or elasticsearch.enabled" }} | ||
{{- end }} | ||
{{- end }} | ||
{{- end }} | ||
{{- print $elasticsearch_audit_url }} | ||
{{- end -}} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Be blessed for that 🙏 !
Ref: OPSEXP-2950