Compare commits
20
Commits
2f7fa75230
..
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
12b14ca9d4 | ||
|
|
ad5b5c6bb1 | ||
|
|
64aa2da745 | ||
|
|
b18c3175aa | ||
|
|
164d31efa7 | ||
|
|
5c129570da | ||
|
|
d9016105ed | ||
|
|
04ab8f9407 | ||
|
|
237f6d5bad | ||
|
|
3e7605d65e | ||
|
|
b582699d21 | ||
|
|
140198f513 | ||
|
|
66dae6b74b | ||
|
|
7b367fb8a1 | ||
|
|
cf61cb0816 | ||
|
|
ba10ac87e0 | ||
|
|
3c5d38fa58 | ||
|
|
a0d8ffe01e | ||
|
|
f7bfe91ef5 | ||
|
|
c78b1fe096 |
@@ -1,19 +1,4 @@
|
||||
# GitOps on Haven — Deployment Draft
|
||||
|
||||
> **Draft only.** Nothing below is applied to the cluster yet. Diagrams are
|
||||
> [Excalidraw JSON] (import at https://excalidraw.com) — static previews included
|
||||
> as PNG. Create the repo before running any commands.
|
||||
|
||||
## 1. Decisions
|
||||
|
||||
| Decision | Value | Why |
|
||||
|---|---|---|
|
||||
| Tool | **Argo CD** | Best UI (app dependency graph, live-vs-git diff, rollback). Flux's UI (Weave GitOps) is stalled post-Weaveworks; community alternative is Capacitor. |
|
||||
| Git remote | **Gitea** `git.ivanch.me/ivanch/haven` | Repo you'll create. Gitea is a first-class Argo CD source. |
|
||||
| Layout | **App-of-apps** | A single root Argo `Application` watches a folder of app manifests; each app manifests as a child `Application`. One place to add/remove apps. |
|
||||
| Secrets | **No change.** Keep raw env in manifests initially, migrate to ESO/Vaultwarden later. | Argo CD can't write Secret contents itself — value must live in git or come from a controller. Never commit real secrets. |
|
||||
| Access | Ingress `argocd.haven`, internal-only (nginx class, **no TLS/cert-manager**) + admin password via kubectl | Matches your internal-app convention (`notepad`, `openwebui`, etc.). |
|
||||
| Repo structure | **New `gitops` repo** (clean, standalone). Your current spec folder stays untouched — migrate later if desired. | Avoids mixing with the `haven` folder used by Gitea Actions CI. |
|
||||
# Haven
|
||||
|
||||
## 2. Repo layout (`gitops/`)
|
||||
|
||||
@@ -31,94 +16,3 @@ gitops/
|
||||
│ ├── <app-1>.yaml # all-in-one manifest per app
|
||||
│ └── <app-2>.yaml
|
||||
```
|
||||
|
||||
To add a new app: simply drop `<app>.yaml` into the appropriate `apps/<namespace>/` folder. The ApplicationSet automatically generates an Argo CD Application for it.
|
||||
|
||||
## 3. Manual bootstrap (run once, by hand)
|
||||
|
||||
```bash
|
||||
# Install Argo CD — declarative kustomize install (no Helm CLI, no curl pipes).
|
||||
# Renders 59 resources from the official argo-cd manifests repo, pinned via ?ref=
|
||||
kubectl.exe --kubeconfig=C:\Users\ivanch\.kube\config apply -k bootstrap/argocd-install
|
||||
# retrieve the initial admin password
|
||||
kubectl.exe --kubeconfig=C:\Users\ivanch\.kube\config -n argocd get secret argocd-initial-admin-secret \
|
||||
-o jsonpath='{.data.password}' | base64 -d
|
||||
# one-time: point the root app at Gitea (requires the repo to exist first)
|
||||
kubectl.exe --kubeconfig=C:\Users\ivanch\.kube\config apply -f bootstrap/root-app.yaml
|
||||
```
|
||||
|
||||
Version pinning: `?ref=stable` in `bootstrap/argocd-install/kustomization.yaml`
|
||||
tracks the stable branch; pin a tag (`?ref=v3.1.0`) once settled. Component
|
||||
customization goes through `patches:` in that same kustomization (example
|
||||
commented in the file), not by editing rendered output.
|
||||
|
||||
After that, **every** change is: `git push` → Argo syncs. kubectl only for debugging.
|
||||
|
||||
## 4. Key manifests
|
||||
|
||||
**`bootstrap/root-app.yaml`**
|
||||
```yaml
|
||||
apiVersion: argoproj.io/v1alpha1
|
||||
kind: Application
|
||||
metadata:
|
||||
name: root
|
||||
namespace: argocd
|
||||
finalizers: [resources-finalizer.argocd.argoproj.io]
|
||||
spec:
|
||||
project: default
|
||||
source:
|
||||
repoURL: https://git.ivanch.me/ivanch/haven.git
|
||||
targetRevision: main
|
||||
path: apps/root
|
||||
destination:
|
||||
server: https://kubernetes.default.svc
|
||||
namespace: argocd
|
||||
syncPolicy:
|
||||
automated:
|
||||
prune: true
|
||||
selfHeal: true
|
||||
```
|
||||
|
||||
**`apps/root/applicationset.yaml`** — Uses the Git Files generator to discover any `apps/*/*.yaml` file and automatically generate an Argo CD `Application` pointing directly to that app file within the respective namespace.
|
||||
|
||||
## 5. Ingress (internal-only, per Haven convention)
|
||||
|
||||
```yaml
|
||||
apiVersion: networking.k8s.io/v1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
name: argocd-server
|
||||
namespace: argocd
|
||||
spec:
|
||||
ingressClassName: nginx
|
||||
rules:
|
||||
- host: argocd.haven
|
||||
http:
|
||||
paths:
|
||||
- path: /
|
||||
pathType: Prefix
|
||||
backend:
|
||||
service:
|
||||
name: argocd-server
|
||||
port: { number: 80 }
|
||||
```
|
||||
|
||||
## 6. Diagrams (Excalidraw JSON)
|
||||
|
||||
Two diagrams are included as `.excalidraw` files — open https://excalidraw.com
|
||||
and drop the file onto the canvas to view/edit:
|
||||
|
||||
- `excalidraw/haven-gitops-flow.excalidraw` — the flow: git push → Gitea →
|
||||
Argo CD → k3s, with Gitea Actions CI reduced to image build/push only.
|
||||
- `excalidraw/haven-gitops-tree.excalidraw` — the app-of-apps tree: root app →
|
||||
child Applications (notepad, openwebui, paperless, vaultwarden, argocd itself,
|
||||
and infra deferred to a later phase).
|
||||
|
||||
## 7. Migration plan
|
||||
|
||||
Phase 0 (this draft) → Phase 1: install Argo CD + root app, convert 1 pilot app
|
||||
(suggest `notepad` — simple, stateless-ish, single PVC) → Phase 2: onboard the
|
||||
rest of `default` ns → Phase 3: infra components (ingress-nginx, cert-manager,
|
||||
ESO) — do these **last**; they're the ones that can break the cluster if a sync
|
||||
goes wrong → Phase 4: delete the old `haven` spec folder once Argo is the source
|
||||
of truth.
|
||||
|
||||
@@ -1,12 +1,22 @@
|
||||
# Initial setup
|
||||
```sh
|
||||
# Create namespace
|
||||
# Setup Instructions
|
||||
|
||||
## Pre-installation
|
||||
|
||||
1. Create namespaces with
|
||||
```bash
|
||||
kubectl apply -f bootstrap/namespaces.yaml
|
||||
```
|
||||
|
||||
# Install ArgoCD
|
||||
2. Apply Vaultwarden deployment app
|
||||
```bash
|
||||
kubectl apply -f apps/default/vaultwarden.yaml
|
||||
```
|
||||
|
||||
3. Configure required secrets in `secrets/` directory, each mapping to an entity in Vaultwarden.
|
||||
|
||||
## ArgoCD Installation
|
||||
```sh
|
||||
kubectl apply -k bootstrap/argocd-install
|
||||
|
||||
# Apply root app
|
||||
kubectl apply -f bootstrap/root-app.yaml
|
||||
```
|
||||
|
||||
@@ -16,4 +26,20 @@ kubectl apply -f bootstrap/root-app.yaml
|
||||
kubectl -n argocd get secret argocd-initial-admin-secret -o jsonpath="{.data.password}" | base64 -d; echo
|
||||
```
|
||||
|
||||
2. Access ArgoCD and login with `admin` / password from above.
|
||||
2. Access ArgoCD and login with `admin` / password from above.
|
||||
|
||||
## External Secrets Operator preparation
|
||||
|
||||
Create this Secret manually. `BW_HOST` must have no trailing slash.
|
||||
|
||||
```bash
|
||||
kubectl -n infra create secret generic bitwarden-cli \
|
||||
--from-literal=BW_HOST='[VAULTWARDEN_URL]' \
|
||||
--from-literal=BW_USERNAME='[VAULTWARDEN_EMAIL]' \
|
||||
--from-literal=BW_PASSWORD='[VAULTWARDEN_PASSWORD]'
|
||||
```
|
||||
|
||||
## Apply order
|
||||
1. `kubectl apply -f secrets/`
|
||||
2. `kubectl apply -f apps/metalldb-system/`
|
||||
3. `kubectl apply -f apps/infra/`
|
||||
+94
-93
@@ -19,104 +19,105 @@ spec:
|
||||
targetRevision: 1.12.1
|
||||
helm:
|
||||
valuesObject:
|
||||
clustering: { enabled: false }
|
||||
mounts:
|
||||
varlog: true
|
||||
controller:
|
||||
type: daemonset
|
||||
resources:
|
||||
requests:
|
||||
cpu: 100m
|
||||
memory: 128Mi
|
||||
limits:
|
||||
cpu: 200m
|
||||
memory: 256Mi
|
||||
configMap:
|
||||
create: true
|
||||
content: |-
|
||||
discovery.kubernetes "all_pods" {
|
||||
role = "pod"
|
||||
alloy:
|
||||
clustering: { enabled: false }
|
||||
mounts:
|
||||
varlog: true
|
||||
resources:
|
||||
requests:
|
||||
cpu: 100m
|
||||
memory: 128Mi
|
||||
limits:
|
||||
cpu: 200m
|
||||
memory: 256Mi
|
||||
configMap:
|
||||
create: true
|
||||
content: |-
|
||||
discovery.kubernetes "all_pods" {
|
||||
role = "pod"
|
||||
|
||||
selectors {
|
||||
role = "pod"
|
||||
field = "spec.nodeName=" + coalesce(env("HOSTNAME"), constants.hostname)
|
||||
}
|
||||
}
|
||||
|
||||
discovery.relabel "all_pods" {
|
||||
targets = discovery.kubernetes.all_pods.targets
|
||||
|
||||
rule {
|
||||
source_labels = ["__meta_kubernetes_namespace"]
|
||||
target_label = "namespace"
|
||||
}
|
||||
rule {
|
||||
source_labels = ["__meta_kubernetes_pod_name"]
|
||||
target_label = "pod"
|
||||
}
|
||||
rule {
|
||||
source_labels = ["__meta_kubernetes_pod_container_name"]
|
||||
target_label = "container"
|
||||
}
|
||||
rule {
|
||||
source_labels = ["__meta_kubernetes_pod_label_app_kubernetes_io_name"]
|
||||
target_label = "app"
|
||||
}
|
||||
}
|
||||
|
||||
loki.source.kubernetes "all_logs" {
|
||||
targets = discovery.relabel.all_pods.output
|
||||
forward_to = [loki.write.main.receiver]
|
||||
}
|
||||
|
||||
discovery.kubernetes "shared_pods" {
|
||||
role = "pod"
|
||||
selectors {
|
||||
role = "pod"
|
||||
field = "metadata.namespace=chacal"
|
||||
}
|
||||
}
|
||||
|
||||
discovery.relabel "shared_pods" {
|
||||
targets = discovery.kubernetes.shared_pods.targets
|
||||
|
||||
rule {
|
||||
source_labels = ["__meta_kubernetes_namespace"]
|
||||
target_label = "namespace"
|
||||
}
|
||||
rule {
|
||||
source_labels = ["__meta_kubernetes_pod_name"]
|
||||
target_label = "pod"
|
||||
}
|
||||
rule {
|
||||
source_labels = ["__meta_kubernetes_pod_container_name"]
|
||||
target_label = "container"
|
||||
}
|
||||
rule {
|
||||
source_labels = ["__meta_kubernetes_pod_label_app_kubernetes_io_name"]
|
||||
target_label = "app"
|
||||
}
|
||||
}
|
||||
|
||||
loki.source.kubernetes "shared_logs" {
|
||||
targets = discovery.relabel.shared_pods.output
|
||||
forward_to = [loki.write.shared.receiver]
|
||||
}
|
||||
|
||||
loki.write "main" {
|
||||
endpoint {
|
||||
url = "http://loki.monitoring.svc.cluster.local:3100/loki/api/v1/push"
|
||||
headers = {
|
||||
"X-Scope-OrgID" = "main",
|
||||
selectors {
|
||||
role = "pod"
|
||||
field = "spec.nodeName=" + coalesce(env("HOSTNAME"), constants.hostname)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
loki.write "shared" {
|
||||
endpoint {
|
||||
url = "http://loki.monitoring.svc.cluster.local:3100/loki/api/v1/push"
|
||||
headers = {
|
||||
"X-Scope-OrgID" = "chacal",
|
||||
discovery.relabel "all_pods" {
|
||||
targets = discovery.kubernetes.all_pods.targets
|
||||
|
||||
rule {
|
||||
source_labels = ["__meta_kubernetes_namespace"]
|
||||
target_label = "namespace"
|
||||
}
|
||||
rule {
|
||||
source_labels = ["__meta_kubernetes_pod_name"]
|
||||
target_label = "pod"
|
||||
}
|
||||
rule {
|
||||
source_labels = ["__meta_kubernetes_pod_container_name"]
|
||||
target_label = "container"
|
||||
}
|
||||
rule {
|
||||
source_labels = ["__meta_kubernetes_pod_label_app_kubernetes_io_name"]
|
||||
target_label = "app"
|
||||
}
|
||||
}
|
||||
|
||||
loki.source.kubernetes "all_logs" {
|
||||
targets = discovery.relabel.all_pods.output
|
||||
forward_to = [loki.write.main.receiver]
|
||||
}
|
||||
|
||||
discovery.kubernetes "shared_pods" {
|
||||
role = "pod"
|
||||
selectors {
|
||||
role = "pod"
|
||||
field = "metadata.namespace=chacal"
|
||||
}
|
||||
}
|
||||
|
||||
discovery.relabel "shared_pods" {
|
||||
targets = discovery.kubernetes.shared_pods.targets
|
||||
|
||||
rule {
|
||||
source_labels = ["__meta_kubernetes_namespace"]
|
||||
target_label = "namespace"
|
||||
}
|
||||
rule {
|
||||
source_labels = ["__meta_kubernetes_pod_name"]
|
||||
target_label = "pod"
|
||||
}
|
||||
rule {
|
||||
source_labels = ["__meta_kubernetes_pod_container_name"]
|
||||
target_label = "container"
|
||||
}
|
||||
rule {
|
||||
source_labels = ["__meta_kubernetes_pod_label_app_kubernetes_io_name"]
|
||||
target_label = "app"
|
||||
}
|
||||
}
|
||||
|
||||
loki.source.kubernetes "shared_logs" {
|
||||
targets = discovery.relabel.shared_pods.output
|
||||
forward_to = [loki.write.shared.receiver]
|
||||
}
|
||||
|
||||
loki.write "main" {
|
||||
endpoint {
|
||||
url = "http://loki.monitoring.svc.cluster.local:3100/loki/api/v1/push"
|
||||
headers = {
|
||||
"X-Scope-OrgID" = "main",
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
loki.write "shared" {
|
||||
endpoint {
|
||||
url = "http://loki.monitoring.svc.cluster.local:3100/loki/api/v1/push"
|
||||
headers = {
|
||||
"X-Scope-OrgID" = "chacal",
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -115,7 +115,6 @@ metadata:
|
||||
labels:
|
||||
app: affine
|
||||
spec:
|
||||
ingressClassName: nginx
|
||||
rules:
|
||||
- host: affine.haven
|
||||
http:
|
||||
|
||||
@@ -135,7 +135,6 @@ metadata:
|
||||
nginx.ingress.kubernetes.io/proxy-read-timeout: "600"
|
||||
nginx.ingress.kubernetes.io/proxy-send-timeout: "600"
|
||||
spec:
|
||||
ingressClassName: nginx
|
||||
rules:
|
||||
- host: cloud.haven
|
||||
http:
|
||||
@@ -158,7 +157,6 @@ metadata:
|
||||
nginx.ingress.kubernetes.io/proxy-read-timeout: "600"
|
||||
nginx.ingress.kubernetes.io/proxy-send-timeout: "600"
|
||||
spec:
|
||||
ingressClassName: nginx
|
||||
rules:
|
||||
- host: cloud.ivanch.me
|
||||
http:
|
||||
|
||||
@@ -122,7 +122,6 @@ metadata:
|
||||
nginx.ingress.kubernetes.io/proxy-read-timeout: "600"
|
||||
nginx.ingress.kubernetes.io/proxy-send-timeout: "600"
|
||||
spec:
|
||||
ingressClassName: nginx
|
||||
rules:
|
||||
- host: slink.haven
|
||||
http:
|
||||
|
||||
@@ -0,0 +1,39 @@
|
||||
apiVersion: batch/v1
|
||||
kind: CronJob
|
||||
metadata:
|
||||
name: renovate
|
||||
namespace: cronjobs
|
||||
spec:
|
||||
schedule: "0 12 * * 0" # every Sunday 12:00
|
||||
concurrencyPolicy: Forbid
|
||||
jobTemplate:
|
||||
spec:
|
||||
template:
|
||||
spec:
|
||||
containers:
|
||||
- name: renovate
|
||||
image: renovate/renovate:44.39.3
|
||||
args:
|
||||
- ivanch/haven-ops
|
||||
env:
|
||||
- name: LOG_LEVEL
|
||||
value: debug
|
||||
- name: RENOVATE_AUTODISCOVER
|
||||
value: "false"
|
||||
- name: RENOVATE_PLATFORM
|
||||
value: "gitea"
|
||||
- name: RENOVATE_ENDPOINT
|
||||
value: "https://git.ivanch.me"
|
||||
- name: RENOVATE_GIT_AUTHOR
|
||||
value: "Renovate Bot <bot@renovateapp.com>"
|
||||
- name: RENOVATE_TOKEN
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: renovate-bot
|
||||
key: RENOVATE_TOKEN
|
||||
- name: RENOVATE_GITHUB_COM_TOKEN
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: renovate-bot
|
||||
key: RENOVATE_GITHUB_COM_TOKEN
|
||||
restartPolicy: Never
|
||||
@@ -145,7 +145,6 @@ metadata:
|
||||
name: archivebox-ingress
|
||||
namespace: default
|
||||
spec:
|
||||
ingressClassName: nginx
|
||||
rules:
|
||||
- host: "archive.haven"
|
||||
http:
|
||||
|
||||
@@ -140,7 +140,6 @@ metadata:
|
||||
labels:
|
||||
app.kubernetes.io/name: changedetection
|
||||
spec:
|
||||
ingressClassName: nginx
|
||||
rules:
|
||||
- host: change.haven
|
||||
http:
|
||||
|
||||
@@ -192,7 +192,6 @@ metadata:
|
||||
labels:
|
||||
app.kubernetes.io/name: homepage
|
||||
spec:
|
||||
ingressClassName: nginx
|
||||
rules:
|
||||
- host: "homepage.haven"
|
||||
http:
|
||||
|
||||
@@ -53,7 +53,6 @@ metadata:
|
||||
name: it-tools-ingress
|
||||
namespace: default
|
||||
spec:
|
||||
ingressClassName: nginx
|
||||
rules:
|
||||
- host: "tools.haven"
|
||||
http:
|
||||
|
||||
@@ -77,7 +77,6 @@ metadata:
|
||||
name: notepad
|
||||
namespace: default
|
||||
spec:
|
||||
ingressClassName: nginx
|
||||
rules:
|
||||
- host: notepad.haven
|
||||
http:
|
||||
|
||||
@@ -94,7 +94,6 @@ metadata:
|
||||
annotations:
|
||||
nginx.ingress.kubernetes.io/proxy-body-size: "50m"
|
||||
spec:
|
||||
ingressClassName: nginx
|
||||
rules:
|
||||
- host: openwebui.haven
|
||||
http:
|
||||
|
||||
@@ -137,7 +137,6 @@ metadata:
|
||||
name: paperless
|
||||
namespace: default
|
||||
spec:
|
||||
ingressClassName: nginx
|
||||
rules:
|
||||
- host: paperless.haven
|
||||
http:
|
||||
|
||||
@@ -18,68 +18,68 @@ spec:
|
||||
affinity:
|
||||
nodeAffinity:
|
||||
preferredDuringSchedulingIgnoredDuringExecution:
|
||||
- preference:
|
||||
matchExpressions:
|
||||
- key: kubernetes.io/hostname
|
||||
operator: In
|
||||
values:
|
||||
- iris
|
||||
weight: 100
|
||||
- preference:
|
||||
matchExpressions:
|
||||
- key: kubernetes.io/hostname
|
||||
operator: In
|
||||
values:
|
||||
- iris
|
||||
weight: 100
|
||||
containers:
|
||||
- command:
|
||||
- npx
|
||||
- -y
|
||||
- playwright@1.58.0
|
||||
- run-server
|
||||
- --port
|
||||
- '3000'
|
||||
- --host
|
||||
- 0.0.0.0
|
||||
env:
|
||||
- name: TZ
|
||||
value: America/Sao_Paulo
|
||||
image: mcr.microsoft.com/playwright:v1.58.0-noble
|
||||
imagePullPolicy: Always
|
||||
name: playwright
|
||||
ports:
|
||||
- containerPort: 3000
|
||||
protocol: TCP
|
||||
resources:
|
||||
limits:
|
||||
cpu: '4'
|
||||
memory: 4Gi
|
||||
requests:
|
||||
cpu: 500m
|
||||
memory: 512Mi
|
||||
terminationMessagePath: /dev/termination-log
|
||||
terminationMessagePolicy: File
|
||||
volumeMounts:
|
||||
- mountPath: /dev/shm
|
||||
name: dshm
|
||||
- command:
|
||||
- npx
|
||||
- -y
|
||||
- playwright@1.58.0
|
||||
- run-server
|
||||
- --port
|
||||
- "3000"
|
||||
- --host
|
||||
- 0.0.0.0
|
||||
env:
|
||||
- name: TZ
|
||||
value: America/Sao_Paulo
|
||||
image: mcr.microsoft.com/playwright:v1.62.1-noble
|
||||
imagePullPolicy: Always
|
||||
name: playwright
|
||||
ports:
|
||||
- containerPort: 3000
|
||||
protocol: TCP
|
||||
resources:
|
||||
limits:
|
||||
cpu: "4"
|
||||
memory: 4Gi
|
||||
requests:
|
||||
cpu: 500m
|
||||
memory: 512Mi
|
||||
terminationMessagePath: /dev/termination-log
|
||||
terminationMessagePolicy: File
|
||||
volumeMounts:
|
||||
- mountPath: /dev/shm
|
||||
name: dshm
|
||||
dnsPolicy: ClusterFirst
|
||||
restartPolicy: Always
|
||||
schedulerName: default-scheduler
|
||||
securityContext: {}
|
||||
terminationGracePeriodSeconds: 30
|
||||
volumes:
|
||||
- emptyDir:
|
||||
medium: Memory
|
||||
name: dshm
|
||||
- emptyDir:
|
||||
medium: Memory
|
||||
name: dshm
|
||||
status:
|
||||
availableReplicas: 1
|
||||
conditions:
|
||||
- lastTransitionTime: '2026-05-29T15:54:24Z'
|
||||
lastUpdateTime: '2026-07-22T10:14:35Z'
|
||||
message: ReplicaSet "playwright-86c74d7c78" has successfully progressed.
|
||||
reason: NewReplicaSetAvailable
|
||||
status: 'True'
|
||||
type: Progressing
|
||||
- lastTransitionTime: '2026-08-28T06:04:14Z'
|
||||
lastUpdateTime: '2026-08-28T06:04:14Z'
|
||||
message: Deployment has minimum availability.
|
||||
reason: MinimumReplicasAvailable
|
||||
status: 'True'
|
||||
type: Available
|
||||
- lastTransitionTime: "2026-05-29T15:54:24Z"
|
||||
lastUpdateTime: "2026-07-22T10:14:35Z"
|
||||
message: ReplicaSet "playwright-86c74d7c78" has successfully progressed.
|
||||
reason: NewReplicaSetAvailable
|
||||
status: "True"
|
||||
type: Progressing
|
||||
- lastTransitionTime: "2026-08-28T06:04:14Z"
|
||||
lastUpdateTime: "2026-08-28T06:04:14Z"
|
||||
message: Deployment has minimum availability.
|
||||
reason: MinimumReplicasAvailable
|
||||
status: "True"
|
||||
type: Available
|
||||
observedGeneration: 95
|
||||
readyReplicas: 1
|
||||
replicas: 1
|
||||
@@ -94,12 +94,12 @@ metadata:
|
||||
spec:
|
||||
internalTrafficPolicy: Cluster
|
||||
ipFamilies:
|
||||
- IPv4
|
||||
- IPv4
|
||||
ipFamilyPolicy: SingleStack
|
||||
ports:
|
||||
- port: 3000
|
||||
protocol: TCP
|
||||
targetPort: 3000
|
||||
- port: 3000
|
||||
protocol: TCP
|
||||
targetPort: 3000
|
||||
selector:
|
||||
app: playwright
|
||||
sessionAffinity: None
|
||||
@@ -113,19 +113,18 @@ metadata:
|
||||
name: playwright
|
||||
namespace: default
|
||||
spec:
|
||||
ingressClassName: nginx
|
||||
rules:
|
||||
- host: playwright.haven
|
||||
http:
|
||||
paths:
|
||||
- backend:
|
||||
service:
|
||||
name: playwright
|
||||
port:
|
||||
number: 3000
|
||||
path: /
|
||||
pathType: Prefix
|
||||
- host: playwright.haven
|
||||
http:
|
||||
paths:
|
||||
- backend:
|
||||
service:
|
||||
name: playwright
|
||||
port:
|
||||
number: 3000
|
||||
path: /
|
||||
pathType: Prefix
|
||||
status:
|
||||
loadBalancer:
|
||||
ingress:
|
||||
- ip: 192.168.20.204
|
||||
- ip: 192.168.20.204
|
||||
|
||||
@@ -1,132 +0,0 @@
|
||||
---
|
||||
# 1) Deployment
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: qbittorrent
|
||||
namespace: default
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: qbittorrent
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: qbittorrent
|
||||
spec:
|
||||
affinity:
|
||||
nodeAffinity:
|
||||
preferredDuringSchedulingIgnoredDuringExecution:
|
||||
- weight: 100
|
||||
preference:
|
||||
matchExpressions:
|
||||
- key: kubernetes.io/hostname
|
||||
operator: In
|
||||
values:
|
||||
- iris
|
||||
containers:
|
||||
- name: qbittorrent
|
||||
image: lscr.io/linuxserver/qbittorrent:5.0.4
|
||||
imagePullPolicy: Always
|
||||
resources:
|
||||
requests:
|
||||
cpu: 200m
|
||||
memory: 256Mi
|
||||
limits:
|
||||
cpu: 1000m
|
||||
memory: 512Mi
|
||||
ports:
|
||||
- containerPort: 4300
|
||||
name: webui-port
|
||||
- containerPort: 6881
|
||||
name: qbit-tcp
|
||||
protocol: TCP
|
||||
- containerPort: 6881
|
||||
name: qbit-udp
|
||||
protocol: UDP
|
||||
env:
|
||||
- name: PUID
|
||||
value: "1000"
|
||||
- name: PGID
|
||||
value: "1000"
|
||||
- name: TZ
|
||||
value: "Etc/UTC"
|
||||
- name: WEBUI_PORT
|
||||
value: "4300"
|
||||
- name: TORRENTING_PORT
|
||||
value: "6881"
|
||||
volumeMounts:
|
||||
- name: qbittorrent-config
|
||||
mountPath: /config
|
||||
- name: nas-storage
|
||||
mountPath: /nas
|
||||
volumes:
|
||||
- name: qbittorrent-config
|
||||
persistentVolumeClaim:
|
||||
claimName: qbittorrent-config
|
||||
- name: nas-storage
|
||||
nfs:
|
||||
server: 192.168.15.99
|
||||
path: /export/Storage
|
||||
---
|
||||
# PVC
|
||||
apiVersion: v1
|
||||
kind: PersistentVolumeClaim
|
||||
metadata:
|
||||
name: qbittorrent-config
|
||||
namespace: default
|
||||
annotations:
|
||||
nfs.io/storage-path: "qbittorrent-config"
|
||||
spec:
|
||||
storageClassName: "nfs-client"
|
||||
accessModes:
|
||||
- ReadWriteOnce
|
||||
resources:
|
||||
requests:
|
||||
storage: 1Gi
|
||||
---
|
||||
# 2) Service
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: qbittorrent
|
||||
namespace: default
|
||||
spec:
|
||||
type: NodePort
|
||||
selector:
|
||||
app: qbittorrent
|
||||
ports:
|
||||
- port: 4300
|
||||
targetPort: webui-port
|
||||
name: webui
|
||||
- port: 6881
|
||||
targetPort: qbit-tcp
|
||||
name: torrent-tcp
|
||||
protocol: TCP
|
||||
- port: 6881
|
||||
targetPort: qbit-udp
|
||||
name: torrent-udp
|
||||
protocol: UDP
|
||||
---
|
||||
# 4) Ingress (Traefik)
|
||||
apiVersion: networking.k8s.io/v1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
name: qbittorrent
|
||||
namespace: default
|
||||
annotations:
|
||||
traefik.ingress.kubernetes.io/router.entrypoints: web
|
||||
spec:
|
||||
ingressClassName: nginx
|
||||
rules:
|
||||
- host: qbittorrent.haven
|
||||
http:
|
||||
paths:
|
||||
- path: /
|
||||
pathType: Prefix
|
||||
backend:
|
||||
service:
|
||||
name: qbittorrent
|
||||
port:
|
||||
number: 4300
|
||||
@@ -80,7 +80,6 @@ metadata:
|
||||
name: searxng
|
||||
namespace: default
|
||||
spec:
|
||||
ingressClassName: nginx
|
||||
rules:
|
||||
- host: search.haven
|
||||
http:
|
||||
@@ -91,4 +90,4 @@ spec:
|
||||
service:
|
||||
name: searxng
|
||||
port:
|
||||
number: 8080
|
||||
number: 8080
|
||||
|
||||
@@ -99,7 +99,6 @@ metadata:
|
||||
labels:
|
||||
app: stirlingpdf
|
||||
spec:
|
||||
ingressClassName: nginx
|
||||
rules:
|
||||
- host: stirling.haven
|
||||
http:
|
||||
|
||||
@@ -56,7 +56,7 @@ spec:
|
||||
persistentVolumeClaim:
|
||||
claimName: uptimekuma-config
|
||||
---
|
||||
# 2) Service
|
||||
# 2) Service
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
@@ -93,7 +93,6 @@ metadata:
|
||||
name: uptimekuma
|
||||
namespace: default
|
||||
spec:
|
||||
ingressClassName: nginx
|
||||
rules:
|
||||
- host: uptimekuma.haven
|
||||
http:
|
||||
@@ -104,4 +103,4 @@ spec:
|
||||
service:
|
||||
name: uptimekuma
|
||||
port:
|
||||
number: 3001
|
||||
number: 3001
|
||||
|
||||
@@ -110,7 +110,6 @@ metadata:
|
||||
cert-manager.io/cluster-issuer: internal-ca
|
||||
nginx.ingress.kubernetes.io/force-ssl-redirect: "true"
|
||||
spec:
|
||||
ingressClassName: nginx
|
||||
tls:
|
||||
- hosts:
|
||||
- vault.haven
|
||||
@@ -134,7 +133,6 @@ metadata:
|
||||
name: vaultwarden-public
|
||||
namespace: default
|
||||
spec:
|
||||
ingressClassName: nginx
|
||||
rules:
|
||||
- host: vault.ivanch.me
|
||||
http:
|
||||
|
||||
+64
-65
@@ -31,58 +31,58 @@ spec:
|
||||
app: adguardsync
|
||||
spec:
|
||||
containers:
|
||||
- name: adguardsync
|
||||
image: ghcr.io/bakito/adguardhome-sync:latest
|
||||
imagePullPolicy: Always
|
||||
ports:
|
||||
- containerPort: 8080
|
||||
protocol: TCP
|
||||
name: web-port
|
||||
env:
|
||||
- name: CRON
|
||||
value: "0 * * * *"
|
||||
- name: RUN_ON_START
|
||||
value: "true"
|
||||
- name: LOG_LEVEL
|
||||
value: "info"
|
||||
- name: ORIGIN_URL
|
||||
value: "http://adguard.haven"
|
||||
- name: ORIGIN_USERNAME
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: adguardhome-password
|
||||
key: username
|
||||
- name: ORIGIN_PASSWORD
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: adguardhome-password
|
||||
key: password
|
||||
- name: REPLICA1_URL
|
||||
value: "http://adguard2.haven"
|
||||
- name: REPLICA1_USERNAME
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: adguardhome-password
|
||||
key: username
|
||||
- name: REPLICA1_PASSWORD
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: adguardhome-password
|
||||
key: password
|
||||
resources:
|
||||
requests:
|
||||
cpu: 100m
|
||||
memory: 128Mi
|
||||
limits:
|
||||
cpu: 500m
|
||||
memory: 512Mi
|
||||
volumeMounts:
|
||||
- name: adguardsync-storage
|
||||
mountPath: /config
|
||||
- name: adguardsync
|
||||
image: ghcr.io/bakito/adguardhome-sync:latest
|
||||
imagePullPolicy: Always
|
||||
ports:
|
||||
- containerPort: 8080
|
||||
protocol: TCP
|
||||
name: web-port
|
||||
env:
|
||||
- name: CRON
|
||||
value: "0 * * * *"
|
||||
- name: RUN_ON_START
|
||||
value: "true"
|
||||
- name: LOG_LEVEL
|
||||
value: "info"
|
||||
- name: ORIGIN_URL
|
||||
value: "http://adguard.haven"
|
||||
- name: ORIGIN_USERNAME
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: adguardhome-password
|
||||
key: username
|
||||
- name: ORIGIN_PASSWORD
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: adguardhome-password
|
||||
key: password
|
||||
- name: REPLICA1_URL
|
||||
value: "http://adguard2.haven"
|
||||
- name: REPLICA1_USERNAME
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: adguardhome-password
|
||||
key: username
|
||||
- name: REPLICA1_PASSWORD
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: adguardhome-password
|
||||
key: password
|
||||
resources:
|
||||
requests:
|
||||
cpu: 100m
|
||||
memory: 128Mi
|
||||
limits:
|
||||
cpu: 500m
|
||||
memory: 512Mi
|
||||
volumeMounts:
|
||||
- name: adguardsync-storage
|
||||
mountPath: /config
|
||||
volumes:
|
||||
- name: adguardsync-storage
|
||||
persistentVolumeClaim:
|
||||
claimName: adguardsync-pvc
|
||||
- name: adguardsync-storage
|
||||
persistentVolumeClaim:
|
||||
claimName: adguardsync-pvc
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
@@ -94,9 +94,9 @@ spec:
|
||||
selector:
|
||||
app: adguardsync
|
||||
ports:
|
||||
- name: web
|
||||
port: 8080
|
||||
targetPort: 8080
|
||||
- name: web
|
||||
port: 8080
|
||||
targetPort: 8080
|
||||
---
|
||||
apiVersion: networking.k8s.io/v1
|
||||
kind: Ingress
|
||||
@@ -104,15 +104,14 @@ metadata:
|
||||
name: adguardsync-ingress
|
||||
namespace: dns
|
||||
spec:
|
||||
ingressClassName: nginx
|
||||
rules:
|
||||
- host: adguardsync.haven
|
||||
http:
|
||||
paths:
|
||||
- path: /
|
||||
pathType: Prefix
|
||||
backend:
|
||||
service:
|
||||
name: adguardsync-svc
|
||||
port:
|
||||
number: 8080
|
||||
- host: adguardsync.haven
|
||||
http:
|
||||
paths:
|
||||
- path: /
|
||||
pathType: Prefix
|
||||
backend:
|
||||
service:
|
||||
name: adguardsync-svc
|
||||
port:
|
||||
number: 8080
|
||||
|
||||
+86
-88
@@ -31,48 +31,48 @@ spec:
|
||||
app: adguardhome
|
||||
spec:
|
||||
containers:
|
||||
- name: adguardhome
|
||||
image: adguard/adguardhome:latest
|
||||
imagePullPolicy: Always
|
||||
ports:
|
||||
- containerPort: 53
|
||||
protocol: TCP
|
||||
- containerPort: 53
|
||||
protocol: UDP
|
||||
- containerPort: 3000
|
||||
protocol: TCP
|
||||
name: install-port
|
||||
- containerPort: 80
|
||||
protocol: TCP
|
||||
name: web-port
|
||||
resources:
|
||||
requests:
|
||||
cpu: 100m
|
||||
memory: 128Mi
|
||||
limits:
|
||||
cpu: 1000m
|
||||
memory: 2Gi
|
||||
livenessProbe:
|
||||
httpGet:
|
||||
path: /
|
||||
port: 80
|
||||
initialDelaySeconds: 30
|
||||
periodSeconds: 10
|
||||
readinessProbe:
|
||||
httpGet:
|
||||
path: /
|
||||
port: 80
|
||||
initialDelaySeconds: 5
|
||||
periodSeconds: 5
|
||||
volumeMounts:
|
||||
- name: adguardhome-storage
|
||||
mountPath: /opt/adguardhome/work
|
||||
- name: adguardhome-storage
|
||||
mountPath: /opt/adguardhome/conf
|
||||
- name: adguardhome
|
||||
image: adguard/adguardhome:latest
|
||||
imagePullPolicy: Always
|
||||
ports:
|
||||
- containerPort: 53
|
||||
protocol: TCP
|
||||
- containerPort: 53
|
||||
protocol: UDP
|
||||
- containerPort: 3000
|
||||
protocol: TCP
|
||||
name: install-port
|
||||
- containerPort: 80
|
||||
protocol: TCP
|
||||
name: web-port
|
||||
resources:
|
||||
requests:
|
||||
cpu: 100m
|
||||
memory: 128Mi
|
||||
limits:
|
||||
cpu: 1000m
|
||||
memory: 2Gi
|
||||
livenessProbe:
|
||||
httpGet:
|
||||
path: /
|
||||
port: 80
|
||||
initialDelaySeconds: 30
|
||||
periodSeconds: 10
|
||||
readinessProbe:
|
||||
httpGet:
|
||||
path: /
|
||||
port: 80
|
||||
initialDelaySeconds: 5
|
||||
periodSeconds: 5
|
||||
volumeMounts:
|
||||
- name: adguardhome-storage
|
||||
mountPath: /opt/adguardhome/work
|
||||
- name: adguardhome-storage
|
||||
mountPath: /opt/adguardhome/conf
|
||||
volumes:
|
||||
- name: adguardhome-storage
|
||||
persistentVolumeClaim:
|
||||
claimName: adguardhome-pvc
|
||||
- name: adguardhome-storage
|
||||
persistentVolumeClaim:
|
||||
claimName: adguardhome-pvc
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
@@ -85,17 +85,17 @@ spec:
|
||||
app: adguardhome
|
||||
loadBalancerIP: 192.168.20.200
|
||||
ports:
|
||||
- name: dns-tcp
|
||||
port: 53
|
||||
targetPort: 53
|
||||
protocol: TCP
|
||||
- name: dns-udp
|
||||
port: 53
|
||||
targetPort: 53
|
||||
protocol: UDP
|
||||
- name: web
|
||||
port: 80
|
||||
targetPort: 80
|
||||
- name: dns-tcp
|
||||
port: 53
|
||||
targetPort: 53
|
||||
protocol: TCP
|
||||
- name: dns-udp
|
||||
port: 53
|
||||
targetPort: 53
|
||||
protocol: UDP
|
||||
- name: web
|
||||
port: 80
|
||||
targetPort: 80
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
@@ -108,17 +108,17 @@ spec:
|
||||
app: adguardhome
|
||||
loadBalancerIP: 192.168.15.200
|
||||
ports:
|
||||
- name: dns-tcp
|
||||
port: 53
|
||||
targetPort: 53
|
||||
protocol: TCP
|
||||
- name: dns-udp
|
||||
port: 53
|
||||
targetPort: 53
|
||||
protocol: UDP
|
||||
- name: web
|
||||
port: 80
|
||||
targetPort: 80
|
||||
- name: dns-tcp
|
||||
port: 53
|
||||
targetPort: 53
|
||||
protocol: TCP
|
||||
- name: dns-udp
|
||||
port: 53
|
||||
targetPort: 53
|
||||
protocol: UDP
|
||||
- name: web
|
||||
port: 80
|
||||
targetPort: 80
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
@@ -130,9 +130,9 @@ spec:
|
||||
selector:
|
||||
app: adguardhome
|
||||
ports:
|
||||
- name: install
|
||||
port: 3000
|
||||
targetPort: 3000
|
||||
- name: install
|
||||
port: 3000
|
||||
targetPort: 3000
|
||||
---
|
||||
apiVersion: networking.k8s.io/v1
|
||||
kind: Ingress
|
||||
@@ -140,18 +140,17 @@ metadata:
|
||||
name: adguardhome-ingress
|
||||
namespace: dns
|
||||
spec:
|
||||
ingressClassName: nginx
|
||||
rules:
|
||||
- host: adguard.haven
|
||||
http:
|
||||
paths:
|
||||
- path: /
|
||||
pathType: Prefix
|
||||
backend:
|
||||
service:
|
||||
name: adguardhome-svc
|
||||
port:
|
||||
number: 80
|
||||
- host: adguard.haven
|
||||
http:
|
||||
paths:
|
||||
- path: /
|
||||
pathType: Prefix
|
||||
backend:
|
||||
service:
|
||||
name: adguardhome-svc
|
||||
port:
|
||||
number: 80
|
||||
---
|
||||
apiVersion: networking.k8s.io/v1
|
||||
kind: Ingress
|
||||
@@ -159,15 +158,14 @@ metadata:
|
||||
name: adguardhome-install-ingress
|
||||
namespace: dns
|
||||
spec:
|
||||
ingressClassName: nginx
|
||||
rules:
|
||||
- host: install.adguard.haven
|
||||
http:
|
||||
paths:
|
||||
- path: /
|
||||
pathType: Prefix
|
||||
backend:
|
||||
service:
|
||||
name: adguard-install-svc
|
||||
port:
|
||||
number: 3000
|
||||
- host: install.adguard.haven
|
||||
http:
|
||||
paths:
|
||||
- path: /
|
||||
pathType: Prefix
|
||||
backend:
|
||||
service:
|
||||
name: adguard-install-svc
|
||||
port:
|
||||
number: 3000
|
||||
|
||||
@@ -26,7 +26,7 @@ spec:
|
||||
- amd64
|
||||
containers:
|
||||
- name: beszel
|
||||
image: ghcr.io/henrygd/beszel/beszel:0.18.7
|
||||
image: ghcr.io/henrygd/beszel/beszel:0.18.8
|
||||
imagePullPolicy: Always
|
||||
ports:
|
||||
- containerPort: 8090
|
||||
@@ -83,7 +83,6 @@ metadata:
|
||||
name: beszel
|
||||
namespace: infra
|
||||
spec:
|
||||
ingressClassName: nginx
|
||||
rules:
|
||||
- host: beszel.haven
|
||||
http:
|
||||
|
||||
@@ -19,7 +19,7 @@ spec:
|
||||
kubernetes.io/arch: amd64
|
||||
containers:
|
||||
- name: bitwarden-cli
|
||||
image: ghcr.io/charlesthomas/bitwarden-cli:2026.3.0
|
||||
image: ghcr.io/charlesthomas/bitwarden-cli:2026.7.0
|
||||
imagePullPolicy: IfNotPresent
|
||||
# Override the baked entrypoint so --disable-origin-protection is
|
||||
# actually passed (it was commented out in the image's entrypoint.sh,
|
||||
|
||||
@@ -99,7 +99,6 @@ metadata:
|
||||
name: code-config
|
||||
namespace: infra
|
||||
spec:
|
||||
ingressClassName: nginx
|
||||
rules:
|
||||
- host: code-config.haven
|
||||
http:
|
||||
|
||||
@@ -0,0 +1,26 @@
|
||||
apiVersion: helm.cattle.io/v1
|
||||
kind: HelmChart
|
||||
metadata:
|
||||
name: csi-driver-nfs
|
||||
namespace: infra
|
||||
spec:
|
||||
repo: https://kubernetes-csi.github.io/csi-driver-nfs
|
||||
chart: csi-driver-nfs
|
||||
version: 4.13.4
|
||||
targetNamespace: infra
|
||||
valuesContent: |-
|
||||
controller:
|
||||
replicas: 1
|
||||
logLevel: 5
|
||||
defaultOnDeletePolicy: retain
|
||||
storageClasses:
|
||||
- name: nfs-client
|
||||
annotations:
|
||||
storageclass.kubernetes.io/is-default-class: "true"
|
||||
parameters:
|
||||
server: nfs-config.haven
|
||||
share: /export/config
|
||||
subDir: ${pvc.metadata.namespace}/${pvc.metadata.name}
|
||||
onDelete: retain
|
||||
reclaimPolicy: Retain
|
||||
volumeBindingMode: Immediate
|
||||
@@ -0,0 +1,11 @@
|
||||
apiVersion: helm.cattle.io/v1
|
||||
kind: HelmChart
|
||||
metadata:
|
||||
name: external-secrets
|
||||
namespace: kube-system
|
||||
spec:
|
||||
repo: https://charts.external-secrets.io
|
||||
chart: external-secrets
|
||||
version: 2.7.0
|
||||
targetNamespace: external-secrets
|
||||
createNamespace: true
|
||||
@@ -115,7 +115,6 @@ metadata:
|
||||
nginx.ingress.kubernetes.io/enable-cors: "true"
|
||||
nginx.ingress.kubernetes.io/cors-allow-origin: "*"
|
||||
spec:
|
||||
ingressClassName: nginx
|
||||
rules:
|
||||
- host: file-nginx.haven
|
||||
http:
|
||||
|
||||
@@ -72,7 +72,6 @@ metadata:
|
||||
name: haven-notify
|
||||
namespace: infra
|
||||
spec:
|
||||
ingressClassName: nginx
|
||||
rules:
|
||||
- host: notify.haven
|
||||
http:
|
||||
|
||||
@@ -1,33 +0,0 @@
|
||||
apiVersion: helm.cattle.io/v1
|
||||
kind: HelmChart
|
||||
metadata:
|
||||
name: ingress-nginx
|
||||
namespace: kube-system
|
||||
spec:
|
||||
repo: https://kubernetes.github.io/ingress-nginx
|
||||
chart: ingress-nginx
|
||||
version: 4.x.x
|
||||
targetNamespace: ingress-nginx
|
||||
valuesContent: |-
|
||||
controller:
|
||||
replicaCount: 2
|
||||
ingressClassResource:
|
||||
name: nginx
|
||||
enabled: true
|
||||
default: true
|
||||
controllerValue: "k8s.io/ingress-nginx"
|
||||
ingressClass: nginx
|
||||
service:
|
||||
type: LoadBalancer
|
||||
externalTrafficPolicy: Local
|
||||
annotations:
|
||||
metallb.io/ip-allocated-from-pool: default-pool
|
||||
metallb.io/loadBalancerIPs: "192.168.20.204"
|
||||
loadBalancerIP: 192.168.20.204
|
||||
resources:
|
||||
requests:
|
||||
cpu: 100m
|
||||
memory: 90Mi
|
||||
limits:
|
||||
cpu: 1000m
|
||||
memory: 256Mi
|
||||
@@ -0,0 +1,32 @@
|
||||
apiVersion: helm.cattle.io/v1
|
||||
kind: HelmChart
|
||||
metadata:
|
||||
name: traefik
|
||||
namespace: kube-system
|
||||
spec:
|
||||
repo: https://traefik.github.io/charts
|
||||
chart: traefik
|
||||
version: 41.2.0
|
||||
targetNamespace: traefik
|
||||
createNamespace: true
|
||||
valuesContent: |-
|
||||
deployment:
|
||||
replicas: 2
|
||||
ingressClass:
|
||||
enabled: true
|
||||
isDefaultClass: true
|
||||
name: traefik
|
||||
service:
|
||||
annotations:
|
||||
metallb.io/ip-allocated-from-pool: default-pool
|
||||
metallb.io/loadBalancerIPs: "192.168.20.204"
|
||||
spec:
|
||||
type: LoadBalancer
|
||||
externalTrafficPolicy: Local
|
||||
resources:
|
||||
requests:
|
||||
cpu: 100m
|
||||
memory: 90Mi
|
||||
limits:
|
||||
cpu: 1000m
|
||||
memory: 256Mi
|
||||
@@ -113,7 +113,6 @@ metadata:
|
||||
name: wg-easy-ingress
|
||||
namespace: infra
|
||||
spec:
|
||||
ingressClassName: nginx
|
||||
rules:
|
||||
- host: vpn.haven
|
||||
http:
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
apiVersion: helm.cattle.io/v1
|
||||
kind: HelmChart
|
||||
metadata:
|
||||
name: metallb
|
||||
namespace: kube-system
|
||||
spec:
|
||||
repo: https://metallb.github.io/metallb
|
||||
chart: metallb
|
||||
version: 0.15.2
|
||||
targetNamespace: metallb-system
|
||||
@@ -94,7 +94,6 @@ metadata:
|
||||
namespace: monitoring
|
||||
name: grafana
|
||||
spec:
|
||||
ingressClassName: nginx
|
||||
rules:
|
||||
- host: grafana.haven
|
||||
http:
|
||||
@@ -113,7 +112,6 @@ metadata:
|
||||
namespace: monitoring
|
||||
name: grafana-public
|
||||
spec:
|
||||
ingressClassName: nginx
|
||||
rules:
|
||||
- host: grafanah.ivanch.me
|
||||
http:
|
||||
|
||||
@@ -0,0 +1,23 @@
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: argocd-cm
|
||||
namespace: argocd
|
||||
labels:
|
||||
app.kubernetes.io/name: argocd-cm
|
||||
app.kubernetes.io/part-of: argocd
|
||||
data:
|
||||
accounts.api: apiKey
|
||||
accounts.api.enabled: "true"
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: argocd-rbac-cm
|
||||
namespace: argocd
|
||||
labels:
|
||||
app.kubernetes.io/name: argocd-rbac-cm
|
||||
app.kubernetes.io/part-of: argocd
|
||||
data:
|
||||
policy.csv: |
|
||||
g, api, role:readonly
|
||||
@@ -4,7 +4,6 @@ metadata:
|
||||
name: argocd-server
|
||||
namespace: argocd
|
||||
spec:
|
||||
ingressClassName: nginx
|
||||
rules:
|
||||
- host: argocd.haven
|
||||
http:
|
||||
|
||||
@@ -9,3 +9,4 @@ resources:
|
||||
|
||||
patches:
|
||||
- path: server-insecure-patch.yaml
|
||||
- path: argocd-api-user.yaml
|
||||
|
||||
@@ -70,13 +70,6 @@ kind: Namespace
|
||||
metadata:
|
||||
name: metallb-system
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Namespace
|
||||
metadata:
|
||||
name: nfs-provisioner
|
||||
labels:
|
||||
name: nfs-provisioner
|
||||
---
|
||||
# ==============================================================================
|
||||
# Observability & Monitoring
|
||||
# ==============================================================================
|
||||
|
||||
@@ -1,48 +0,0 @@
|
||||
apiVersion: external-secrets.io/v1
|
||||
kind: ExternalSecret
|
||||
metadata: { name: radarr, namespace: media }
|
||||
spec:
|
||||
refreshInterval: 1h
|
||||
target:
|
||||
name: radarr-secret
|
||||
deletionPolicy: Retain
|
||||
template:
|
||||
type: Opaque
|
||||
data:
|
||||
Radarr__Postgres__User: "{{ .Radarr__Postgres__User }}"
|
||||
Radarr__Postgres__Password: "{{ .Radarr__Postgres__Password }}"
|
||||
Radarr__Postgres__Host: "{{ .Radarr__Postgres__Host }}"
|
||||
Radarr__Postgres__MainDb: "{{ .Radarr__Postgres__MainDb }}"
|
||||
data:
|
||||
- secretKey: Radarr__Postgres__User
|
||||
remoteRef:
|
||||
{
|
||||
key: ab723b65-3ec8-469c-b01d-67a6e3049023,
|
||||
property: username,
|
||||
}
|
||||
sourceRef:
|
||||
{ storeRef: { name: bitwarden-login, kind: ClusterSecretStore } }
|
||||
- secretKey: Radarr__Postgres__Password
|
||||
remoteRef:
|
||||
{
|
||||
key: ab723b65-3ec8-469c-b01d-67a6e3049023,
|
||||
property: password,
|
||||
}
|
||||
sourceRef:
|
||||
{ storeRef: { name: bitwarden-login, kind: ClusterSecretStore } }
|
||||
- secretKey: Radarr__Postgres__Host
|
||||
remoteRef:
|
||||
{
|
||||
key: ab723b65-3ec8-469c-b01d-67a6e3049023,
|
||||
property: Radarr__Postgres__Host,
|
||||
}
|
||||
sourceRef:
|
||||
{ storeRef: { name: bitwarden-fields, kind: ClusterSecretStore } }
|
||||
- secretKey: Radarr__Postgres__MainDb
|
||||
remoteRef:
|
||||
{
|
||||
key: ab723b65-3ec8-469c-b01d-67a6e3049023,
|
||||
property: Radarr__Postgres__MainDb,
|
||||
}
|
||||
sourceRef:
|
||||
{ storeRef: { name: bitwarden-fields, kind: ClusterSecretStore } }
|
||||
@@ -1,27 +0,0 @@
|
||||
apiVersion: external-secrets.io/v1
|
||||
kind: ExternalSecret
|
||||
metadata: { name: recommender, namespace: media }
|
||||
spec:
|
||||
refreshInterval: 1h
|
||||
target:
|
||||
name: recommender-secrets
|
||||
deletionPolicy: Retain
|
||||
template:
|
||||
type: Opaque
|
||||
data:
|
||||
OPENAI_API_KEY: "{{ .OPENAI_API_KEY }}"
|
||||
DATABASE_URL: "{{ .DATABASE_URL }}"
|
||||
data:
|
||||
- secretKey: OPENAI_API_KEY
|
||||
remoteRef:
|
||||
{
|
||||
key: 5079ef6f-3d1d-4522-b22c-6dd5f1c19acd,
|
||||
property: OPENAI_API_KEY,
|
||||
}
|
||||
sourceRef:
|
||||
{ storeRef: { name: bitwarden-fields, kind: ClusterSecretStore } }
|
||||
- secretKey: DATABASE_URL
|
||||
remoteRef:
|
||||
{ key: 5079ef6f-3d1d-4522-b22c-6dd5f1c19acd, property: DATABASE_URL }
|
||||
sourceRef:
|
||||
{ storeRef: { name: bitwarden-fields, kind: ClusterSecretStore } }
|
||||
@@ -1,42 +0,0 @@
|
||||
apiVersion: external-secrets.io/v1
|
||||
kind: ExternalSecret
|
||||
metadata: { name: sonarr, namespace: media }
|
||||
spec:
|
||||
refreshInterval: 1h
|
||||
target:
|
||||
name: sonarr-secret
|
||||
deletionPolicy: Retain
|
||||
template:
|
||||
type: Opaque
|
||||
data:
|
||||
Sonarr__Postgres__User: "{{ .Sonarr__Postgres__User }}"
|
||||
Sonarr__Postgres__Password: "{{ .Sonarr__Postgres__Password }}"
|
||||
Sonarr__Postgres__Host: "{{ .Sonarr__Postgres__Host }}"
|
||||
Sonarr__Postgres__MainDb: "{{ .Sonarr__Postgres__MainDb }}"
|
||||
data:
|
||||
- secretKey: Sonarr__Postgres__User
|
||||
remoteRef:
|
||||
{ key: 2c5b6d27-971f-4876-b10d-db400dfde7b2, property: username }
|
||||
sourceRef:
|
||||
{ storeRef: { name: bitwarden-login, kind: ClusterSecretStore } }
|
||||
- secretKey: Sonarr__Postgres__Password
|
||||
remoteRef:
|
||||
{ key: 2c5b6d27-971f-4876-b10d-db400dfde7b2, property: password }
|
||||
sourceRef:
|
||||
{ storeRef: { name: bitwarden-login, kind: ClusterSecretStore } }
|
||||
- secretKey: Sonarr__Postgres__Host
|
||||
remoteRef:
|
||||
{
|
||||
key: 2c5b6d27-971f-4876-b10d-db400dfde7b2,
|
||||
property: Sonarr__Postgres__Host,
|
||||
}
|
||||
sourceRef:
|
||||
{ storeRef: { name: bitwarden-fields, kind: ClusterSecretStore } }
|
||||
- secretKey: Sonarr__Postgres__MainDb
|
||||
remoteRef:
|
||||
{
|
||||
key: 2c5b6d27-971f-4876-b10d-db400dfde7b2,
|
||||
property: Sonarr__Postgres__MainDb,
|
||||
}
|
||||
sourceRef:
|
||||
{ storeRef: { name: bitwarden-fields, kind: ClusterSecretStore } }
|
||||
@@ -1,17 +0,0 @@
|
||||
#!/bin/bash
|
||||
# Dry-run validate every app manifest in apps/default/ against live cluster
|
||||
export KUBECONFIG="C:\\Users\\ivanch\\.kube\\config"
|
||||
cd "C:/Users/ivanch/Desktop/gitops-draft" || exit 1
|
||||
fail=0
|
||||
for f in apps/default/*.yaml; do
|
||||
out=$(kubectl.exe apply --dry-run=server -f "$f" 2>&1)
|
||||
if echo "$out" | grep -qi "error"; then
|
||||
echo "FAIL: $f"
|
||||
echo "$out" | grep -i error | head -2
|
||||
fail=1
|
||||
else
|
||||
echo "OK: $f"
|
||||
fi
|
||||
done
|
||||
[ $fail -eq 0 ] && echo "ALL apps/default dry-runs clean"
|
||||
exit $fail
|
||||
Reference in New Issue
Block a user