generated from onedr0p/cluster-template
-
Notifications
You must be signed in to change notification settings - Fork 6
/
helmrelease.yaml
107 lines (104 loc) · 2.73 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
---
# yaml-language-server: $schema=https://kubernetes-schemas.pages.dev/helm.toolkit.fluxcd.io/helmrelease_v2.json
apiVersion: helm.toolkit.fluxcd.io/v2
kind: HelmRelease
metadata:
name: &app homepage
spec:
chart:
spec:
chart: app-template
version: 3.2.1
sourceRef:
kind: HelmRepository
name: bjw-s
namespace: flux-system
interval: 15m
install:
remediation:
retries: 3
upgrade:
cleanupOnFail: true
remediation:
strategy: rollback
retries: 3
driftDetection:
mode: enabled
ignore:
- paths:
- /spec/containers/resources/limits
target:
kind: Pod
values:
defaultPodOptions:
securityContext:
seccompProfile:
type: RuntimeDefault
controllers:
homepage:
strategy: Recreate
annotations:
reloader.stakater.com/search: "true"
containers:
app:
image:
repository: ghcr.io/gethomepage/homepage
tag: v0.9.1@sha256:840da91bbec48e009524c0e66616c5dbbfce4497d3c387687c668a956975d6dd
env:
TZ: ${TIMEZONE}
LOG_LEVEL: debug
envFrom:
- secretRef:
name: *app
resources:
requests:
cpu: 25m
memory: 105M
limits:
memory: 225M
securityContext:
allowPrivilegeEscalation: false
capabilities: { drop: ["ALL"] }
serviceAccount:
# allow scraping of k8s resources for widget
create: true
service:
app:
controller: *app
ports:
http:
port: 3000
ingress:
app:
className: internal
annotations:
nginx.ingress.kubernetes.io/whitelist-source-range: |
10.0.0.0/8,172.16.0.0/12,192.168.0.0/16
hosts:
- host: &host "{{ .Release.Name }}.${SECRET_DOMAIN}"
paths:
- path: /
pathType: Prefix
service:
identifier: app
port: http
tls:
- hosts:
- *host
persistence:
config:
type: configMap
name: *app
globalMounts:
- subPath: settings.yaml
path: /app/config/settings.yaml
- subPath: widgets.yaml
path: /app/config/widgets.yaml
- subPath: services.yaml
path: /app/config/services.yaml
- subPath: bookmarks.yaml
path: /app/config/bookmarks.yaml
- subPath: docker.yaml
path: /app/config/docker.yaml
- subPath: kubernetes.yaml
path: /app/config/kubernetes.yaml