-
Notifications
You must be signed in to change notification settings - Fork 4
/
helm-release.yaml
104 lines (93 loc) · 2.31 KB
/
helm-release.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
---
# yaml-language-server: $schema=https://raw.githubusercontent.com/bjw-s/helm-charts/common-3.1.0/charts/library/common/values.schema.json
apiVersion: helm.toolkit.fluxcd.io/v2
kind: HelmRelease
metadata:
name: &app it-tools
spec:
interval: 15m
chart:
spec:
chart: app-template
version: 3.1.0
interval: 30m
sourceRef:
kind: HelmRepository
name: bjw-s
namespace: flux-system
install:
remediation:
retries: 3
upgrade:
remediation:
retries: 3
values:
global:
fullnameOverride: *app
controllers:
it-tools:
enabled: true
annotations:
reloader.stakater.com/auto: "true"
replicas: 1
pod:
securityContext:
runAsUser: &context 1999
runAsGroup: *context
fsGroup: *context
fsGroupChangePolicy: "OnRootMismatch"
containers:
app:
image:
repository: ghcr.io/corentinth/it-tools
tag: 2023.12.21-5ed3693
pullPolicy: IfNotPresent
securityContext:
readOnlyRootFilesystem: true
allowPrivilegeEscalation: false
capabilities:
drop: ["ALL"]
add: ["NET_BIND_SERVICE"]
resources:
requests:
cpu: 10m
memory: 50M
limits:
memory: 50M
service:
app:
controller: it-tools
ports:
http:
port: 80
ingress:
external:
annotations:
external-dns.alpha.kubernetes.io/target: ${EXTERNAL_DOMAIN}
enabled: true
className: ext-ingress
hosts:
- host: &host "{{ .Release.Name }}.${EXTERNAL_DOMAIN}"
paths:
- path: /
pathType: Prefix
service:
identifier: app
port: http
tls:
- hosts:
- *host
persistence:
cache:
type: emptyDir
globalMounts:
- path: /var/cache/nginx
nginx:
type: emptyDir
globalMounts:
- path: /var/run
subPath: nginx.pid
logs:
type: emptyDir
globalMounts:
- path: /var/log/nginx