Skip to content
This repository has been archived by the owner on Feb 22, 2022. It is now read-only.

Add chart elasticsearch-exporter #2525

Merged
merged 16 commits into from
Feb 2, 2018
Merged

Add chart elasticsearch-exporter #2525

merged 16 commits into from
Feb 2, 2018

Conversation

svenmueller
Copy link
Collaborator

Add helm chart for managing Prometheus Elasticsearch-Exporter instances (https://github.com/justwatchcom/elasticsearch_exporter).

@k8s-ci-robot k8s-ci-robot added needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels Oct 19, 2017
@svenmueller
Copy link
Collaborator Author

can someone please review this PR?

@vglafirov
Copy link

vglafirov commented Dec 13, 2017

Looking forward for this PR to be merged

@svenmueller
Copy link
Collaborator Author

/assign @mattfarina

any idea how this review process can be continued?

Copy link
Member

@unguiculus unguiculus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR. Please make sure you read our review guidelines. https://github.com/unguiculus/charts/blob/master/REVIEW_GUIDELINES.md

- elasticsearch
- monitoring
maintainers:
- name: Sven Mueller
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use Github username and add appVersion.


## Prerequisites

- Kubernetes 1.5+ with Beta APIs enabled
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1.8+

We officially support the current and previous minor version of Kubernetes.

{{/*
Expand the name of the chart.
*/}}
{{- define "name" -}}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use namespaced templates. Creating a chart with helm create would give you a good basis with current best practices applied.

name: {{ template "fullname" . }}-cert
labels:
chart: "{{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}"
app: {{ template "fullname" . }}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shoudl be app: {{ template "name" . }} on all resources.

app: {{ template "fullname" . }}
release: "{{ .Release.Name }}"
heritage: "{{ .Release.Service }}"
component: elasticsearch-exporter
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You don't have multiple components. I'd remove this label.

@@ -0,0 +1,95 @@
apiVersion: extensions/v1beta1
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

apps/v1beta2

ports:
- name: http-service
port: {{ .Values.service.externalPort }}
targetPort: {{ .Values.service.externalPort }}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not a good idea. You'd break the chart if you change the external port.

@unguiculus unguiculus self-assigned this Jan 15, 2018
@svenmueller
Copy link
Collaborator Author

Thx for the feedback. I will apply the requested changes ASAP.

@svenmueller
Copy link
Collaborator Author

@unguiculus Here we go. The requested changes are done. Thx again for reviewing 👍

@svenmueller
Copy link
Collaborator Author

/assign @mattfarina

Copy link
Member

@unguiculus unguiculus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please make list indentation consistent. I'd suggest you always indent two spaces.

ports:
- name: http-service
port: {{ .Values.service.externalPort }}
targetPort: {{ .Values.service.internalPort }}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove service.internalPort. It doesn't make sense to have it configurable. The container port is hard-coded anyways. Just reference the named port (http). You can the rename service.externalPort to just service.port.

@svenmueller
Copy link
Collaborator Author

@unguiculus thx for the the helpful feedback 👍 i commited the requested changes.

@svenmueller
Copy link
Collaborator Author

/assign @lachie83

@svenmueller
Copy link
Collaborator Author

@unguiculus can you please have another look?

tag: 1.0.2
pullPolicy: IfNotPresent

resources:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Defaults for resources should be commented out.

resources: {}
  # requests:
  #   cpu: 100m
  #   memory: 128Mi
  # limits:
  #   cpu: 100m
  #   memory: 128Mi

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@unguiculus not sure if i can follow you here. if i comment the values out as requested by you, then there are no default values defined anymore. can you please explain?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thx for the clarification 👍

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I removed the default resources as suggested in the review guide lines.

appVersion: 1.0.2
sources:
- https://github.com/justwatchcom/elasticsearch_exporter
keywords:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indent list

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

@unguiculus
Copy link
Member

Looks good now. I'd suggest you move it to stable before we merge it.

@svenmueller
Copy link
Collaborator Author

@unguiculus Thx again for the review. I applied the latest changes (no default values for resources + moved helm chart to stable folder)

@mattfarina
Copy link
Contributor

/ok-to-test

@k8s-ci-robot k8s-ci-robot removed the needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. label Jan 29, 2018
@svenmueller
Copy link
Collaborator Author

@mattfarina who can merge this PR?

@unguiculus unguiculus changed the title Add chart elasticsearch-exporter to incubator Add chart elasticsearch-exporter Feb 2, 2018
@unguiculus
Copy link
Member

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Feb 2, 2018
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: svenmueller, unguiculus

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these OWNERS Files:

You can indicate your approval by writing /approve in a comment
You can cancel your approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Feb 2, 2018
@k8s-ci-robot k8s-ci-robot merged commit 1591502 into helm:master Feb 2, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm Indicates that a PR is ready to be merged. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants