From b7c8bc195d10ba902087ac995b07b05cc4a8ff0d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mustafa=20Ak=C4=B1n?= Date: Fri, 21 Jul 2023 11:14:58 +0300 Subject: [PATCH] Helm removed, a link added to Bitnami --- README.md | 3 +- charts/kubernetes-event-exporter/.helmignore | 23 ---- charts/kubernetes-event-exporter/Chart.yaml | 16 --- charts/kubernetes-event-exporter/README.md | 37 ------ .../templates/NOTES.txt | 22 ---- .../templates/_helpers.tpl | 73 ----------- .../templates/configmap.yaml | 10 -- .../templates/deployment.yaml | 87 ------------- .../templates/role.yaml | 11 -- .../templates/rolebinding.yaml | 17 --- .../templates/service.yaml | 14 --- .../templates/serviceaccount.yaml | 9 -- .../templates/servicemonitor.yaml | 47 ------- charts/kubernetes-event-exporter/values.yaml | 117 ------------------ 14 files changed, 2 insertions(+), 484 deletions(-) delete mode 100644 charts/kubernetes-event-exporter/.helmignore delete mode 100644 charts/kubernetes-event-exporter/Chart.yaml delete mode 100644 charts/kubernetes-event-exporter/README.md delete mode 100644 charts/kubernetes-event-exporter/templates/NOTES.txt delete mode 100644 charts/kubernetes-event-exporter/templates/_helpers.tpl delete mode 100644 charts/kubernetes-event-exporter/templates/configmap.yaml delete mode 100644 charts/kubernetes-event-exporter/templates/deployment.yaml delete mode 100644 charts/kubernetes-event-exporter/templates/role.yaml delete mode 100644 charts/kubernetes-event-exporter/templates/rolebinding.yaml delete mode 100644 charts/kubernetes-event-exporter/templates/service.yaml delete mode 100644 charts/kubernetes-event-exporter/templates/serviceaccount.yaml delete mode 100644 charts/kubernetes-event-exporter/templates/servicemonitor.yaml delete mode 100644 charts/kubernetes-event-exporter/values.yaml diff --git a/README.md b/README.md index 86df8358..89fc80b3 100644 --- a/README.md +++ b/README.md @@ -26,7 +26,8 @@ resources: ### Helm -See [Helm Guide](./charts/kubernetes-event-exporter/README.md). +Please use [Bitnami Chart](https://github.com/bitnami/charts/tree/main/bitnami/kubernetes-event-exporter/) which is +comprehensive. ## Configuration diff --git a/charts/kubernetes-event-exporter/.helmignore b/charts/kubernetes-event-exporter/.helmignore deleted file mode 100644 index 0e8a0eb3..00000000 --- a/charts/kubernetes-event-exporter/.helmignore +++ /dev/null @@ -1,23 +0,0 @@ -# Patterns to ignore when building packages. -# This supports shell glob matching, relative path matching, and -# negation (prefixed with !). Only one pattern per line. -.DS_Store -# Common VCS dirs -.git/ -.gitignore -.bzr/ -.bzrignore -.hg/ -.hgignore -.svn/ -# Common backup files -*.swp -*.bak -*.tmp -*.orig -*~ -# Various IDEs -.project -.idea/ -*.tmproj -.vscode/ diff --git a/charts/kubernetes-event-exporter/Chart.yaml b/charts/kubernetes-event-exporter/Chart.yaml deleted file mode 100644 index a8839d96..00000000 --- a/charts/kubernetes-event-exporter/Chart.yaml +++ /dev/null @@ -1,16 +0,0 @@ -apiVersion: v2 -name: kubernetes-event-exporter -description: Export Kubernetes events to multiple destinations with routing and filtering -type: application - -# This is the chart version. This version number should be incremented each time you make changes -# to the chart and its templates, including the app version. -# Versions are expected to follow Semantic Versioning (https://semver.org/) -version: 0.4.2 - -# This is the version number of the application being deployed. This version number should be -# incremented each time you make changes to the application. Versions are not expected to -# follow Semantic Versioning. They should reflect the version the application is using. -# It is recommended to use it with quotes. -appVersion: "1.16.0" -home: https://github.com/resmoio/kubernetes-event-exporter \ No newline at end of file diff --git a/charts/kubernetes-event-exporter/README.md b/charts/kubernetes-event-exporter/README.md deleted file mode 100644 index 34518b4d..00000000 --- a/charts/kubernetes-event-exporter/README.md +++ /dev/null @@ -1,37 +0,0 @@ -# kubernetes-event-exporter Helm Chart - -## Get Repository Info - -```shell -helm repo add resmoio https://resmoio.github.io/kubernetes-event-exporter -helm repo update -``` - -## Prepare the Deployment configuration [Optional] - -Create a helm values file. - -```yaml -# config.yaml ---- -config: | - logLevel: error - logFormat: json - route: - routes: - - match: - - receiver: "dump" - receivers: - - name: "dump" - stdout: {} -``` - -See [App Configuration](../../README.md) for reference. - -## Install Chart - -Install chart - -```bash -helm install kubernetes-event-exporter -f config.yaml resmoio/kubernetes-event-exporter -``` diff --git a/charts/kubernetes-event-exporter/templates/NOTES.txt b/charts/kubernetes-event-exporter/templates/NOTES.txt deleted file mode 100644 index 1043003e..00000000 --- a/charts/kubernetes-event-exporter/templates/NOTES.txt +++ /dev/null @@ -1,22 +0,0 @@ -1. Get the application URL by running these commands: -{{- if .Values.ingress.enabled }} -{{- range $host := .Values.ingress.hosts }} - {{- range .paths }} - http{{ if $.Values.ingress.tls }}s{{ end }}://{{ $host.host }}{{ .path }} - {{- end }} -{{- end }} -{{- else if contains "NodePort" .Values.service.type }} - export NODE_PORT=$(kubectl get --namespace {{ .Release.Namespace }} -o jsonpath="{.spec.ports[0].nodePort}" services {{ include "kubernetes-event-exporter.fullname" . }}) - export NODE_IP=$(kubectl get nodes --namespace {{ .Release.Namespace }} -o jsonpath="{.items[0].status.addresses[0].address}") - echo http://$NODE_IP:$NODE_PORT -{{- else if contains "LoadBalancer" .Values.service.type }} - NOTE: It may take a few minutes for the LoadBalancer IP to be available. - You can watch the status of by running 'kubectl get --namespace {{ .Release.Namespace }} svc -w {{ include "kubernetes-event-exporter.fullname" . }}' - export SERVICE_IP=$(kubectl get svc --namespace {{ .Release.Namespace }} {{ include "kubernetes-event-exporter.fullname" . }} --template "{{"{{ range (index .status.loadBalancer.ingress 0) }}{{.}}{{ end }}"}}") - echo http://$SERVICE_IP:{{ .Values.service.port }} -{{- else if contains "ClusterIP" .Values.service.type }} - export POD_NAME=$(kubectl get pods --namespace {{ .Release.Namespace }} -l "app.kubernetes.io/name={{ include "kubernetes-event-exporter.name" . }},app.kubernetes.io/instance={{ .Release.Name }}" -o jsonpath="{.items[0].metadata.name}") - export CONTAINER_PORT=$(kubectl get pod --namespace {{ .Release.Namespace }} $POD_NAME -o jsonpath="{.spec.containers[0].ports[0].containerPort}") - echo "Visit http://127.0.0.1:8080 to use your application" - kubectl --namespace {{ .Release.Namespace }} port-forward $POD_NAME 8080:$CONTAINER_PORT -{{- end }} \ No newline at end of file diff --git a/charts/kubernetes-event-exporter/templates/_helpers.tpl b/charts/kubernetes-event-exporter/templates/_helpers.tpl deleted file mode 100644 index 11745c72..00000000 --- a/charts/kubernetes-event-exporter/templates/_helpers.tpl +++ /dev/null @@ -1,73 +0,0 @@ -{{/* -Expand the name of the chart. -*/}} -{{- define "kubernetes-event-exporter.name" -}} -{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" }} -{{- end }} - -{{/* -Create a default fully qualified app name. -We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec). -If release name contains chart name it will be used as a full name. -*/}} -{{- define "kubernetes-event-exporter.fullname" -}} -{{- if .Values.fullnameOverride }} -{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" }} -{{- else }} -{{- $name := default .Chart.Name .Values.nameOverride }} -{{- if contains $name .Release.Name }} -{{- .Release.Name | trunc 63 | trimSuffix "-" }} -{{- else }} -{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" }} -{{- end }} -{{- end }} -{{- end }} - -{{/* -Create chart name and version as used by the chart label. -*/}} -{{- define "kubernetes-event-exporter.chart" -}} -{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }} -{{- end }} - -{{/* -Common labels -*/}} -{{- define "kubernetes-event-exporter.labels" -}} -helm.sh/chart: {{ include "kubernetes-event-exporter.chart" . }} -{{ include "kubernetes-event-exporter.selectorLabels" . }} -{{- if .Chart.AppVersion }} -app.kubernetes.io/version: {{ .Chart.AppVersion | quote }} -{{- end }} -app.kubernetes.io/managed-by: {{ .Release.Service }} -{{- end }} - -{{/* -Selector labels -*/}} -{{- define "kubernetes-event-exporter.selectorLabels" -}} -app.kubernetes.io/name: {{ include "kubernetes-event-exporter.name" . }} -app.kubernetes.io/instance: {{ .Release.Name }} -{{- end }} - -{{/* -Create the name of the service account to use -*/}} -{{- define "kubernetes-event-exporter.serviceAccountName" -}} -{{- if .Values.serviceAccount.create }} -{{- default (include "kubernetes-event-exporter.fullname" .) .Values.serviceAccount.name }} -{{- else }} -{{- default "default" .Values.serviceAccount.name }} -{{- end }} -{{- end }} - -{{/* -Allow the release namespace to be overridden for multi-namespace deployments in combined charts -*/}} -{{- define "kubernetes-event-exporter.namespace" -}} - {{- if .Values.namespaceOverride -}} - {{- .Values.namespaceOverride -}} - {{- else -}} - {{- .Release.Namespace -}} - {{- end -}} -{{- end -}} \ No newline at end of file diff --git a/charts/kubernetes-event-exporter/templates/configmap.yaml b/charts/kubernetes-event-exporter/templates/configmap.yaml deleted file mode 100644 index a4e2b1ba..00000000 --- a/charts/kubernetes-event-exporter/templates/configmap.yaml +++ /dev/null @@ -1,10 +0,0 @@ -apiVersion: v1 -kind: ConfigMap -metadata: - name: {{ include "kubernetes-event-exporter.fullname" . }}-cfg - namespace: {{ template "kubernetes-event-exporter.namespace" . }} - labels: - {{- include "kubernetes-event-exporter.labels" . | nindent 4 }} -data: - config.yaml: | -{{ .Values.config | indent 4 }} \ No newline at end of file diff --git a/charts/kubernetes-event-exporter/templates/deployment.yaml b/charts/kubernetes-event-exporter/templates/deployment.yaml deleted file mode 100644 index ba951062..00000000 --- a/charts/kubernetes-event-exporter/templates/deployment.yaml +++ /dev/null @@ -1,87 +0,0 @@ -apiVersion: apps/v1 -kind: Deployment -metadata: - {{- with .Values.deploymentAnnotations }} - annotations: - {{- toYaml . | nindent 4 }} - {{- end }} - name: {{ include "kubernetes-event-exporter.fullname" . }} - namespace: {{ include "kubernetes-event-exporter.namespace" . }} - labels: - {{- include "kubernetes-event-exporter.labels" . | nindent 4 }} - {{- with .Values.deploymentLabels }} - {{- toYaml . | nindent 4 }} - {{- end }} -spec: - replicas: {{ .Values.replicaCount }} - selector: - matchLabels: - {{- include "kubernetes-event-exporter.selectorLabels" . | nindent 6 }} - template: - metadata: - annotations: - checksum/config: {{ include (print $.Template.BasePath "/configmap.yaml") . | sha256sum }} - {{- with .Values.podAnnotations }} - {{- toYaml . | nindent 8 }} - {{- end }} - labels: - {{- include "kubernetes-event-exporter.selectorLabels" . | nindent 8 }} - spec: - {{- with .Values.global.imagePullSecrets }} - imagePullSecrets: - {{- toYaml . | nindent 8 }} - {{- end }} - serviceAccountName: {{ include "kubernetes-event-exporter.serviceAccountName" . }} - securityContext: - {{- toYaml .Values.podSecurityContext | nindent 8 }} - containers: - - name: {{ .Chart.Name }} - securityContext: - {{- toYaml .Values.securityContext | nindent 12 }} - image: "{{ .Values.global.imageRegistry | default .Values.image.registry }}/{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}" - imagePullPolicy: {{ .Values.image.pullPolicy }} - ports: - - name: http - containerPort: {{ .Values.service.port }} - protocol: TCP - livenessProbe: - httpGet: - path: /-/healthy - port: http - readinessProbe: - httpGet: - path: /-/ready - port: http - args: - - -conf=/data/config.yaml - volumeMounts: - - mountPath: /data - name: cfg - {{- with .Values.extraVolumeMounts }} - {{- toYaml . | nindent 12 }} - {{- end }} - resources: - {{- toYaml .Values.resources | nindent 12 }} - {{- with .Values.nodeSelector }} - nodeSelector: - {{- toYaml . | nindent 8 }} - {{- end }} - {{- with .Values.affinity }} - affinity: - {{- toYaml . | nindent 8 }} - {{- end }} - {{- with .Values.tolerations }} - tolerations: - {{- toYaml . | nindent 8 }} - {{- end }} - {{- with .Values.topologySpreadConstraints }} - topologySpreadConstraints: - {{- toYaml . | nindent 8 }} - {{- end }} - volumes: - - name: cfg - configMap: - name: {{ include "kubernetes-event-exporter.fullname" . }}-cfg - {{- with .Values.extraVolumes }} - {{- toYaml . | nindent 8 }} - {{- end }} \ No newline at end of file diff --git a/charts/kubernetes-event-exporter/templates/role.yaml b/charts/kubernetes-event-exporter/templates/role.yaml deleted file mode 100644 index 8b113771..00000000 --- a/charts/kubernetes-event-exporter/templates/role.yaml +++ /dev/null @@ -1,11 +0,0 @@ -{{- if .Values.rbac.create }} ---- -apiVersion: rbac.authorization.k8s.io/v1 -kind: {{ .Values.rbac.namespaced | ternary "Role" "ClusterRole" }} -metadata: - name: {{ include "kubernetes-event-exporter.fullname" . }} - labels: - {{- include "kubernetes-event-exporter.labels" . | nindent 4 }} -rules: -{{ toYaml .Values.rbac.rules }} -{{- end -}} \ No newline at end of file diff --git a/charts/kubernetes-event-exporter/templates/rolebinding.yaml b/charts/kubernetes-event-exporter/templates/rolebinding.yaml deleted file mode 100644 index b609de5d..00000000 --- a/charts/kubernetes-event-exporter/templates/rolebinding.yaml +++ /dev/null @@ -1,17 +0,0 @@ -{{- if .Values.rbac.create }} ---- -apiVersion: rbac.authorization.k8s.io/v1 -kind: {{ .Values.rbac.namespaced | ternary "RoleBinding" "ClusterRoleBinding" }} -metadata: - name: {{ include "kubernetes-event-exporter.fullname" . }} - labels: - {{- include "kubernetes-event-exporter.labels" . | nindent 4 }} -roleRef: - apiGroup: rbac.authorization.k8s.io - kind: ClusterRole - name: {{ include "kubernetes-event-exporter.fullname" . }} -subjects: - - kind: ServiceAccount - namespace: {{ include "kubernetes-event-exporter.namespace" . }} - name: {{ include "kubernetes-event-exporter.fullname" . }} -{{- end }} \ No newline at end of file diff --git a/charts/kubernetes-event-exporter/templates/service.yaml b/charts/kubernetes-event-exporter/templates/service.yaml deleted file mode 100644 index ea31e8fc..00000000 --- a/charts/kubernetes-event-exporter/templates/service.yaml +++ /dev/null @@ -1,14 +0,0 @@ ---- -kind: Service -apiVersion: v1 -metadata: - name: {{ include "kubernetes-event-exporter.fullname" . }} - namespace: {{ include "kubernetes-event-exporter.namespace" . }} -spec: - type: {{ .Values.service.type }} - ports: - - name: http - port: {{ .Values.service.port }} - protocol: TCP - selector: - {{- include "kubernetes-event-exporter.selectorLabels" . | indent 4 }} \ No newline at end of file diff --git a/charts/kubernetes-event-exporter/templates/serviceaccount.yaml b/charts/kubernetes-event-exporter/templates/serviceaccount.yaml deleted file mode 100644 index 56aeed8c..00000000 --- a/charts/kubernetes-event-exporter/templates/serviceaccount.yaml +++ /dev/null @@ -1,9 +0,0 @@ -{{- if .Values.serviceAccount.create -}} -apiVersion: v1 -kind: ServiceAccount -metadata: - name: {{ include "kubernetes-event-exporter.serviceAccountName" . }} - namespace: {{ include "kubernetes-event-exporter.namespace" . }} - labels: - {{- include "kubernetes-event-exporter.labels" . | nindent 4 }} -{{- end }} \ No newline at end of file diff --git a/charts/kubernetes-event-exporter/templates/servicemonitor.yaml b/charts/kubernetes-event-exporter/templates/servicemonitor.yaml deleted file mode 100644 index 25f96da0..00000000 --- a/charts/kubernetes-event-exporter/templates/servicemonitor.yaml +++ /dev/null @@ -1,47 +0,0 @@ -{{- if .Values.serviceMonitor.enabled }} -apiVersion: monitoring.coreos.com/v1 -kind: ServiceMonitor -metadata: - name: {{ template "kubernetes-event-exporter.fullname" . }} - {{- if .Values.serviceMonitor.namespace }} - namespace: {{ . }} - {{- else }} - namespace: {{ include "kubernetes-event-exporter.namespace" . }} - {{- end }} - labels: - {{- include "kubernetes-event-exporter.labels" . | nindent 4 }} -spec: - endpoints: - - port: metrics - {{- if .Values.serviceMonitor.interval }} - interval: {{ .Values.serviceMonitor.interval }} - {{- end }} - {{- if .Values.serviceMonitor.scheme }} - scheme: {{ .Values.serviceMonitor.scheme }} - {{- end }} - {{- if .Values.serviceMonitor.bearerTokenFile }} - bearerTokenFile: {{ .Values.serviceMonitor.bearerTokenFile }} - {{- end }} - {{- if .Values.serviceMonitor.tlsConfig }} - tlsConfig: {{ toYaml .Values.serviceMonitor.tlsConfig | nindent 6 }} - {{- end }} - {{- if .Values.serviceMonitor.scrapeTimeout }} - scrapeTimeout: {{ .Values.serviceMonitor.scrapeTimeout }} - {{- end }} - path: /metrics - honorLabels: {{ .Values.serviceMonitor.honorLabels }} - {{- if .Values.serviceMonitor.metricRelabelings }} - metricRelabelings: - {{- tpl (toYaml .Values.serviceMonitor.metricRelabelings | nindent 4) . }} - {{- end }} - {{- if .Values.serviceMonitor.relabelings }} - relabelings: - {{ toYaml .Values.serviceMonitor.relabelings | nindent 4 }} - {{- end }} - namespaceSelector: - matchNames: - - {{ template "kubernetes-event-exporter.namespace" . }} - selector: - matchLabels: - {{- include "kubernetes-event-exporter.selectorLabels" . | nindent 6 }} -{{- end -}} \ No newline at end of file diff --git a/charts/kubernetes-event-exporter/values.yaml b/charts/kubernetes-event-exporter/values.yaml deleted file mode 100644 index 24c5c9ab..00000000 --- a/charts/kubernetes-event-exporter/values.yaml +++ /dev/null @@ -1,117 +0,0 @@ -# Default values for event-exporter. -# This is a YAML-formatted file. -# Declare variables to be passed into your templates. - -replicaCount: 1 - -image: - repository: ghcr.io/resmoio/kubernetes-event-exporter - pullPolicy: IfNotPresent - # Overrides the image tag whose default is the chart appVersion. - tag: latest - -imagePullSecrets: [] -nameOverride: "" -fullnameOverride: "" - -serviceAccount: - # Specifies whether a service account should be created - create: true - # Annotations to add to the service account - annotations: {} - # The name of the service account to use. - # If not set and create is true, a name is generated using the fullname template - name: "" - -podAnnotations: - prometheus.io/scrape: 'true' - prometheus.io/port: '2112' - prometheus.io/path: '/metrics' - -podSecurityContext: {} -# fsGroup: 2000 - -securityContext: {} - # capabilities: - # drop: - # - ALL - # readOnlyRootFilesystem: true - # runAsNonRoot: true -# runAsUser: 1000 - -service: - type: ClusterIP - port: 2112 - -ingress: - enabled: false - className: "" - annotations: {} - # kubernetes.io/ingress.class: nginx - # kubernetes.io/tls-acme: "true" - hosts: - - host: chart-example.local - paths: - - path: / - pathType: ImplementationSpecific - tls: [] - # - secretName: chart-example-tls - # hosts: - # - chart-example.local - -## Override the deployment namespace -namespaceOverride: "monitoring" - -rbac: - # If true, create & use RBAC resources - create: true - namespaced: false - -resources: {} - # We usually recommend not to specify default resources and to leave this as a conscious - # choice for the user. This also increases chances charts run on environments with little - # resources, such as Minikube. If you do want to specify resources, uncomment the following - # lines, adjust them as necessary, and remove the curly braces after 'resources:'. - # limits: - # cpu: 100m - # memory: 128Mi - # requests: - # cpu: 100m -# memory: 128Mi - -nodeSelector: {} - -tolerations: [] - -affinity: {} - -serviceMonitor: - # -- Enable this if you're using https://github.com/coreos/prometheus-operator - enabled: false - # -- Namespace to deploy the ServiceMonitor - namespace: "" - - # -- Fallback to the prometheus default unless specified - interval: 30s - - # -- Add custom labels to the ServiceMonitor resource - additionalLabels: {} - # prometheus: kube-prometheus - - honorLabels: false - - # -- Path to scrape metrics - path: /metrics - # -- Timeout for scrape metrics request - scrapeTimeout: 10s - -config: | - logLevel: error - logFormat: json - route: - routes: - - match: - - receiver: "dump" - receivers: - - name: "dump" - stdout: {} \ No newline at end of file