Skip to content

Commit 2caa657

Browse files
committed
2 parents 2d8e01a + 434759d commit 2caa657

17 files changed

Lines changed: 31 additions & 29 deletions

File tree

infrastructure/controllers/kyverno/kustomization.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ resources:
88
- policies/volsync-nfs-inject.yaml
99
- policies/volsync-orphan-cleanup.yaml
1010
- policies/image-pull-policy.yaml
11+
- policies/reloader-annotation-inject.yaml
1112
helmCharts:
1213
- name: kyverno
1314
repo: https://kyverno.github.io/kyverno
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
apiVersion: kyverno.io/v1
2+
kind: ClusterPolicy
3+
metadata:
4+
name: reloader-annotation-inject
5+
namespace: kyverno
6+
spec:
7+
validationFailureAction: audit
8+
background: true
9+
rules:
10+
- name: inject-reloader-annotation
11+
match:
12+
resources:
13+
kinds:
14+
- Deployment
15+
- StatefulSet
16+
- DaemonSet
17+
excludeResources:
18+
namespaceSelector:
19+
matchLabels:
20+
# Exclude system namespaces
21+
exclude-reloader-annotation: "true"
22+
selector:
23+
matchLabels:
24+
# Allow opt-out via label
25+
reloader-annotation: "disabled"
26+
mutate:
27+
patchStrategicMerge:
28+
metadata:
29+
annotations:
30+
reloader.stakater.com/match: "true"

my-apps/ai/llama-cpp/deployment.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@ metadata:
55
namespace: llama-cpp
66
labels:
77
app: llama-cpp-server
8-
annotations:
9-
reloader.stakater.com/auto: "true"
108
spec:
119
strategy:
1210
type: Recreate

my-apps/ai/ollama/deployment.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ metadata:
66
labels:
77
app.kubernetes.io/name: ollama
88
app.kubernetes.io/component: llm-server
9-
annotations:
10-
reloader.stakater.com/auto: "true"
119
spec:
1210
strategy:
1311
type: Recreate

my-apps/ai/open-webui/deployment.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ kind: Deployment
33
metadata:
44
name: open-webui
55
namespace: open-webui
6-
annotations:
7-
reloader.stakater.com/auto: "true"
86
spec:
97
strategy:
108
type: Recreate

my-apps/ai/open-webui/mcp-kiwix.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@ metadata:
77
namespace: open-webui
88
labels:
99
app: mcpo-kiwix
10-
annotations:
11-
reloader.stakater.com/auto: "true"
1210
spec:
1311
replicas: 1
1412
selector:

my-apps/development/dvwa/deployment.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ metadata:
55
namespace: dvwa
66
labels:
77
app: dvwa
8-
annotations:
98
description: "DVWA - Damn Vulnerable Web Application for penetration testing"
109
spec:
1110
replicas: 1

my-apps/home/frigate/deployment.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ kind: Deployment
33
metadata:
44
name: frigate
55
namespace: frigate
6-
annotations:
7-
reloader.stakater.com/auto: "true"
86
spec:
97
replicas: 0
108
selector:

my-apps/home/home-assistant/deployment.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@ metadata:
88
app.kubernetes.io/component: home-automation
99
app.kubernetes.io/part-of: smart-home
1010
app.kubernetes.io/version: stable
11-
annotations:
12-
reloader.stakater.com/auto: "true"
1311
spec:
1412
replicas: 1
1513
strategy:

my-apps/home/paperless-ngx/deployment.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ kind: Deployment
33
metadata:
44
name: paperless-ngx
55
namespace: paperless-ngx
6-
annotations:
7-
reloader.stakater.com/auto: "true"
86
spec:
97
strategy:
108
type: Recreate

0 commit comments

Comments
 (0)