-
Notifications
You must be signed in to change notification settings - Fork 0
/
helmrelease.yaml
122 lines (116 loc) · 3.49 KB
/
helmrelease.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
apiVersion: helm.toolkit.fluxcd.io/v2
kind: HelmRelease
metadata:
name: nightscout
namespace: nightscout
spec:
chart:
spec:
chart: nightscout
version: 0.13.0
reconcileStrategy: ChartVersion
sourceRef:
kind: HelmRepository
namespace: flux-system
name: gabe565
interval: 1h
driftDetection:
mode: enabled
values:
image:
repository: ghcr.io/gabe565/nightscout
tag: 15.0.2@sha256:f8a76d4fdbb1a5a2ae95f1af174576c82f946fe33a9ef61225fe9d5b10c956d8
pullPolicy: IfNotPresent
env:
TZ: "America/Chicago"
API_SECRET: ${api_secret}
AUTH_DEFAULT_ROLES: "denied"
ALARM_TIMEAGO_URGENT: "off"
ALARM_TIMEAGO_WARN: "off"
ALARM_TYPES: " "
DAY_START: "9.0"
DAY_END: "23.0"
DEVICESTATUS_ADVANCED: "true"
DISABLE: "ar2 simplealarms upbat dbsize"
EDIT_MODE: "on"
ENABLE: "careportal simplealarms"
SCALE_Y: "linear"
SHOW_FORECAST: " "
SHOW_RAWBG: "noise"
THEME: "colors"
TIME_FORMAT: "24"
INSECURE_USE_HTTP: "true"
podLabels:
policy.gabe565.com/egress-namespace: "true"
policy.gabe565.com/egress-world: "true"
policy.gabe565.com/ingress-home-assistant: "true"
policy.gabe565.com/ingress-ingress: "true"
securityContext:
readOnlyRootFilesystem: true
termination:
gracePeriodSeconds: 30
ingress:
main:
enabled: true
annotations:
nginx.ingress.kubernetes.io/auth-url: |-
http://ak-outpost-gabernetes.authentik.svc.cluster.local:9000/outpost.goauthentik.io/auth/nginx
nginx.ingress.kubernetes.io/auth-signin: /outpost.goauthentik.io/start?rd=%2F
nginx.ingress.kubernetes.io/auth-response-headers: Set-Cookie,X-Nightscout-Api-Key
nginx.ingress.kubernetes.io/auth-snippet: proxy_set_header X-Forwarded-Host $http_host;
nginx.ingress.kubernetes.io/configuration-snippet: |
access_by_lua_block {
local apiKey = ngx.var.authHeader1
if apiKey ~= nil then
local args = ngx.req.get_uri_args()
args.token = apiKey
ngx.req.set_uri_args(args)
end
}
hosts:
- host: ${app_url}
paths:
- path: /
tls: &bg-tls
- secretName: ${certificate_name}
hosts:
- ${app_url}
api:
enabled: true
hosts:
- host: ${api_url}
paths:
- path: /
tls:
- secretName: ${certificate_name}
hosts:
- ${api_url}
remove-sw:
enabled: true
annotations:
nginx.ingress.kubernetes.io/configuration-snippet: |
add_header Content-Type application/javascript;
return 200 "self.addEventListener('install', event => { event.waitUntil(self.skipWaiting()) })";
hosts:
- host: ${app_url}
paths:
- path: /sw.js
tls: *bg-tls
mongodb:
enabled: true
auth:
passwords:
- ${mongodb_password}
rootPassword: ${mongodb_root_password}
persistence:
enabled: true
storageClass: longhorn-ssd
size: 2Gi
livenessProbe:
periodSeconds: 30
readinessProbe:
periodSeconds: 30
nodeSelector:
feature.node.kubernetes.io/cpu-cpuid.AVX: "true"
podLabels:
policy.gabe565.com/ingress-namespace: "true"