Support k8s helm secrets creation for logstash helm chart
See original GitHub issueDescribe the feature: For convenient use of k8s secrets should add helm chart for create secrets.
Describe a specific use case for the feature: Add secrets for using in k8s should be more convenient from the one logstash helm chart.
The helm chart for secret can looks like bellow
secret.yaml
{{- if .Values.logstashSecrets }}
{{- range .Values.logstashSecrets }}
---
apiVersion: v1
kind: Secret
metadata:
name: {{ template "logstash.fullname" $ }}-{{ .name }}
labels:
app: "{{ template "logstash.fullname" $ }}"
chart: "{{ $.Chart.Name }}"
heritage: {{ $.Release.Service | quote }}
release: {{ $.Release.Name | quote }}
{{- range $key, $value := $.Values.labels }}
{{ $key }}: {{ $value | quote }}
{{- end }}
data:
{{- range $key, $val := .value }}
{{ $key }}: {{ $val | toString | b64enc | quote }}
{{- end }}
type: Opaque
{{- end }}
{{- end }}
values.yaml
logstashSecrets:
- name: "env"
value:
logstash.conf: |
input {
exec {
command => "uptime"
interval => 30
}
}
output { stdout { } }
api_key: ui2CsdUadTiBasRJRkl9tvNnw
- name: "tls"
value:
ca.crt: "LS0tLS1CRUdJT0K"
cert.crt: "LS0tLS1CRUdJTiBlRJRklDQVRFLS0tLS0K"
cert.key: "LS0tLS1CRUdJTiBgUFJJVkFURSBLRVktLS0tLQo="
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (5 by maintainers)
Top Results From Across the Web
stable/logstash · master - helm-charts - GitLab
Parameter Description Default
replicaCount Number of replicas 1
podDisruptionBudget Pod disruption budget maxUnavailable: 1
updateStrategy Update strategy type: RollingUpdate
Read more >Helm Charts to deploy Logstash in Kubernetes - Bitnami
Deploying Bitnami applications as Helm Charts is the easiest way to get started with our applications on Kubernetes.
Read more >Helm Chart: oudsm: For deployment of Oracle Unified ...
This Helm chart provides for the deployment of replicated Oracle Unified Directory Services Manager instances on Kubernetes. Based on the configuration, ...
Read more >Deploy Kubernetes resources and packages using Amazon ...
This pattern uses Amazon Elastic Kubernetes Service (Amazon EKS) for the Kubernetes cluster. It uses Amazon Simple Storage Service (Amazon S3) as a...
Read more >Using kubernetes secrets in a configmap - Stack Overflow
I can't see a way to get logstash to read the password from an environment variable. How do people normally do this? I...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Yes, it’s easy. I’ll be doing PR soon.
Done in #712