-
Notifications
You must be signed in to change notification settings - Fork 9
/
helmrelease.yaml
93 lines (93 loc) · 2.32 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
---
# yaml-language-server: $schema=https://raw.githubusercontent.com/bjw-s/helm-charts/main/charts/other/app-template/schemas/helmrelease-helm-v2beta2.schema.json
apiVersion: helm.toolkit.fluxcd.io/v2
kind: HelmRelease
metadata:
name: &app home-assistant-code
namespace: default
spec:
interval: 30m
chart:
spec:
chart: app-template
version: 3.1.0
sourceRef:
kind: HelmRepository
name: bjw-s
namespace: flux-system
maxHistory: 2
install:
remediation:
retries: 3
upgrade:
cleanupOnFail: true
remediation:
strategy: rollback
retries: 3
uninstall:
keepHistory: false
dependsOn:
- name: home-assistant
namespace: default
values:
defaultPodOptions:
nodeSelector:
nodo.feature.node.kubernetes.io/rflink: "true"
controllers:
home-assistant-code:
annotations:
reloader.stakater.com/auto: "true"
containers:
app:
image:
repository: ghcr.io/coder/code-server
tag: 4.89.1@sha256:3b56b9e77d242241c107b6e9ec3be91ea23ab733e016f8a5e318c974b2a97107
env:
TZ: ${TIMEZONE}
GIT_SSH_COMMAND: ssh -i /config/.ssh/id_ed25519 -o IdentitiesOnly=yes
args:
- --auth
- none
- --user-data-dir
- /config/.vscode
- --extensions-dir
- /config/.vscode
- --port
- "8888"
- /config
resources:
requests:
cpu: 10m
memory: 128Mi
limits:
memory: 1Gi
pod:
securityContext:
runAsUser: 0
runAsGroup: 0
fsGroup: 0
fsGroupChangePolicy: OnRootMismatch
service:
app:
controller: *app
ports:
http:
port: 8888
ingress:
app:
enabled: true
className: nginx
hosts:
- host: &host hass-code.${SECRET_CLUSTER_DOMAIN}
paths:
- path: /
service:
identifier: app
port: http
tls:
- hosts:
- *host
persistence:
config:
enabled: true
existingClaim: home-assistant