mirror of
https://github.com/aramperes/ts-activity.git
synced 2025-09-08 05:48:31 -04:00
Add configs to Helm chart
This commit is contained in:
parent
976b8dc0a9
commit
71618fc8c3
4 changed files with 35 additions and 17 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -1 +1,2 @@
|
||||||
.envrc
|
.envrc
|
||||||
|
/values-dev.yaml
|
||||||
|
|
|
@ -5,4 +5,4 @@ description: Post TeamSpeak events to Discord
|
||||||
type: application
|
type: application
|
||||||
|
|
||||||
version: "0.0.0"
|
version: "0.0.0"
|
||||||
appVersion: "0.0.0"
|
appVersion: "v0.0.0"
|
||||||
|
|
|
@ -5,9 +5,7 @@ metadata:
|
||||||
labels:
|
labels:
|
||||||
{{- include "ts-activity.labels" . | nindent 4 }}
|
{{- include "ts-activity.labels" . | nindent 4 }}
|
||||||
spec:
|
spec:
|
||||||
{{- if not .Values.autoscaling.enabled }}
|
|
||||||
replicas: 1
|
replicas: 1
|
||||||
{{- end }}
|
|
||||||
selector:
|
selector:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
{{- include "ts-activity.selectorLabels" . | nindent 6 }}
|
{{- include "ts-activity.selectorLabels" . | nindent 6 }}
|
||||||
|
@ -31,20 +29,28 @@ spec:
|
||||||
- name: {{ .Chart.Name }}
|
- name: {{ .Chart.Name }}
|
||||||
securityContext:
|
securityContext:
|
||||||
{{- toYaml .Values.securityContext | nindent 12 }}
|
{{- toYaml .Values.securityContext | nindent 12 }}
|
||||||
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default "latest" }}"
|
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
|
||||||
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
||||||
ports:
|
env:
|
||||||
- name: http
|
- name: TS_DISCORD_USERNAME
|
||||||
containerPort: {{ .Values.service.port }}
|
value: "{{ .Values.config.discordUsername | default "Jeff" }}"
|
||||||
protocol: TCP
|
- name: TS_QUERY_ADDR
|
||||||
livenessProbe:
|
value: "{{ .Values.config.serverQueryAddr | required "must provide serverQueryAddr" }}"
|
||||||
httpGet:
|
- name: TS_QUERY_USER
|
||||||
path: /
|
valueFrom:
|
||||||
port: http
|
secretKeyRef:
|
||||||
readinessProbe:
|
key: username
|
||||||
httpGet:
|
name: "{{ .Values.config.serverQuerySecret | required "must provide serverQuerySecret" }}"
|
||||||
path: /
|
- name: TS_QUERY_PASS
|
||||||
port: http
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
key: password
|
||||||
|
name: "{{ .Values.config.serverQuerySecret | required "must provide serverQuerySecret" }}"
|
||||||
|
- name: TS_DISCORD_WEBHOOK
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
key: discord
|
||||||
|
name: "{{ .Values.config.webhookSecret | required "must provide webhookSecret" }}"
|
||||||
resources:
|
resources:
|
||||||
{{- toYaml .Values.resources | nindent 12 }}
|
{{- toYaml .Values.resources | nindent 12 }}
|
||||||
{{- with .Values.nodeSelector }}
|
{{- with .Values.nodeSelector }}
|
||||||
|
|
|
@ -5,9 +5,20 @@
|
||||||
image:
|
image:
|
||||||
repository: aramperes/ts-activity
|
repository: aramperes/ts-activity
|
||||||
pullPolicy: IfNotPresent
|
pullPolicy: IfNotPresent
|
||||||
# Overrides the image tag whose default is latest.
|
# Overrides the image tag whose default is the chart version.
|
||||||
tag: ""
|
tag: ""
|
||||||
|
|
||||||
|
config:
|
||||||
|
# Discord username displayed in webhook messages.
|
||||||
|
# Defaults to 'Jeff'
|
||||||
|
discordUsername: ""
|
||||||
|
# Address to plain ServerQuery. Usually <ts_host>:10011
|
||||||
|
serverQueryAddr: ""
|
||||||
|
# Secret containing 'username' and 'password' for ServerQuery.
|
||||||
|
serverQuerySecret: ""
|
||||||
|
# Secret containing 'discord' with the Webhook URL.
|
||||||
|
webhookSecret: ""
|
||||||
|
|
||||||
imagePullSecrets: []
|
imagePullSecrets: []
|
||||||
nameOverride: ""
|
nameOverride: ""
|
||||||
fullnameOverride: ""
|
fullnameOverride: ""
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue