generated from onedr0p/cluster-template
-
Notifications
You must be signed in to change notification settings - Fork 6
/
helmrelease.yaml
91 lines (89 loc) · 2.26 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
---
# 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 cyberchef
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:
runAsGroup: 65534
runAsUser: 65534
runAsNonRoot: true
seccompProfile:
type: RuntimeDefault
controllers:
cyberchef:
containers:
app:
image:
# https://hub.docker.com/r/mpepping/cyberchef
repository: docker.io/mpepping/cyberchef
tag: v10.18.6@sha256:c70ed5a307f4fb02afcfdc4a6fa76e487c1ae893abb714ca155b208b2abe5e90
env:
TZ: ${TIMEZONE}
resources:
requests:
cpu: 25m
memory: 105M
limits:
memory: 105M
securityContext:
allowPrivilegeEscalation: false
readOnlyRootFilesystem: true
capabilities: { drop: ["ALL"] }
service:
app:
controller: *app
ports:
http:
port: 8000
ingress:
app:
className: external
annotations:
external-dns.alpha.kubernetes.io/target: external.${SECRET_DOMAIN}
# 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:
tmp:
enabled: true
type: emptyDir
globalMounts:
- path: /tmp