Skip to content

Commit

Permalink
added config map based off the wiki
Browse files Browse the repository at this point in the history
  • Loading branch information
hunterlong committed Feb 1, 2021
1 parent bce4fd0 commit cb24a81
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 14 deletions.
5 changes: 0 additions & 5 deletions Makefile

This file was deleted.

2 changes: 1 addition & 1 deletion charts/statping/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v1
appVersion: "0.90.74"
version: 0.0.2
version: 0.0.3
icon: https://statping.github.io/charts/statping/assets/images/icon.png
name: statping
description: Statping for Kubernetes
Expand Down
9 changes: 9 additions & 0 deletions charts/statping/templates/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,12 @@ metadata:
data:
PORT: {{ .Values.service.port | quote }}
DB_CONN: {{ .Values.database.connection | quote }}
DB_HOST: {{ .Values.database.host | quote }}
DB_PORT: {{ .Values.database.port | quote }}
DB_USER: {{ .Values.database.username | quote }}
DB_PASS: {{ .Values.database.password | quote }}
DB_DATABASE: {{ .Values.database.database | quote }}
POSTGRES_SSLMODE: {{ .Values.database.sslMode | quote }}
READ_ONLY: {{ .Values.database.readOnly | quote }}
DISABLE_COLORS: {{ .Values.disableColors | quote }}
DEBUG: {{ .Values.debugMode | quote }}
4 changes: 0 additions & 4 deletions charts/statping/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,6 @@ spec:
livenessProbe:
httpGet:
path: {{ .Values.livenessProbe.httpGet.path }}
{{- if .Values.livenessProbe.httpGet.httpHeaders }}
httpHeaders:
{{ toYaml .Values.livenessProbe.httpGet.httpHeaders | indent 16 }}
{{- end }}
port: http
initialDelaySeconds: {{ .Values.livenessProbe.initialDelaySeconds }}
periodSeconds: {{ .Values.livenessProbe.periodSeconds }}
Expand Down
15 changes: 11 additions & 4 deletions charts/statping/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,16 @@ replicaCount: 1

database:
connection: sqlite
host: localhost
port: 5432
username: root
password: password123
database: statping_db
sslMode: "ssl_mode=disable"
readOnly: false

disableColors: true
debugMode: 1

image:
# image.repository -- https://hub.docker.com/r/statping/statping
Expand Down Expand Up @@ -54,10 +64,7 @@ affinity: {}

livenessProbe:
httpGet:
path: /health
httpHeaders:
- name: x-echo-code
value: "200"
path: /api
initialDelaySeconds: 5
periodSeconds: 10
timeoutSeconds: 2
Expand Down

0 comments on commit cb24a81

Please sign in to comment.