question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support k8s helm secrets creation for logstash helm chart

See original GitHub issue

Describe 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:closed
  • Created 3 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
kksudocommented, Jul 2, 2020

Yes, it’s easy. I’ll be doing PR soon.

0reactions
jmlrtcommented, Sep 16, 2020

Done in #712

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found