mirror of
https://github.com/bitnami/charts.git
synced 2026-03-02 16:17:47 +08:00
[bitnami/kibana] add serviceaccout (#7211)
This commit is contained in:
committed by
GitHub
parent
461bd555ab
commit
5690444a39
@@ -1,6 +1,6 @@
|
||||
dependencies:
|
||||
- name: common
|
||||
repository: https://charts.bitnami.com/bitnami
|
||||
version: 1.7.1
|
||||
digest: sha256:d05549cd2eb5b99a49655221b8efd09927cc48daca3fa9f19af0257a11e5260f
|
||||
generated: "2021-08-03T16:43:05.222833084Z"
|
||||
version: 1.8.0
|
||||
digest: sha256:3e342a25057f87853e52d83e1d14e6d8727c15fd85aaae22e7594489cc129f15
|
||||
generated: "2021-08-12T17:47:13.515981663+02:00"
|
||||
|
||||
@@ -25,4 +25,4 @@ name: kibana
|
||||
sources:
|
||||
- https://github.com/bitnami/bitnami-docker-kibana
|
||||
- https://www.elastic.co/products/kibana
|
||||
version: 8.1.13
|
||||
version: 8.2.0
|
||||
|
||||
@@ -152,4 +152,15 @@ basePath URL in use by the APIs.
|
||||
{{- if (.Values.configuration.server.rewriteBasePath) }}
|
||||
{{- .Values.configuration.server.basePath -}}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
|
||||
{{/*
|
||||
Create the name of the service account to use
|
||||
*/}}
|
||||
{{- define "kibana.serviceAccountName" -}}
|
||||
{{- if .Values.serviceAccount.create -}}
|
||||
{{ default (include "common.names.fullname" .) .Values.serviceAccount.name }}
|
||||
{{- else -}}
|
||||
{{ default "default" .Values.serviceAccount.name }}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
|
||||
@@ -73,6 +73,7 @@ spec:
|
||||
securityContext:
|
||||
runAsUser: {{ .Values.securityContext.runAsUser }}
|
||||
{{- end }}
|
||||
serviceAccountName: {{ include "kibana.serviceAccountName" . }}
|
||||
env:
|
||||
- name: KIBANA_PORT_NUMBER
|
||||
value: {{ .Values.containerPort | quote }}
|
||||
|
||||
20
bitnami/kibana/templates/serviceaccount.yaml
Normal file
20
bitnami/kibana/templates/serviceaccount.yaml
Normal file
@@ -0,0 +1,20 @@
|
||||
{{- if .Values.serviceAccount.create }}
|
||||
apiVersion: v1
|
||||
kind: ServiceAccount
|
||||
metadata:
|
||||
name: {{ template "kibana.serviceAccountName" . }}
|
||||
namespace: {{ .Release.Namespace | quote }}
|
||||
labels: {{- include "common.labels.standard" . | nindent 4 }}
|
||||
{{- if .Values.commonLabels }}
|
||||
{{- include "common.tplvalues.render" ( dict "value" .Values.commonLabels "context" $ ) | nindent 4 }}
|
||||
{{- end }}
|
||||
{{- if or .Values.commonAnnotations .Values.serviceAccount.annotations }}
|
||||
annotations:
|
||||
{{- if or .Values.commonAnnotations }}
|
||||
{{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }}
|
||||
{{- end }}
|
||||
{{- if .Values.serviceAccount.annotations }}
|
||||
{{- include "common.tplvalues.render" ( dict "value" .Values.serviceAccount.annotations "context" $ ) | nindent 4 }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
@@ -321,6 +321,15 @@ ingress:
|
||||
## certificate:
|
||||
##
|
||||
secrets: []
|
||||
|
||||
## @param serviceAccount.create Enable creation of ServiceAccount for Kibana
|
||||
## @param serviceAccount.name Name of serviceAccount
|
||||
## @param serviceAccount.annotations Additional custom annotations for the ServiceAccount
|
||||
serviceAccount:
|
||||
create: true
|
||||
name: ""
|
||||
annotations: {}
|
||||
|
||||
## @param containerPort Port to expose at container level
|
||||
##
|
||||
containerPort: 5601
|
||||
|
||||
Reference in New Issue
Block a user