fix(promcord): add service (#808)

This commit is contained in:
Chip Wolf ‮ 2021-04-20 22:31:23 +01:00 committed by GitHub
parent 85dd0703b9
commit 5ee354cea1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 39 additions and 31 deletions

View File

@ -2,7 +2,7 @@ apiVersion: v2
appVersion: latest appVersion: latest
description: Discord bot that provides metrics from a Discord server description: Discord bot that provides metrics from a Discord server
name: promcord name: promcord
version: 1.0.0 version: 1.0.1
kubeVersion: ">=1.16.0-0" kubeVersion: ">=1.16.0-0"
keywords: keywords:
- promcord - promcord

View File

@ -83,7 +83,10 @@ N/A
| prometheus.podMonitor.additionalLabels | object | `{}` | | | prometheus.podMonitor.additionalLabels | object | `{}` | |
| prometheus.podMonitor.enabled | bool | `false` | | | prometheus.podMonitor.enabled | bool | `false` | |
| prometheus.podMonitor.interval | string | `"1m"` | | | prometheus.podMonitor.interval | string | `"1m"` | |
| prometheus.podMonitor.scrapeTimeout | string | `"1m30s"` | | | prometheus.podMonitor.scrapeTimeout | string | `"30s"` | |
| prometheus.serviceMonitor.additionalLabels | object | `{}` | |
| prometheus.serviceMonitor.enabled | bool | `false` | |
| prometheus.serviceMonitor.interval | string | `"1m"` | |
| strategy.type | string | `"Recreate"` | | | strategy.type | string | `"Recreate"` | |
## Changelog ## Changelog
@ -106,7 +109,22 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
- N/A - N/A
### [1.0.1]
#### Added
- Service
#### Changed
- N/A
#### Removed
- N/A
[1.0.0]: #1.0.0 [1.0.0]: #1.0.0
[1.0.1]: #1.0.1
## Support ## Support

View File

@ -23,5 +23,20 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
- N/A - N/A
### [1.0.1]
#### Added
- Service
#### Changed
- N/A
#### Removed
- N/A
[1.0.0]: #1.0.0 [1.0.0]: #1.0.0
[1.0.1]: #1.0.1
{{- end -}} {{- end -}}

View File

@ -13,7 +13,7 @@ spec:
matchLabels: matchLabels:
{{- include "common.labels.selectorLabels" . | nindent 6 }} {{- include "common.labels.selectorLabels" . | nindent 6 }}
podMetricsEndpoints: podMetricsEndpoints:
- port: metrics - port: http
{{- with .Values.prometheus.podMonitor.interval }} {{- with .Values.prometheus.podMonitor.interval }}
interval: {{ . }} interval: {{ . }}
{{- end }} {{- end }}

View File

@ -11,32 +11,7 @@ image:
tag: "latest" tag: "latest"
service: service:
enabled: false port:
additionalPorts:
- port: 8080
name: metrics
protocol: TCP
targetPort: 8080
## Probes configuration
probes:
liveness:
enabled: true
custom: true
spec:
tcpSocket:
port: 8080
readiness:
enabled: true
custom: true
spec:
tcpSocket:
port: 8080
startup:
enabled: true
custom: true
spec:
tcpSocket:
port: 8080 port: 8080
strategy: strategy:
@ -47,7 +22,7 @@ env:
# -- Discord bot token # -- Discord bot token
# DISCORD_TOKEN: # DISCORD_TOKEN:
# Enable a prometheus-operator podmonitor # Enable prometheus-operator monitors
prometheus: prometheus:
podMonitor: podMonitor:
enabled: false enabled: false