Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
371ab10252 |
@@ -31,17 +31,6 @@ AUTHENTIK_BOOTSTRAP_TOKEN=
|
|||||||
# openssl rand -base64 24
|
# openssl rand -base64 24
|
||||||
AUTHENTIK_PG_PASSWORD=
|
AUTHENTIK_PG_PASSWORD=
|
||||||
|
|
||||||
# ── ZITADEL (Authentik replacement) ─────────────────────────────────────────────
|
|
||||||
# Instance URL, same hostname as the OIDC issuer.
|
|
||||||
ZITADEL_URL="https://zitadel.riotpiao.com"
|
|
||||||
|
|
||||||
# PAT of the 'iam-admin' machine user, created by the chart's setup job on the
|
|
||||||
# first sync. Leave empty until then. Read it with:
|
|
||||||
# kubectl -n iam get secret iam-admin-pat -o jsonpath='{.data.pat}' | base64 -d
|
|
||||||
# scripts/iam/zitadel-provision.py reads this variable first, then the cluster
|
|
||||||
# Secret. The masterkey and the client secrets never live in this file.
|
|
||||||
ZITADEL_BOOTSTRAP_TOKEN=
|
|
||||||
|
|
||||||
# ── MinIO ──────────────────────────────────────────────────────────────────────
|
# ── MinIO ──────────────────────────────────────────────────────────────────────
|
||||||
MINIO_ROOT_USER=
|
MINIO_ROOT_USER=
|
||||||
MINIO_ROOT_PASSWORD=
|
MINIO_ROOT_PASSWORD=
|
||||||
|
|||||||
-12
@@ -47,11 +47,6 @@ k8s/storage/test/test
|
|||||||
terraform/.terraform/
|
terraform/.terraform/
|
||||||
terraform/*.tfstate
|
terraform/*.tfstate
|
||||||
terraform/*.tfstate.*
|
terraform/*.tfstate.*
|
||||||
# The Zitadel root module keeps its own state (see terraform/zitadel/providers.tf).
|
|
||||||
# That state carries generated client secrets and machine keys.
|
|
||||||
terraform/zitadel/*.tfstate
|
|
||||||
terraform/zitadel/*.tfstate.*
|
|
||||||
terraform/zitadel/*.tfvars
|
|
||||||
terraform.tfvars.local
|
terraform.tfvars.local
|
||||||
skills-lock.json
|
skills-lock.json
|
||||||
secrets-plaintext.yaml
|
secrets-plaintext.yaml
|
||||||
@@ -74,10 +69,3 @@ k8s/**/*-secret.yaml
|
|||||||
|
|
||||||
# IAM provisioning scripts contain credential references — never commit
|
# IAM provisioning scripts contain credential references — never commit
|
||||||
scripts/iam/*.py
|
scripts/iam/*.py
|
||||||
# Exception: this one reads every credential from the cluster at run time and
|
|
||||||
# embeds none. Keep it reviewable in git.
|
|
||||||
!scripts/iam/zitadel-provision.py
|
|
||||||
|
|
||||||
# Runtime credential export from the old Authentik provisioning run. Holds live
|
|
||||||
# M2M tokens; never commit it.
|
|
||||||
/authentik-m2m-tokens.env
|
|
||||||
|
|||||||
@@ -2,5 +2,4 @@ creation_rules:
|
|||||||
# `secrets?` — singular too. A `seed-repo-secret.yaml` once slipped this regex
|
# `secrets?` — singular too. A `seed-repo-secret.yaml` once slipped this regex
|
||||||
# and was committed in plaintext to a public remote.
|
# and was committed in plaintext to a public remote.
|
||||||
- path_regex: k8s/.*secrets?.*\.ya?ml
|
- path_regex: k8s/.*secrets?.*\.ya?ml
|
||||||
encrypted_regex: ^(data|stringData)$
|
|
||||||
age: age1e5fq3hwxy78psus2nfvmtmua36g0u3suk78ephw6246l974d2utsvn0hla
|
age: age1e5fq3hwxy78psus2nfvmtmua36g0u3suk78ephw6246l974d2utsvn0hla
|
||||||
|
|||||||
@@ -0,0 +1,206 @@
|
|||||||
|
# Authentik Auth Integration for NextJS
|
||||||
|
|
||||||
|
## Current State
|
||||||
|
|
||||||
|
### Gateway Auth Status
|
||||||
|
|
||||||
|
| Endpoint | Auth Status | Notes |
|
||||||
|
|----------|-------------|-------|
|
||||||
|
| `/v1/chat/completions` | ❌ **OFF** | LLM routes have no auth middleware |
|
||||||
|
| `/v1/embeddings` | ❌ **OFF** | Same - no auth |
|
||||||
|
| `/v1/rerank` | ❌ **OFF** | Same - no auth |
|
||||||
|
| `X-Service: sqs` | ✅ **ON** | JWT validated via `internal/auth/jwt.go` |
|
||||||
|
| `/workflow` | ❌ **OFF** | Pass-through to Temporal |
|
||||||
|
|
||||||
|
**Auth module exists** at `homelab-frontend/internal/auth/jwt.go` but only wired for SQS.
|
||||||
|
LLM routes in `internal/proxy/proxy.go` have no auth middleware.
|
||||||
|
|
||||||
|
### Authentik App
|
||||||
|
|
||||||
|
Authentik app `local-llm` exists for LLM API auth:
|
||||||
|
- **Client ID**: `local-llm`
|
||||||
|
- **Client Secret**: `kubectl -n llm-serving get secret local-llm-jwt -o jsonpath='{.data.client-secret}' | base64 -d`
|
||||||
|
- **Token endpoint**: `https://authentik.riotpiao.com/application/o/token/`
|
||||||
|
- **Userinfo endpoint**: `https://authentik.riotpiao.com/application/o/userinfo/`
|
||||||
|
- **OIDC discovery**: `https://authentik.riotpiao.com/application/o/local-llm/.well-known/openid-configuration`
|
||||||
|
|
||||||
|
## Sign-in Methods
|
||||||
|
|
||||||
|
### 1. Resource Owner Password Credentials (ROPC)
|
||||||
|
|
||||||
|
Direct username/password login. Server-side only (needs client_secret).
|
||||||
|
|
||||||
|
```typescript
|
||||||
|
// API Route: app/api/auth/login/route.ts
|
||||||
|
const response = await fetch('https://authentik.riotpiao.com/application/o/token/', {
|
||||||
|
method: 'POST',
|
||||||
|
headers: { 'Content-Type': 'application/x-www-form-urlencoded' },
|
||||||
|
body: new URLSearchParams({
|
||||||
|
grant_type: 'password',
|
||||||
|
client_id: 'local-llm',
|
||||||
|
client_secret: process.env.AUTHENTIK_CLIENT_SECRET,
|
||||||
|
username: '[email protected]',
|
||||||
|
password: 'userpassword',
|
||||||
|
scope: 'openid email profile groups',
|
||||||
|
}),
|
||||||
|
});
|
||||||
|
|
||||||
|
const tokens = await response.json();
|
||||||
|
// { access_token, refresh_token, expires_in, token_type }
|
||||||
|
```
|
||||||
|
|
||||||
|
### 2. Authorization Code Flow (Browser Redirect)
|
||||||
|
|
||||||
|
Requires adding redirect URIs to `local-llm` Authentik app:
|
||||||
|
|
||||||
|
```python
|
||||||
|
# In k8s/infra/iam/scripts/authentik-provision.py, update:
|
||||||
|
"local-llm": {
|
||||||
|
...
|
||||||
|
"redirect_uris": [
|
||||||
|
"http://localhost:3000/api/auth/callback", # dev
|
||||||
|
"https://your-nextjs-app.com/api/auth/callback", # prod
|
||||||
|
],
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
Then standard OIDC flow:
|
||||||
|
1. Redirect to `https://authentik.riotpiao.com/application/o/authorize/?client_id=local-llm&redirect_uri=...&response_type=code&scope=openid email profile groups`
|
||||||
|
2. User logs in via Authentik UI
|
||||||
|
3. Callback receives `code`, exchange for tokens
|
||||||
|
|
||||||
|
## JWT Token Persistence
|
||||||
|
|
||||||
|
### Browser (localStorage)
|
||||||
|
|
||||||
|
```typescript
|
||||||
|
const TOKEN_KEY = 'llm_auth_token';
|
||||||
|
|
||||||
|
// Save
|
||||||
|
localStorage.setItem(TOKEN_KEY, JSON.stringify({
|
||||||
|
access_token: tokens.access_token,
|
||||||
|
refresh_token: tokens.refresh_token,
|
||||||
|
expires_at: Date.now() + tokens.expires_in * 1000,
|
||||||
|
}));
|
||||||
|
|
||||||
|
// Load
|
||||||
|
const stored = JSON.parse(localStorage.getItem(TOKEN_KEY) || 'null');
|
||||||
|
if (stored && stored.expires_at > Date.now()) {
|
||||||
|
// Token valid
|
||||||
|
}
|
||||||
|
|
||||||
|
// Clear (logout)
|
||||||
|
localStorage.removeItem(TOKEN_KEY);
|
||||||
|
```
|
||||||
|
|
||||||
|
### Server-side (HTTP-only cookies)
|
||||||
|
|
||||||
|
```typescript
|
||||||
|
// app/api/auth/login/route.ts
|
||||||
|
import { cookies } from 'next/headers';
|
||||||
|
|
||||||
|
// After successful login
|
||||||
|
cookies().set('llm_auth_token', JSON.stringify(tokens), {
|
||||||
|
httpOnly: true,
|
||||||
|
secure: process.env.NODE_ENV === 'production',
|
||||||
|
sameSite: 'lax',
|
||||||
|
maxAge: tokens.expires_in,
|
||||||
|
path: '/',
|
||||||
|
});
|
||||||
|
|
||||||
|
// Read in middleware or API routes
|
||||||
|
const tokenCookie = cookies().get('llm_auth_token');
|
||||||
|
const tokens = JSON.parse(tokenCookie?.value || 'null');
|
||||||
|
```
|
||||||
|
|
||||||
|
## Token Refresh
|
||||||
|
|
||||||
|
```typescript
|
||||||
|
async function refreshAccessToken(refresh_token: string) {
|
||||||
|
const response = await fetch('https://authentik.riotpiao.com/application/o/token/', {
|
||||||
|
method: 'POST',
|
||||||
|
headers: { 'Content-Type': 'application/x-www-form-urlencoded' },
|
||||||
|
body: new URLSearchParams({
|
||||||
|
grant_type: 'refresh_token',
|
||||||
|
client_id: 'local-llm',
|
||||||
|
client_secret: process.env.AUTHENTIK_CLIENT_SECRET,
|
||||||
|
refresh_token,
|
||||||
|
}),
|
||||||
|
});
|
||||||
|
return response.json();
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
## Environment Variables
|
||||||
|
|
||||||
|
```bash
|
||||||
|
# .env.local
|
||||||
|
AUTHENTIK_URL=https://authentik.riotpiao.com
|
||||||
|
AUTHENTIK_CLIENT_ID=local-llm
|
||||||
|
AUTHENTIK_CLIENT_SECRET=<from-secret>
|
||||||
|
|
||||||
|
# For client-side (public)
|
||||||
|
NEXT_PUBLIC_AUTHENTIK_URL=https://authentik.riotpiao.com
|
||||||
|
NEXT_PUBLIC_AUTHENTIK_CLIENT_ID=local-llm
|
||||||
|
```
|
||||||
|
|
||||||
|
## Using Token with LLM API
|
||||||
|
|
||||||
|
```typescript
|
||||||
|
const token = await getValidToken(); // from localStorage or cookie
|
||||||
|
|
||||||
|
const response = await fetch('https://api.riotpiao.com/v1/chat/completions', {
|
||||||
|
method: 'POST',
|
||||||
|
headers: {
|
||||||
|
'Content-Type': 'application/json',
|
||||||
|
'Authorization': `Bearer ${token}`, // JWT from Authentik
|
||||||
|
},
|
||||||
|
body: JSON.stringify({
|
||||||
|
model: 'reasoning',
|
||||||
|
messages: [{ role: 'user', content: 'Hello' }],
|
||||||
|
}),
|
||||||
|
});
|
||||||
|
```
|
||||||
|
|
||||||
|
## TODO
|
||||||
|
|
||||||
|
### Gateway-side (homelab-frontend)
|
||||||
|
|
||||||
|
- [ ] Wire `internal/auth/jwt.go` into LLM proxy handler (`internal/proxy/proxy.go`)
|
||||||
|
- [ ] Add `authRequired: true` to model config or create LLM-specific middleware
|
||||||
|
- [ ] Example pattern from SQS (in `internal/serviceadapter/router.go`):
|
||||||
|
|
||||||
|
```go
|
||||||
|
// In proxy.go ServeHTTP, before dispatching to LLM upstream:
|
||||||
|
if strings.HasPrefix(r.URL.Path, "/v1/") {
|
||||||
|
authHeader := r.Header.Get("Authorization")
|
||||||
|
claims, err := llmJWTAuth.ValidateBearerToken(authHeader)
|
||||||
|
if err != nil {
|
||||||
|
// Return 401/403
|
||||||
|
}
|
||||||
|
if !llmJWTAuth.CheckPermissions(claims, "llm:inference", "*") {
|
||||||
|
// Return 403 insufficient permissions
|
||||||
|
}
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
### Authentik-side
|
||||||
|
|
||||||
|
- [ ] Enable ROPC grant in Authentik provider settings (if not already)
|
||||||
|
- [ ] Add redirect URIs to `local-llm` app if browser OAuth flow needed:
|
||||||
|
|
||||||
|
```python
|
||||||
|
# k8s/infra/iam/scripts/authentik-provision.py
|
||||||
|
"local-llm": {
|
||||||
|
...
|
||||||
|
"redirect_uris": [
|
||||||
|
"http://localhost:3000/api/auth/callback",
|
||||||
|
"https://your-app.com/api/auth/callback",
|
||||||
|
],
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
### NextJS-side
|
||||||
|
|
||||||
|
- [ ] Until gateway auth is wired, LLM API works without token
|
||||||
|
- [ ] Once wired, add `Authorization: Bearer <token>` to all LLM requests
|
||||||
@@ -1,37 +0,0 @@
|
|||||||
{
|
|
||||||
"schema_version": 1,
|
|
||||||
"diagram_type": "architecture",
|
|
||||||
"meta": {
|
|
||||||
"title": "Poimen Memory — Schema Relations",
|
|
||||||
"quality_profile": "showcase",
|
|
||||||
"viewBox": [900, 480]
|
|
||||||
},
|
|
||||||
"components": [
|
|
||||||
{ "id": "node", "type": "database", "label": "memory_node", "sublabel": "Episodes (raw messages)", "pos": [40, 60], "size": [150, 55], "tag": "BIGSERIAL" },
|
|
||||||
{ "id": "entity", "type": "database", "label": "memory_entity", "sublabel": "Extracted entities", "pos": [260, 60], "size": [150, 55], "tag": "UUID" },
|
|
||||||
{ "id": "edge", "type": "database", "label": "memory_edge", "sublabel": "Facts / relationships", "pos": [480, 60], "size": [150, 55], "tag": "UUID" },
|
|
||||||
{ "id": "community", "type": "database", "label": "memory_community", "sublabel": "Entity clusters", "pos": [700, 60], "size": [150, 55], "tag": "UUID" },
|
|
||||||
{ "id": "pgvector", "type": "cloud", "label": "pgvector HNSW", "sublabel": "768-dim cosine search", "pos": [140, 260], "size": [160, 55], "tag": "nomic-embed-v2" },
|
|
||||||
{ "id": "tsvector", "type": "cloud", "label": "pg ts_rank", "sublabel": "Full-text search", "pos": [400, 260], "size": [160, 55], "tag": "GIN index" },
|
|
||||||
{ "id": "tenant", "type": "security", "label": "tenant_id", "sublabel": "Multi-tenant isolation", "pos": [660, 260], "size": [140, 55], "tag": "W7 / mig 014" }
|
|
||||||
],
|
|
||||||
"boundaries": [
|
|
||||||
{ "kind": "region", "label": "Temporal Knowledge Graph (Zep §2)", "wraps": ["node", "entity", "edge", "community"] },
|
|
||||||
{ "kind": "security-group", "label": "Search & Isolation", "wraps": ["pgvector", "tsvector", "tenant"] }
|
|
||||||
],
|
|
||||||
"connections": [
|
|
||||||
{ "id": "node-entity", "from": "node", "to": "entity", "variant": "emphasis" },
|
|
||||||
{ "id": "entity-edge", "from": "entity", "to": "edge", "variant": "emphasis" },
|
|
||||||
{ "id": "entity-community", "from": "community", "to": "entity", "variant": "dashed" },
|
|
||||||
{ "id": "edge-node", "from": "edge", "to": "node", "variant": "dashed" },
|
|
||||||
{ "id": "entity-vec", "from": "entity", "to": "pgvector", "variant": "default" },
|
|
||||||
{ "id": "entity-fts", "from": "entity", "to": "tsvector", "variant": "dashed" },
|
|
||||||
{ "id": "edge-fts", "from": "edge", "to": "tsvector", "variant": "dashed" },
|
|
||||||
{ "id": "tenant-all", "from": "tenant", "to": "entity", "variant": "security" }
|
|
||||||
],
|
|
||||||
"cards": [
|
|
||||||
{ "dot": "emerald", "title": "Three-Tier Graph", "items": ["memory_node → episode subgraph", "memory_entity → entity subgraph", "memory_edge → fact relationships", "memory_community → clusters (Phase 4)"] },
|
|
||||||
{ "dot": "rose", "title": "Bi-Temporal", "items": ["t_valid / t_invalid: event time", "t_created / t_expired: transaction time", "Contradiction: active → candidate → confirmed"] },
|
|
||||||
{ "dot": "cyan", "title": "Search", "items": ["HNSW: name, summary, fact embeddings", "ts_rank: BM25 fallback (always available)", "tenant_id: per-table isolation (mig 014)"] }
|
|
||||||
]
|
|
||||||
}
|
|
||||||
@@ -1,158 +0,0 @@
|
|||||||
{
|
|
||||||
"schema_version": 1,
|
|
||||||
"diagram_type": "dataflow",
|
|
||||||
"meta": {
|
|
||||||
"title": "Poimen Memory \u2014 Schema Relations",
|
|
||||||
"viewBox": [
|
|
||||||
960,
|
|
||||||
480
|
|
||||||
],
|
|
||||||
"quality_profile": "showcase"
|
|
||||||
},
|
|
||||||
"stages": [
|
|
||||||
{
|
|
||||||
"label": "Episodes"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"label": "Entities"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"label": "Relationships"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"label": "Indexes"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"nodes": [
|
|
||||||
{
|
|
||||||
"id": "node",
|
|
||||||
"type": "database",
|
|
||||||
"label": "memory_node",
|
|
||||||
"sublabel": "Raw messages",
|
|
||||||
"stage": 0,
|
|
||||||
"row": 0,
|
|
||||||
"tag": "BIGSERIAL"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": "entity",
|
|
||||||
"type": "database",
|
|
||||||
"label": "memory_entity",
|
|
||||||
"sublabel": "Named entities",
|
|
||||||
"stage": 1,
|
|
||||||
"row": 0,
|
|
||||||
"tag": "UUID + tenant_id"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": "community",
|
|
||||||
"type": "database",
|
|
||||||
"label": "memory_community",
|
|
||||||
"sublabel": "Clusters (Phase 4)",
|
|
||||||
"stage": 1,
|
|
||||||
"row": 1,
|
|
||||||
"tag": "UUID"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": "edge",
|
|
||||||
"type": "database",
|
|
||||||
"label": "memory_edge",
|
|
||||||
"sublabel": "Facts + bi-temporal",
|
|
||||||
"stage": 2,
|
|
||||||
"row": 0,
|
|
||||||
"tag": "UUID + tenant_id"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": "hnsw",
|
|
||||||
"type": "cloud",
|
|
||||||
"label": "HNSW Index",
|
|
||||||
"sublabel": "768-dim cosine",
|
|
||||||
"stage": 3,
|
|
||||||
"row": 0,
|
|
||||||
"tag": "pgvector"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": "fts",
|
|
||||||
"type": "cloud",
|
|
||||||
"label": "GIN Index",
|
|
||||||
"sublabel": "ts_rank BM25",
|
|
||||||
"stage": 3,
|
|
||||||
"row": 1,
|
|
||||||
"tag": "full-text"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"flows": [
|
|
||||||
{
|
|
||||||
"from": "node",
|
|
||||||
"to": "entity",
|
|
||||||
"label": "LLM extraction",
|
|
||||||
"classification": "ingest",
|
|
||||||
"variant": "emphasis",
|
|
||||||
"route": "straight"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"from": "entity",
|
|
||||||
"to": "edge",
|
|
||||||
"label": "source + target FK",
|
|
||||||
"classification": "foreign key",
|
|
||||||
"variant": "emphasis",
|
|
||||||
"route": "straight"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"from": "entity",
|
|
||||||
"to": "community",
|
|
||||||
"label": "community_id",
|
|
||||||
"classification": "membership",
|
|
||||||
"variant": "dashed",
|
|
||||||
"route": "straight",
|
|
||||||
"labelDy": 30
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"from": "edge",
|
|
||||||
"to": "hnsw",
|
|
||||||
"classification": "vector",
|
|
||||||
"variant": "default",
|
|
||||||
"route": "straight",
|
|
||||||
"label": "embedding",
|
|
||||||
"labelDy": -30
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"from": "edge",
|
|
||||||
"to": "fts",
|
|
||||||
"label": "fact text",
|
|
||||||
"classification": "text",
|
|
||||||
"variant": "dashed",
|
|
||||||
"route": "vertical-channel",
|
|
||||||
"labelDy": 30
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"cards": [
|
|
||||||
{
|
|
||||||
"dot": "emerald",
|
|
||||||
"title": "Three-Tier Graph",
|
|
||||||
"items": [
|
|
||||||
"memory_node \u2192 episodes (raw messages)",
|
|
||||||
"memory_entity \u2192 extracted entities",
|
|
||||||
"memory_edge \u2192 facts between entities",
|
|
||||||
"memory_community \u2192 clusters (Phase 4)"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"dot": "rose",
|
|
||||||
"title": "Bi-Temporal + Tenant",
|
|
||||||
"items": [
|
|
||||||
"t_valid/t_invalid: when true in reality",
|
|
||||||
"t_created/t_expired: system transaction time",
|
|
||||||
"tenant_id: row-level multi-tenant isolation",
|
|
||||||
"Contradiction: active \u2192 candidate \u2192 confirmed"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"dot": "cyan",
|
|
||||||
"title": "Search Indexes",
|
|
||||||
"items": [
|
|
||||||
"HNSW: name, summary, fact embeddings",
|
|
||||||
"GIN: ts_rank on name+summary and fact",
|
|
||||||
"RRF fusion: sem_weight + lex_weight"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
@@ -1,63 +0,0 @@
|
|||||||
{
|
|
||||||
"schema_version": 1,
|
|
||||||
"diagram_type": "sequence",
|
|
||||||
"meta": {
|
|
||||||
"title": "Service Acting on Behalf of User",
|
|
||||||
"viewBox": [1000, 600],
|
|
||||||
"column_fit": "spread",
|
|
||||||
"quality_profile": "showcase"
|
|
||||||
},
|
|
||||||
"participants": [
|
|
||||||
{ "id": "user", "type": "external", "label": "User", "sublabel": "browser" },
|
|
||||||
{ "id": "app", "type": "frontend", "label": "Web App", "sublabel": "poimen UI" },
|
|
||||||
{ "id": "authentik", "type": "security", "label": "Authentik", "sublabel": "OIDC" },
|
|
||||||
{ "id": "worker", "type": "backend", "label": "Backend Worker", "sublabel": "temporal/queue" },
|
|
||||||
{ "id": "memory", "type": "backend", "label": "Memory API", "sublabel": "poimen-memory" },
|
|
||||||
{ "id": "jwks", "type": "security", "label": "JWKS", "sublabel": "RS256" }
|
|
||||||
],
|
|
||||||
"segments": [
|
|
||||||
{ "from": 150, "to": 260, "label": "User Auth" },
|
|
||||||
{ "from": 270, "to": 370, "label": "Delegation" },
|
|
||||||
{ "from": 380, "to": 510, "label": "Downstream" }
|
|
||||||
],
|
|
||||||
"messages": [
|
|
||||||
{ "id": "login", "from": "user", "to": "app", "y": 165, "label": "login (OIDC)", "variant": "default" },
|
|
||||||
{ "id": "oidc-flow", "from": "app", "to": "authentik", "y": 200, "label": "authorization_code flow", "variant": "emphasis" },
|
|
||||||
{ "id": "user-jwt", "from": "authentik", "to": "app", "y": 235, "label": "user JWT {groups,roles}", "variant": "return" },
|
|
||||||
{ "id": "trigger-job", "from": "user", "to": "app", "y": 285, "label": "trigger async job", "variant": "default" },
|
|
||||||
{ "id": "queue-job", "from": "app", "to": "worker", "y": 320, "label": "enqueue job + user JWT", "variant": "emphasis", "note": "JWT passed as job metadata" },
|
|
||||||
{ "id": "job-ack", "from": "worker", "to": "app", "y": 355, "label": "job queued", "variant": "return" },
|
|
||||||
{ "id": "call-memory", "from": "worker", "to": "memory", "y": 400, "label": "POST /memory/ingest", "variant": "emphasis", "note": "Bearer <user JWT>" },
|
|
||||||
{ "id": "fetch-jwks", "from": "memory", "to": "jwks", "y": 435, "label": "GET /jwks", "variant": "dashed" },
|
|
||||||
{ "id": "jwks-keys", "from": "jwks", "to": "memory", "y": 470, "label": "RSA pubkey", "variant": "return" },
|
|
||||||
{ "id": "ingest-ok", "from": "memory", "to": "worker", "y": 505, "label": "202 Accepted", "variant": "return", "note": "uses USER's groups/roles" }
|
|
||||||
],
|
|
||||||
"activations": [
|
|
||||||
{ "participant": "user", "from": 160, "to": 291, "type": "external" },
|
|
||||||
{ "participant": "app", "from": 165, "to": 361, "type": "frontend" },
|
|
||||||
{ "participant": "authentik", "from": 195, "to": 241, "type": "security" },
|
|
||||||
{ "participant": "worker", "from": 315, "to": 511, "type": "backend" },
|
|
||||||
{ "participant": "memory", "from": 395, "to": 511, "type": "backend" },
|
|
||||||
{ "participant": "jwks", "from": 430, "to": 476, "type": "security" }
|
|
||||||
],
|
|
||||||
"cards": [
|
|
||||||
{
|
|
||||||
"dot": "emerald",
|
|
||||||
"title": "Delegation Pattern",
|
|
||||||
"items": [
|
|
||||||
"User JWT travels with the job payload",
|
|
||||||
"Worker uses user's token for downstream",
|
|
||||||
"Memory sees USER as the principal"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"dot": "rose",
|
|
||||||
"title": "Security Model",
|
|
||||||
"items": [
|
|
||||||
"No service-account escalation",
|
|
||||||
"User's permissions bound the action",
|
|
||||||
"Audit trail traces to user.sub"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
@@ -1,42 +0,0 @@
|
|||||||
{
|
|
||||||
"schema_version": 1,
|
|
||||||
"diagram_type": "architecture",
|
|
||||||
"meta": {
|
|
||||||
"title": "Memory Service Fine-Grained RBAC",
|
|
||||||
"quality_profile": "showcase",
|
|
||||||
"viewBox": [900, 520]
|
|
||||||
},
|
|
||||||
"components": [
|
|
||||||
{ "id": "jwt", "type": "security", "label": "JWT Token", "sublabel": "groups[] + roles[]", "pos": [40, 60], "size": [140, 60], "tag": "Authentik" },
|
|
||||||
{ "id": "cap-check", "type": "backend", "label": "Capability Check", "sublabel": "has_capability()", "pos": [260, 60], "size": [160, 60], "tag": "Phase 1" },
|
|
||||||
{ "id": "scope-checker", "type": "backend", "label": "Scope Checker", "sublabel": "filter_resources()", "pos": [500, 60], "size": [160, 60], "tag": "Phase 2" },
|
|
||||||
{ "id": "decision", "type": "backend", "label": "AccessDecision", "sublabel": "Allow / Deny", "pos": [740, 60], "size": [130, 60] },
|
|
||||||
{ "id": "project-scope", "type": "database", "label": "ProjectScope", "sublabel": "dev/staging/prod/*", "pos": [40, 200], "size": [140, 55] },
|
|
||||||
{ "id": "visibility-scope", "type": "database", "label": "VisibilityScope", "sublabel": "public/private", "pos": [220, 200], "size": [140, 55] },
|
|
||||||
{ "id": "owner-scope", "type": "database", "label": "OwnerScope", "sublabel": "self/any/user", "pos": [400, 200], "size": [140, 55] },
|
|
||||||
{ "id": "group-scope", "type": "database", "label": "GroupScope", "sublabel": "in_any_group()", "pos": [580, 200], "size": [140, 55] },
|
|
||||||
{ "id": "entities", "type": "database", "label": "Entities", "sublabel": "memory_entity", "pos": [40, 340], "size": [120, 50] },
|
|
||||||
{ "id": "edges", "type": "database", "label": "Edges", "sublabel": "memory_edge", "pos": [200, 340], "size": [120, 50] },
|
|
||||||
{ "id": "projects", "type": "database", "label": "Projects", "sublabel": "project_id", "pos": [360, 340], "size": [120, 50] },
|
|
||||||
{ "id": "convos", "type": "database", "label": "Conversations", "sublabel": "owner_id", "pos": [520, 340], "size": [120, 50] }
|
|
||||||
],
|
|
||||||
"boundaries": [
|
|
||||||
{ "kind": "security-group", "label": "Access Control Pipeline", "wraps": ["cap-check", "scope-checker", "decision"] },
|
|
||||||
{ "kind": "region", "label": "Scope Checkers", "wraps": ["project-scope", "visibility-scope", "owner-scope", "group-scope"] },
|
|
||||||
{ "kind": "region", "label": "Protected Resources", "wraps": ["entities", "edges", "projects", "convos"] }
|
|
||||||
],
|
|
||||||
"connections": [
|
|
||||||
{ "id": "jwt-to-cap", "from": "jwt", "to": "cap-check", "label": "claims", "variant": "emphasis" },
|
|
||||||
{ "id": "cap-to-scope", "from": "cap-check", "to": "scope-checker", "variant": "emphasis" },
|
|
||||||
{ "id": "scope-to-decision", "from": "scope-checker", "to": "decision", "variant": "emphasis" },
|
|
||||||
{ "id": "scope-to-proj", "from": "scope-checker", "to": "project-scope", "variant": "dashed", "fromSide": "bottom", "toSide": "top" },
|
|
||||||
{ "id": "scope-to-vis", "from": "scope-checker", "to": "visibility-scope", "variant": "dashed", "fromSide": "bottom", "toSide": "top" },
|
|
||||||
{ "id": "scope-to-owner", "from": "scope-checker", "to": "owner-scope", "variant": "dashed", "fromSide": "bottom", "toSide": "top" },
|
|
||||||
{ "id": "scope-to-group", "from": "scope-checker", "to": "group-scope", "variant": "dashed", "fromSide": "bottom", "toSide": "top" }
|
|
||||||
],
|
|
||||||
"cards": [
|
|
||||||
{ "dot": "emerald", "title": "Phase 1: Capability", "items": ["has_capability(memory:read)", "Checks roles[] claim", "Binary allow/deny"] },
|
|
||||||
{ "dot": "rose", "title": "Phase 2: Scope", "items": ["Project: dev/staging/prod", "Visibility: public/private", "Owner: self-owned only", "Group: poimen-admins/devs"] },
|
|
||||||
{ "dot": "cyan", "title": "JWT Claims", "items": ["groups: user.groups", "roles: attributes.roles", "permissions: group names"] }
|
|
||||||
]
|
|
||||||
}
|
|
||||||
@@ -1,54 +0,0 @@
|
|||||||
{
|
|
||||||
"schema_version": 1,
|
|
||||||
"diagram_type": "sequence",
|
|
||||||
"meta": {
|
|
||||||
"title": "Service-to-Service (M2M) Authentication",
|
|
||||||
"viewBox": [1080, 520],
|
|
||||||
"column_fit": "spread",
|
|
||||||
"quality_profile": "showcase"
|
|
||||||
},
|
|
||||||
"participants": [
|
|
||||||
{ "id": "worker", "type": "backend", "label": "Ingest Worker", "sublabel": "temporal/cron" },
|
|
||||||
{ "id": "authentik", "type": "security", "label": "Authentik", "sublabel": "OIDC provider" },
|
|
||||||
{ "id": "memory", "type": "backend", "label": "Memory Service", "sublabel": "poimen-memory" },
|
|
||||||
{ "id": "jwks", "type": "security", "label": "JWKS", "sublabel": "RS256 keys" }
|
|
||||||
],
|
|
||||||
"segments": [
|
|
||||||
{ "from": 150, "to": 230, "label": "Token Mint" },
|
|
||||||
{ "from": 240, "to": 380, "label": "API + RBAC" }
|
|
||||||
],
|
|
||||||
"messages": [
|
|
||||||
{ "id": "token-req", "from": "worker", "to": "authentik", "y": 165, "label": "POST /token grant_type=password", "variant": "emphasis", "note": "client_id + username + app_password + scope" },
|
|
||||||
{ "id": "jwt-resp", "from": "authentik", "to": "worker", "y": 205, "label": "JWT {groups,roles,aud,iss}", "variant": "return", "note": "groups=[poimen-admins] roles=[memory:write]" },
|
|
||||||
{ "id": "api-call", "from": "worker", "to": "memory", "y": 260, "label": "POST /memory/ingest", "variant": "emphasis", "note": "Authorization: Bearer <JWT>" },
|
|
||||||
{ "id": "fetch-jwks", "from": "memory", "to": "jwks", "y": 295, "label": "GET /jwks (cached)", "variant": "dashed" },
|
|
||||||
{ "id": "jwks-resp", "from": "jwks", "to": "memory", "y": 330, "label": "RSA pubkey (kid)", "variant": "return" },
|
|
||||||
{ "id": "verify-ok", "from": "memory", "to": "worker", "y": 365, "label": "202 Accepted", "variant": "return", "note": "sig ✓ iss ✓ aud ✓ has_capability ✓" }
|
|
||||||
],
|
|
||||||
"activations": [
|
|
||||||
{ "participant": "worker", "from": 160, "to": 371, "type": "backend" },
|
|
||||||
{ "participant": "authentik", "from": 165, "to": 211, "type": "security" },
|
|
||||||
{ "participant": "memory", "from": 255, "to": 371, "type": "backend" },
|
|
||||||
{ "participant": "jwks", "from": 290, "to": 336, "type": "security" }
|
|
||||||
],
|
|
||||||
"cards": [
|
|
||||||
{
|
|
||||||
"dot": "emerald",
|
|
||||||
"title": "M2M Pattern",
|
|
||||||
"items": [
|
|
||||||
"grant_type=password (Authentik aliases client_credentials)",
|
|
||||||
"App-password token authenticates the service account",
|
|
||||||
"NOT client_secret — that creates nameless SA"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"dot": "rose",
|
|
||||||
"title": "JWT Claims",
|
|
||||||
"items": [
|
|
||||||
"groups: from user.groups (poimen-admins)",
|
|
||||||
"roles: from user.attributes.roles",
|
|
||||||
"iss/aud: per-provider issuer"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
@@ -1,61 +0,0 @@
|
|||||||
{
|
|
||||||
"schema_version": 1,
|
|
||||||
"diagram_type": "sequence",
|
|
||||||
"meta": {
|
|
||||||
"title": "User Direct Access with JWT",
|
|
||||||
"viewBox": [1000, 640],
|
|
||||||
"column_fit": "spread",
|
|
||||||
"quality_profile": "showcase"
|
|
||||||
},
|
|
||||||
"participants": [
|
|
||||||
{ "id": "user", "type": "external", "label": "User", "sublabel": "browser" },
|
|
||||||
{ "id": "app", "type": "frontend", "label": "Web App", "sublabel": "poimen UI" },
|
|
||||||
{ "id": "authentik", "type": "security", "label": "Authentik", "sublabel": "OIDC provider" },
|
|
||||||
{ "id": "memory", "type": "backend", "label": "Memory API", "sublabel": "poimen-memory" },
|
|
||||||
{ "id": "jwks", "type": "security", "label": "JWKS", "sublabel": "RS256 keys" }
|
|
||||||
],
|
|
||||||
"segments": [
|
|
||||||
{ "from": 150, "to": 370, "label": "OIDC Login" },
|
|
||||||
{ "from": 380, "to": 540, "label": "API + RBAC" }
|
|
||||||
],
|
|
||||||
"messages": [
|
|
||||||
{ "id": "click-login", "from": "user", "to": "app", "y": 165, "label": "click Login", "variant": "default" },
|
|
||||||
{ "id": "redirect-auth", "from": "app", "to": "authentik", "y": 200, "label": "redirect /authorize", "variant": "emphasis", "note": "scope=openid groups roles" },
|
|
||||||
{ "id": "show-login", "from": "authentik", "to": "user", "y": 235, "label": "login form", "variant": "default" },
|
|
||||||
{ "id": "submit-creds", "from": "user", "to": "authentik", "y": 270, "label": "username + password", "variant": "security" },
|
|
||||||
{ "id": "auth-code", "from": "authentik", "to": "app", "y": 305, "label": "redirect ?code=xxx", "variant": "return" },
|
|
||||||
{ "id": "exchange-token", "from": "app", "to": "authentik", "y": 340, "label": "POST /token code=xxx", "variant": "emphasis" },
|
|
||||||
{ "id": "jwt-resp", "from": "authentik", "to": "app", "y": 375, "label": "JWT {groups,roles,sub}", "variant": "return" },
|
|
||||||
{ "id": "query-api", "from": "app", "to": "memory", "y": 420, "label": "GET /memory/query", "variant": "emphasis", "note": "Authorization: Bearer <JWT>" },
|
|
||||||
{ "id": "fetch-jwks", "from": "memory", "to": "jwks", "y": 455, "label": "GET /jwks (cached)", "variant": "dashed" },
|
|
||||||
{ "id": "jwks-keys", "from": "jwks", "to": "memory", "y": 490, "label": "RSA pubkey", "variant": "return" },
|
|
||||||
{ "id": "query-resp", "from": "memory", "to": "app", "y": 525, "label": "200 JSON results", "variant": "return", "note": "has_capability(memory:read) ✓" }
|
|
||||||
],
|
|
||||||
"activations": [
|
|
||||||
{ "participant": "user", "from": 160, "to": 276, "type": "external" },
|
|
||||||
{ "participant": "app", "from": 165, "to": 531, "type": "frontend" },
|
|
||||||
{ "participant": "authentik", "from": 195, "to": 381, "type": "security" },
|
|
||||||
{ "participant": "memory", "from": 415, "to": 531, "type": "backend" },
|
|
||||||
{ "participant": "jwks", "from": 450, "to": 496, "type": "security" }
|
|
||||||
],
|
|
||||||
"cards": [
|
|
||||||
{
|
|
||||||
"dot": "emerald",
|
|
||||||
"title": "Authorization Code Flow",
|
|
||||||
"items": [
|
|
||||||
"User authenticates directly with Authentik",
|
|
||||||
"App exchanges code for JWT",
|
|
||||||
"Scopes: openid groups roles permissions"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"dot": "rose",
|
|
||||||
"title": "JWT Contents",
|
|
||||||
"items": [
|
|
||||||
"iss: .../application/o/poimen/",
|
|
||||||
"aud: poimen (provider client_id)",
|
|
||||||
"groups: user's group memberships"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
@@ -1,82 +0,0 @@
|
|||||||
# ComfyUI — GPU-accelerated image generation on worker-1.
|
|
||||||
# Uses 1x V100 32GB (sm70). Freed by scaling ornith 2→1.
|
|
||||||
apiVersion: apps/v1
|
|
||||||
kind: Deployment
|
|
||||||
metadata:
|
|
||||||
name: comfyui
|
|
||||||
namespace: comfyui
|
|
||||||
labels:
|
|
||||||
app: comfyui
|
|
||||||
spec:
|
|
||||||
replicas: 1
|
|
||||||
strategy:
|
|
||||||
type: Recreate
|
|
||||||
selector:
|
|
||||||
matchLabels:
|
|
||||||
app: comfyui
|
|
||||||
template:
|
|
||||||
metadata:
|
|
||||||
labels:
|
|
||||||
app: comfyui
|
|
||||||
spec:
|
|
||||||
nodeSelector:
|
|
||||||
kubernetes.io/hostname: worker-1
|
|
||||||
runtimeClassName: nvidia
|
|
||||||
# k8s Service named 'comfyui' injects COMFYUI_PORT=tcp://... into pod env,
|
|
||||||
# which clobbers ai-dock's own COMFYUI_PORT variable (expects a port number).
|
|
||||||
# Disable service link injection to avoid the collision.
|
|
||||||
enableServiceLinks: false
|
|
||||||
containers:
|
|
||||||
- name: comfyui
|
|
||||||
image: ghcr.io/ai-dock/comfyui:v2-cuda-12.1.1-base-22.04
|
|
||||||
ports:
|
|
||||||
- containerPort: 8188
|
|
||||||
protocol: TCP
|
|
||||||
env:
|
|
||||||
- name: NVIDIA_VISIBLE_DEVICES
|
|
||||||
value: "all"
|
|
||||||
resources:
|
|
||||||
requests:
|
|
||||||
cpu: "4"
|
|
||||||
memory: 8Gi
|
|
||||||
nvidia.com/gpu: "1"
|
|
||||||
limits:
|
|
||||||
cpu: "8"
|
|
||||||
memory: 16Gi
|
|
||||||
nvidia.com/gpu: "1"
|
|
||||||
volumeMounts:
|
|
||||||
- mountPath: /workspace/ComfyUI/models
|
|
||||||
name: models
|
|
||||||
- mountPath: /workspace/ComfyUI/output
|
|
||||||
name: output
|
|
||||||
readinessProbe:
|
|
||||||
httpGet:
|
|
||||||
path: /
|
|
||||||
port: 8188
|
|
||||||
periodSeconds: 10
|
|
||||||
initialDelaySeconds: 30
|
|
||||||
startupProbe:
|
|
||||||
httpGet:
|
|
||||||
path: /
|
|
||||||
port: 8188
|
|
||||||
failureThreshold: 120
|
|
||||||
periodSeconds: 10
|
|
||||||
volumes:
|
|
||||||
- name: models
|
|
||||||
persistentVolumeClaim:
|
|
||||||
claimName: comfyui-models
|
|
||||||
- name: output
|
|
||||||
emptyDir: {}
|
|
||||||
---
|
|
||||||
apiVersion: v1
|
|
||||||
kind: PersistentVolumeClaim
|
|
||||||
metadata:
|
|
||||||
name: comfyui-models
|
|
||||||
namespace: comfyui
|
|
||||||
spec:
|
|
||||||
accessModes:
|
|
||||||
- ReadWriteOnce
|
|
||||||
storageClassName: longhorn
|
|
||||||
resources:
|
|
||||||
requests:
|
|
||||||
storage: 50Gi
|
|
||||||
@@ -1,31 +0,0 @@
|
|||||||
apiVersion: networking.k8s.io/v1
|
|
||||||
kind: Ingress
|
|
||||||
metadata:
|
|
||||||
name: comfyui
|
|
||||||
namespace: comfyui
|
|
||||||
annotations:
|
|
||||||
# No cert-manager annotation and no tls: block. This host is covered by
|
|
||||||
# the *.riotpiao.com wildcard, which nginx serves as its
|
|
||||||
# default-ssl-certificate (ingress-nginx/riotpiao-com-tls).
|
|
||||||
nginx.ingress.kubernetes.io/proxy-read-timeout: "600"
|
|
||||||
nginx.ingress.kubernetes.io/proxy-send-timeout: "600"
|
|
||||||
nginx.ingress.kubernetes.io/proxy-body-size: "0"
|
|
||||||
# WebSocket support for ComfyUI's live preview
|
|
||||||
nginx.ingress.kubernetes.io/proxy-http-version: "1.1"
|
|
||||||
nginx.ingress.kubernetes.io/upstream-hash-by: "$remote_addr"
|
|
||||||
nginx.ingress.kubernetes.io/configuration-snippet: |
|
|
||||||
proxy_set_header Upgrade $http_upgrade;
|
|
||||||
proxy_set_header Connection "upgrade";
|
|
||||||
spec:
|
|
||||||
ingressClassName: nginx
|
|
||||||
rules:
|
|
||||||
- host: comfyui.riotpiao.com
|
|
||||||
http:
|
|
||||||
paths:
|
|
||||||
- path: /
|
|
||||||
pathType: Prefix
|
|
||||||
backend:
|
|
||||||
service:
|
|
||||||
name: comfyui
|
|
||||||
port:
|
|
||||||
number: 80
|
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
|
||||||
kind: Kustomization
|
|
||||||
|
|
||||||
resources:
|
|
||||||
- deployment.yaml
|
|
||||||
- service.yaml
|
|
||||||
- ingress.yaml
|
|
||||||
@@ -1,14 +0,0 @@
|
|||||||
apiVersion: v1
|
|
||||||
kind: Service
|
|
||||||
metadata:
|
|
||||||
name: comfyui
|
|
||||||
namespace: comfyui
|
|
||||||
labels:
|
|
||||||
app: comfyui
|
|
||||||
spec:
|
|
||||||
selector:
|
|
||||||
app: comfyui
|
|
||||||
ports:
|
|
||||||
- port: 80
|
|
||||||
targetPort: 8188
|
|
||||||
protocol: TCP
|
|
||||||
@@ -1,107 +0,0 @@
|
|||||||
# Gotify — Push Notifications + Email Relay
|
|
||||||
|
|
||||||
Self-hosted notification server with SMTP email forwarding sidecar.
|
|
||||||
|
|
||||||
## Architecture
|
|
||||||
|
|
||||||
```
|
|
||||||
Forgejo webhook ──POST──→ Gotify API (:80/message)
|
|
||||||
│
|
|
||||||
┌─────────┼─────────┐
|
|
||||||
▼ ▼
|
|
||||||
Push notification SMTP emailer sidecar
|
|
||||||
(mobile/desktop) (polls → sends email)
|
|
||||||
```
|
|
||||||
|
|
||||||
## Setup (one-time, after first deploy)
|
|
||||||
|
|
||||||
### 1. Encrypt secrets before committing
|
|
||||||
|
|
||||||
```bash
|
|
||||||
# Edit secrets.yaml with real values first, then:
|
|
||||||
sops -e -i k8s/apps/gotify/secrets.yaml
|
|
||||||
```
|
|
||||||
|
|
||||||
### 2. Create Gotify app + client tokens
|
|
||||||
|
|
||||||
1. Login to `https://gotify.riotpiao.com` with admin creds
|
|
||||||
2. **Applications** → Create `forgejo` → copy **app token**
|
|
||||||
3. **Clients** → Create `smtp-emailer` → copy **client token**
|
|
||||||
4. Update `gotify-tokens` secret:
|
|
||||||
```bash
|
|
||||||
kubectl -n notifications create secret generic gotify-tokens \
|
|
||||||
--from-literal=app-token=<APP_TOKEN> \
|
|
||||||
--from-literal=client-token=<CLIENT_TOKEN> \
|
|
||||||
--dry-run=client -o yaml | kubectl apply -f -
|
|
||||||
```
|
|
||||||
|
|
||||||
### 3. Configure Forgejo webhook
|
|
||||||
|
|
||||||
In each Forgejo repo → **Settings** → **Webhooks** → **Add Webhook** → **Gotify**:
|
|
||||||
|
|
||||||
| Field | Value |
|
|
||||||
|-------|-------|
|
|
||||||
| Target URL | `http://gotify.notifications.svc.cluster.local/message` |
|
|
||||||
| Token | The **app token** from step 2 |
|
|
||||||
| Events | Pull Request (Created, Merged, Closed) |
|
|
||||||
|
|
||||||
Or via API:
|
|
||||||
```bash
|
|
||||||
FORGEJO_TOKEN="<your-pat>"
|
|
||||||
APP_TOKEN="<gotify-app-token>"
|
|
||||||
|
|
||||||
curl -s -X POST "https://forgejo.riotpiao.com/api/v1/repos/rock/homelab/hooks" \
|
|
||||||
-H "Authorization: token $FORGEJO_TOKEN" \
|
|
||||||
-H "Content-Type: application/json" \
|
|
||||||
-d '{
|
|
||||||
"type": "gotify",
|
|
||||||
"active": true,
|
|
||||||
"config": {
|
|
||||||
"content_type": "json",
|
|
||||||
"url": "http://gotify.notifications.svc.cluster.local/message?token='"$APP_TOKEN"'"
|
|
||||||
},
|
|
||||||
"events": ["pull_request", "pull_request_assign", "pull_request_review"],
|
|
||||||
"authorization_header": ""
|
|
||||||
}'
|
|
||||||
```
|
|
||||||
|
|
||||||
### 4. Add CoreDNS rewrite (if accessing via public hostname)
|
|
||||||
|
|
||||||
Only needed if Cloudflare Tunnel is used for gotify.riotpiao.com:
|
|
||||||
|
|
||||||
```
|
|
||||||
# terraform/files/coredns/Corefile — add rewrite:
|
|
||||||
rewrite name gotify.riotpiao.com ingress-nginx-controller.ingress-nginx.svc.cluster.local
|
|
||||||
```
|
|
||||||
|
|
||||||
Then: `cd terraform && terraform apply && cd .. && make apply-cp`
|
|
||||||
|
|
||||||
### 5. SMTP providers
|
|
||||||
|
|
||||||
| Provider | Host | Port | Notes |
|
|
||||||
|----------|------|------|-------|
|
|
||||||
| Gmail | smtp.gmail.com | 587 | Use App Password (2FA required) |
|
|
||||||
| Resend | smtp.resend.com | 587 | Free 100 emails/day |
|
|
||||||
| Sendgrid | smtp.sendgrid.net | 587 | Free 100 emails/day |
|
|
||||||
| Mailgun | smtp.mailgun.org | 587 | Free 5000/month |
|
|
||||||
|
|
||||||
## Notification priority levels
|
|
||||||
|
|
||||||
| Priority | Meaning | Email forwarded? |
|
|
||||||
|----------|---------|-----------------|
|
|
||||||
| 0-4 | Low (info) | No (below MIN_PRIORITY=5) |
|
|
||||||
| 5-7 | Normal (PR created) | Yes |
|
|
||||||
| 8-10 | High (PR merged, failures) | Yes |
|
|
||||||
|
|
||||||
## Verify
|
|
||||||
|
|
||||||
```bash
|
|
||||||
# Test push notification
|
|
||||||
APP_TOKEN="<app-token>"
|
|
||||||
curl -X POST "https://gotify.riotpiao.com/message?token=$APP_TOKEN" \
|
|
||||||
-H "Content-Type: application/json" \
|
|
||||||
-d '{"title":"Test","message":"Hello from homelab","priority":5}'
|
|
||||||
|
|
||||||
# Check email sidecar logs
|
|
||||||
kubectl -n notifications logs deployment/gotify -c smtp-emailer --tail=20
|
|
||||||
```
|
|
||||||
@@ -1,35 +0,0 @@
|
|||||||
# CNPG Postgres for Gotify. Lightweight — 2 instances, 2Gi storage.
|
|
||||||
# CNPG generates secret `gotify-db-app` + service `gotify-db-rw` in ns notifications.
|
|
||||||
apiVersion: postgresql.cnpg.io/v1
|
|
||||||
kind: Cluster
|
|
||||||
metadata:
|
|
||||||
name: gotify-db
|
|
||||||
namespace: notifications
|
|
||||||
annotations:
|
|
||||||
argocd.argoproj.io/sync-options: SkipDryRunOnMissingResource=true
|
|
||||||
spec:
|
|
||||||
instances: 3
|
|
||||||
imageName: ghcr.io/cloudnative-pg/postgresql:16.2
|
|
||||||
bootstrap:
|
|
||||||
initdb:
|
|
||||||
database: gotify
|
|
||||||
owner: app
|
|
||||||
encoding: UTF8
|
|
||||||
localeCollate: C
|
|
||||||
localeCType: C
|
|
||||||
enableSuperuserAccess: false
|
|
||||||
resources:
|
|
||||||
requests: { memory: "256Mi", cpu: "100m" }
|
|
||||||
limits: { memory: "512Mi", cpu: "500m" }
|
|
||||||
storage:
|
|
||||||
size: 2Gi
|
|
||||||
storageClass: longhorn-cnpg
|
|
||||||
monitoring:
|
|
||||||
enablePodMonitor: true
|
|
||||||
affinity:
|
|
||||||
podAntiAffinityType: preferred
|
|
||||||
topologyKey: kubernetes.io/hostname
|
|
||||||
tolerations:
|
|
||||||
- key: node-role.kubernetes.io/control-plane
|
|
||||||
operator: Exists
|
|
||||||
effect: NoSchedule
|
|
||||||
@@ -1,204 +0,0 @@
|
|||||||
# Gotify — self-hosted push notification server + SMTP email relay.
|
|
||||||
# Forgejo webhooks → Gotify → push notifications + email forwarding.
|
|
||||||
# Runs on control plane (no GPU needed), lightweight.
|
|
||||||
apiVersion: apps/v1
|
|
||||||
kind: Deployment
|
|
||||||
metadata:
|
|
||||||
name: gotify
|
|
||||||
namespace: notifications
|
|
||||||
labels:
|
|
||||||
app: gotify
|
|
||||||
spec:
|
|
||||||
replicas: 1
|
|
||||||
strategy:
|
|
||||||
type: Recreate
|
|
||||||
selector:
|
|
||||||
matchLabels:
|
|
||||||
app: gotify
|
|
||||||
template:
|
|
||||||
metadata:
|
|
||||||
labels:
|
|
||||||
app: gotify
|
|
||||||
spec:
|
|
||||||
containers:
|
|
||||||
# --- Gotify server ---
|
|
||||||
- name: gotify
|
|
||||||
image: ghcr.io/gotify/server:3.1.0
|
|
||||||
command: ["/bin/sh", "-c"]
|
|
||||||
args:
|
|
||||||
- |
|
|
||||||
export GOTIFY_DATABASE_DIALECT=postgres
|
|
||||||
export GOTIFY_DATABASE_CONNECTION="host=gotify-db-rw.notifications port=5432 user=${DB_USER} password=${DB_PASS} dbname=gotify sslmode=disable"
|
|
||||||
exec /app/gotify-app
|
|
||||||
ports:
|
|
||||||
- containerPort: 80
|
|
||||||
protocol: TCP
|
|
||||||
env:
|
|
||||||
- name: GOTIFY_DEFAULTUSER_NAME
|
|
||||||
valueFrom:
|
|
||||||
secretKeyRef:
|
|
||||||
name: gotify-admin
|
|
||||||
key: username
|
|
||||||
- name: GOTIFY_DEFAULTUSER_PASS
|
|
||||||
valueFrom:
|
|
||||||
secretKeyRef:
|
|
||||||
name: gotify-admin
|
|
||||||
key: password
|
|
||||||
- name: DB_USER
|
|
||||||
valueFrom:
|
|
||||||
secretKeyRef:
|
|
||||||
name: gotify-db-app
|
|
||||||
key: username
|
|
||||||
- name: DB_PASS
|
|
||||||
valueFrom:
|
|
||||||
secretKeyRef:
|
|
||||||
name: gotify-db-app
|
|
||||||
key: password
|
|
||||||
- name: GOTIFY_SERVER_PORT
|
|
||||||
value: "80"
|
|
||||||
- name: GOTIFY_SERVER_KEEPALIVEPERIODSECONDS
|
|
||||||
value: "0"
|
|
||||||
- name: TZ
|
|
||||||
value: Asia/Tokyo
|
|
||||||
resources:
|
|
||||||
requests:
|
|
||||||
cpu: 50m
|
|
||||||
memory: 64Mi
|
|
||||||
limits:
|
|
||||||
cpu: 200m
|
|
||||||
memory: 128Mi
|
|
||||||
livenessProbe:
|
|
||||||
httpGet:
|
|
||||||
path: /health
|
|
||||||
port: 80
|
|
||||||
periodSeconds: 30
|
|
||||||
initialDelaySeconds: 10
|
|
||||||
readinessProbe:
|
|
||||||
httpGet:
|
|
||||||
path: /health
|
|
||||||
port: 80
|
|
||||||
periodSeconds: 10
|
|
||||||
initialDelaySeconds: 5
|
|
||||||
|
|
||||||
# --- SMTP emailer sidecar ---
|
|
||||||
# Watches Gotify WebSocket stream, forwards messages as email.
|
|
||||||
# https://github.com/eternal-flame-AD/gotify-broadcast
|
|
||||||
- name: smtp-emailer
|
|
||||||
image: ghcr.io/gotify/server:3.1.0
|
|
||||||
command:
|
|
||||||
- /bin/sh
|
|
||||||
- -c
|
|
||||||
- |
|
|
||||||
# Wait for Gotify to be ready
|
|
||||||
until wget -qO- http://localhost:80/health >/dev/null 2>&1; do
|
|
||||||
echo "Waiting for Gotify..."
|
|
||||||
sleep 2
|
|
||||||
done
|
|
||||||
echo "Gotify is ready, starting email relay..."
|
|
||||||
|
|
||||||
# Poll Gotify messages and forward via SMTP using msmtp
|
|
||||||
# Install msmtp for lightweight SMTP sending
|
|
||||||
apk add --no-cache msmtp curl jq
|
|
||||||
|
|
||||||
# Configure msmtp
|
|
||||||
cat > /tmp/msmtprc <<MSMTP
|
|
||||||
defaults
|
|
||||||
auth on
|
|
||||||
tls on
|
|
||||||
tls_trust_file /etc/ssl/certs/ca-certificates.crt
|
|
||||||
logfile /tmp/msmtp.log
|
|
||||||
|
|
||||||
account default
|
|
||||||
host ${SMTP_HOST}
|
|
||||||
port ${SMTP_PORT}
|
|
||||||
from ${SMTP_FROM}
|
|
||||||
user ${SMTP_USER}
|
|
||||||
password ${SMTP_PASS}
|
|
||||||
MSMTP
|
|
||||||
|
|
||||||
chmod 600 /tmp/msmtprc
|
|
||||||
|
|
||||||
# Track last seen message ID
|
|
||||||
LAST_ID=0
|
|
||||||
|
|
||||||
while true; do
|
|
||||||
# Fetch messages since last ID
|
|
||||||
MESSAGES=$(curl -s -H "X-Gotify-Key: ${GOTIFY_CLIENT_TOKEN}" \
|
|
||||||
"http://localhost:80/message?since=${LAST_ID}&limit=10" 2>/dev/null)
|
|
||||||
|
|
||||||
if [ -n "$MESSAGES" ]; then
|
|
||||||
echo "$MESSAGES" | jq -r '.messages[]? | @base64' | while read -r MSG; do
|
|
||||||
DECODED=$(echo "$MSG" | base64 -d)
|
|
||||||
ID=$(echo "$DECODED" | jq -r '.id')
|
|
||||||
TITLE=$(echo "$DECODED" | jq -r '.title // "Notification"')
|
|
||||||
BODY=$(echo "$DECODED" | jq -r '.message // ""')
|
|
||||||
PRIORITY=$(echo "$DECODED" | jq -r '.priority // 5')
|
|
||||||
APP=$(echo "$DECODED" | jq -r '.appid // 0')
|
|
||||||
DATE=$(echo "$DECODED" | jq -r '.date // ""')
|
|
||||||
|
|
||||||
# Only forward messages with priority >= configured threshold
|
|
||||||
if [ "$PRIORITY" -ge "${MIN_PRIORITY:-0}" ]; then
|
|
||||||
printf "Subject: [Gotify] %s\nFrom: %s\nTo: %s\nContent-Type: text/plain; charset=UTF-8\n\n%s\n\n---\nPriority: %s\nDate: %s" \
|
|
||||||
"$TITLE" "$SMTP_FROM" "$NOTIFY_EMAIL" "$BODY" "$PRIORITY" "$DATE" | \
|
|
||||||
msmtp -C /tmp/msmtprc "$NOTIFY_EMAIL" && \
|
|
||||||
echo "Email sent for message $ID: $TITLE" || \
|
|
||||||
echo "Failed to send email for message $ID"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Update last seen ID
|
|
||||||
if [ "$ID" -gt "$LAST_ID" ]; then
|
|
||||||
LAST_ID=$ID
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
fi
|
|
||||||
|
|
||||||
sleep ${POLL_INTERVAL:-30}
|
|
||||||
done
|
|
||||||
env:
|
|
||||||
- name: GOTIFY_CLIENT_TOKEN
|
|
||||||
valueFrom:
|
|
||||||
secretKeyRef:
|
|
||||||
name: gotify-tokens
|
|
||||||
key: client-token
|
|
||||||
- name: SMTP_HOST
|
|
||||||
valueFrom:
|
|
||||||
secretKeyRef:
|
|
||||||
name: gotify-smtp
|
|
||||||
key: host
|
|
||||||
- name: SMTP_PORT
|
|
||||||
valueFrom:
|
|
||||||
secretKeyRef:
|
|
||||||
name: gotify-smtp
|
|
||||||
key: port
|
|
||||||
- name: SMTP_FROM
|
|
||||||
valueFrom:
|
|
||||||
secretKeyRef:
|
|
||||||
name: gotify-smtp
|
|
||||||
key: from
|
|
||||||
- name: SMTP_USER
|
|
||||||
valueFrom:
|
|
||||||
secretKeyRef:
|
|
||||||
name: gotify-smtp
|
|
||||||
key: user
|
|
||||||
- name: SMTP_PASS
|
|
||||||
valueFrom:
|
|
||||||
secretKeyRef:
|
|
||||||
name: gotify-smtp
|
|
||||||
key: password
|
|
||||||
- name: NOTIFY_EMAIL
|
|
||||||
valueFrom:
|
|
||||||
secretKeyRef:
|
|
||||||
name: gotify-smtp
|
|
||||||
key: notify-email
|
|
||||||
- name: MIN_PRIORITY
|
|
||||||
value: "5"
|
|
||||||
- name: POLL_INTERVAL
|
|
||||||
value: "15"
|
|
||||||
resources:
|
|
||||||
requests:
|
|
||||||
cpu: 10m
|
|
||||||
memory: 32Mi
|
|
||||||
limits:
|
|
||||||
cpu: 100m
|
|
||||||
memory: 64Mi
|
|
||||||
# No volumes — Postgres handles persistence
|
|
||||||
@@ -1,59 +0,0 @@
|
|||||||
apiVersion: apps/v1
|
|
||||||
kind: Deployment
|
|
||||||
metadata:
|
|
||||||
name: igotify
|
|
||||||
namespace: notifications
|
|
||||||
labels:
|
|
||||||
app: igotify
|
|
||||||
spec:
|
|
||||||
replicas: 1
|
|
||||||
strategy:
|
|
||||||
type: Recreate
|
|
||||||
selector:
|
|
||||||
matchLabels:
|
|
||||||
app: igotify
|
|
||||||
template:
|
|
||||||
metadata:
|
|
||||||
labels:
|
|
||||||
app: igotify
|
|
||||||
spec:
|
|
||||||
containers:
|
|
||||||
- name: igotify
|
|
||||||
image: ghcr.io/androidseb25/igotify-notification-assist:v1.6.0.1
|
|
||||||
ports:
|
|
||||||
- containerPort: 8080
|
|
||||||
protocol: TCP
|
|
||||||
env:
|
|
||||||
- name: ENABLE_CONSOLE_LOG
|
|
||||||
value: "true"
|
|
||||||
- name: ENABLE_SCALAR_UI
|
|
||||||
value: "true"
|
|
||||||
# GOTIFY_URLS / GOTIFY_CLIENT_TOKENS / SECNTFY_TOKENS intentionally
|
|
||||||
# left unset — not required when Gotify is reachable via public domain
|
|
||||||
# (gotify.riotpiao.com). iGotify iOS app registers itself at runtime.
|
|
||||||
volumeMounts:
|
|
||||||
- name: data
|
|
||||||
mountPath: /app/data
|
|
||||||
livenessProbe:
|
|
||||||
httpGet:
|
|
||||||
path: /Version
|
|
||||||
port: 8080
|
|
||||||
initialDelaySeconds: 10
|
|
||||||
periodSeconds: 30
|
|
||||||
readinessProbe:
|
|
||||||
httpGet:
|
|
||||||
path: /Version
|
|
||||||
port: 8080
|
|
||||||
initialDelaySeconds: 5
|
|
||||||
periodSeconds: 10
|
|
||||||
resources:
|
|
||||||
requests:
|
|
||||||
cpu: 50m
|
|
||||||
memory: 64Mi
|
|
||||||
limits:
|
|
||||||
cpu: 200m
|
|
||||||
memory: 128Mi
|
|
||||||
volumes:
|
|
||||||
- name: data
|
|
||||||
persistentVolumeClaim:
|
|
||||||
claimName: igotify-data
|
|
||||||
@@ -1,22 +0,0 @@
|
|||||||
apiVersion: networking.k8s.io/v1
|
|
||||||
kind: Ingress
|
|
||||||
metadata:
|
|
||||||
name: igotify
|
|
||||||
namespace: notifications
|
|
||||||
annotations:
|
|
||||||
nginx.ingress.kubernetes.io/proxy-read-timeout: "600"
|
|
||||||
nginx.ingress.kubernetes.io/proxy-send-timeout: "600"
|
|
||||||
nginx.ingress.kubernetes.io/proxy-http-version: "1.1"
|
|
||||||
spec:
|
|
||||||
ingressClassName: nginx
|
|
||||||
rules:
|
|
||||||
- host: igotify.riotpiao.com
|
|
||||||
http:
|
|
||||||
paths:
|
|
||||||
- path: /
|
|
||||||
pathType: Prefix
|
|
||||||
backend:
|
|
||||||
service:
|
|
||||||
name: igotify
|
|
||||||
port:
|
|
||||||
number: 80
|
|
||||||
@@ -1,11 +0,0 @@
|
|||||||
apiVersion: v1
|
|
||||||
kind: PersistentVolumeClaim
|
|
||||||
metadata:
|
|
||||||
name: igotify-data
|
|
||||||
namespace: notifications
|
|
||||||
spec:
|
|
||||||
accessModes:
|
|
||||||
- ReadWriteOnce
|
|
||||||
resources:
|
|
||||||
requests:
|
|
||||||
storage: 1Gi
|
|
||||||
@@ -1,14 +0,0 @@
|
|||||||
apiVersion: v1
|
|
||||||
kind: Service
|
|
||||||
metadata:
|
|
||||||
name: igotify
|
|
||||||
namespace: notifications
|
|
||||||
labels:
|
|
||||||
app: igotify
|
|
||||||
spec:
|
|
||||||
selector:
|
|
||||||
app: igotify
|
|
||||||
ports:
|
|
||||||
- port: 80
|
|
||||||
targetPort: 8080
|
|
||||||
protocol: TCP
|
|
||||||
@@ -1,24 +0,0 @@
|
|||||||
apiVersion: networking.k8s.io/v1
|
|
||||||
kind: Ingress
|
|
||||||
metadata:
|
|
||||||
name: gotify
|
|
||||||
namespace: notifications
|
|
||||||
annotations:
|
|
||||||
nginx.ingress.kubernetes.io/proxy-read-timeout: "600"
|
|
||||||
nginx.ingress.kubernetes.io/proxy-send-timeout: "600"
|
|
||||||
# WebSocket support for Gotify client connections (/stream endpoint)
|
|
||||||
# nginx-ingress handles Upgrade/Connection headers natively with http/1.1
|
|
||||||
nginx.ingress.kubernetes.io/proxy-http-version: "1.1"
|
|
||||||
spec:
|
|
||||||
ingressClassName: nginx
|
|
||||||
rules:
|
|
||||||
- host: gotify.riotpiao.com
|
|
||||||
http:
|
|
||||||
paths:
|
|
||||||
- path: /
|
|
||||||
pathType: Prefix
|
|
||||||
backend:
|
|
||||||
service:
|
|
||||||
name: gotify
|
|
||||||
port:
|
|
||||||
number: 80
|
|
||||||
@@ -1,12 +0,0 @@
|
|||||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
|
||||||
kind: Kustomization
|
|
||||||
resources:
|
|
||||||
- namespace.yaml
|
|
||||||
- db.yaml
|
|
||||||
- deployment.yaml
|
|
||||||
- service.yaml
|
|
||||||
- ingress.yaml
|
|
||||||
- igotify-pvc.yaml
|
|
||||||
- igotify-deployment.yaml
|
|
||||||
- igotify-service.yaml
|
|
||||||
- igotify-ingress.yaml
|
|
||||||
@@ -1,6 +0,0 @@
|
|||||||
apiVersion: v1
|
|
||||||
kind: Namespace
|
|
||||||
metadata:
|
|
||||||
name: notifications
|
|
||||||
labels:
|
|
||||||
kubernetes.io/metadata.name: notifications
|
|
||||||
@@ -1,14 +0,0 @@
|
|||||||
apiVersion: v1
|
|
||||||
kind: Service
|
|
||||||
metadata:
|
|
||||||
name: gotify
|
|
||||||
namespace: notifications
|
|
||||||
labels:
|
|
||||||
app: gotify
|
|
||||||
spec:
|
|
||||||
selector:
|
|
||||||
app: gotify
|
|
||||||
ports:
|
|
||||||
- port: 80
|
|
||||||
targetPort: 80
|
|
||||||
protocol: TCP
|
|
||||||
@@ -18,7 +18,7 @@ metadata:
|
|||||||
annotations:
|
annotations:
|
||||||
argocd.argoproj.io/sync-options: SkipDryRunOnMissingResource=true
|
argocd.argoproj.io/sync-options: SkipDryRunOnMissingResource=true
|
||||||
spec:
|
spec:
|
||||||
instances: 3
|
instances: 2
|
||||||
imageName: ghcr.io/cloudnative-pg/postgresql:18-minimal-trixie
|
imageName: ghcr.io/cloudnative-pg/postgresql:18-minimal-trixie
|
||||||
postgresql:
|
postgresql:
|
||||||
extensions:
|
extensions:
|
||||||
|
|||||||
@@ -45,14 +45,6 @@ spec:
|
|||||||
volumeMounts:
|
volumeMounts:
|
||||||
- mountPath: /mnt/models
|
- mountPath: /mnt/models
|
||||||
name: models
|
name: models
|
||||||
podMetadata:
|
|
||||||
annotations:
|
|
||||||
prometheus.io/scrape: "true"
|
|
||||||
prometheus.io/port: "8080"
|
|
||||||
prometheus.io/path: "/metrics"
|
|
||||||
labels:
|
|
||||||
app.kubernetes.io/name: llm-embeddings
|
|
||||||
app.kubernetes.io/part-of: llm-serving
|
|
||||||
maxReplicas: 1
|
maxReplicas: 1
|
||||||
minReplicas: 1
|
minReplicas: 1
|
||||||
nodeSelector:
|
nodeSelector:
|
||||||
|
|||||||
@@ -14,7 +14,6 @@ resources:
|
|||||||
- ornith.yaml
|
- ornith.yaml
|
||||||
- reasoning.yaml
|
- reasoning.yaml
|
||||||
- reranker.yaml
|
- reranker.yaml
|
||||||
- qwen-cpu.yaml
|
|
||||||
- networkpolicy.yaml
|
- networkpolicy.yaml
|
||||||
# No namespace transformer: every file sets its own, and the transformer would
|
# No namespace transformer: every file sets its own, and the transformer would
|
||||||
# rewrite metadata.namespace on anything cross-namespace added later.
|
# rewrite metadata.namespace on anything cross-namespace added later.
|
||||||
|
|||||||
@@ -52,20 +52,6 @@ spec:
|
|||||||
port: 8080
|
port: 8080
|
||||||
- protocol: TCP
|
- protocol: TCP
|
||||||
port: 9000
|
port: 9000
|
||||||
# Allow from paperless namespace (paperless-ai auto-tagging)
|
|
||||||
# Bypasses gateway until service-account JWT token exchange is implemented.
|
|
||||||
# paperless-ai-agent has llm:inference role in Authentik.
|
|
||||||
- from:
|
|
||||||
- namespaceSelector:
|
|
||||||
matchLabels:
|
|
||||||
kubernetes.io/metadata.name: paperless
|
|
||||||
ports:
|
|
||||||
- protocol: TCP
|
|
||||||
port: 8080
|
|
||||||
- protocol: TCP
|
|
||||||
port: 80
|
|
||||||
- protocol: TCP
|
|
||||||
port: 8000
|
|
||||||
# Allow intra-namespace (pod-to-pod within llm-serving)
|
# Allow intra-namespace (pod-to-pod within llm-serving)
|
||||||
- from:
|
- from:
|
||||||
- podSelector:
|
- podSelector:
|
||||||
|
|||||||
@@ -33,8 +33,12 @@ spec:
|
|||||||
|
|
||||||
ollama pull ornith:35b
|
ollama pull ornith:35b
|
||||||
|
|
||||||
|
ollama pull qwen2.5:3b-instruct
|
||||||
|
|
||||||
ollama run ornith:35b "ok" >/dev/null 2>&1 || true
|
ollama run ornith:35b "ok" >/dev/null 2>&1 || true
|
||||||
|
|
||||||
|
ollama run qwen2.5:3b-instruct "ok" >/dev/null 2>&1 || true
|
||||||
|
|
||||||
wait $SERVE_PID
|
wait $SERVE_PID
|
||||||
|
|
||||||
'
|
'
|
||||||
@@ -44,13 +48,13 @@ spec:
|
|||||||
- name: OLLAMA_MODELS
|
- name: OLLAMA_MODELS
|
||||||
value: /mnt/models/ollama
|
value: /mnt/models/ollama
|
||||||
- name: OLLAMA_CONTEXT_LENGTH
|
- name: OLLAMA_CONTEXT_LENGTH
|
||||||
value: '65536'
|
value: '32768'
|
||||||
- name: OLLAMA_KEEP_ALIVE
|
- name: OLLAMA_KEEP_ALIVE
|
||||||
value: '-1'
|
value: '-1'
|
||||||
- name: OLLAMA_NUM_PARALLEL
|
- name: OLLAMA_NUM_PARALLEL
|
||||||
value: '1'
|
value: '1'
|
||||||
- name: OLLAMA_MAX_LOADED_MODELS
|
- name: OLLAMA_MAX_LOADED_MODELS
|
||||||
value: '1'
|
value: '2'
|
||||||
image: ollama/ollama:0.32.9@sha256:1685741456770df6e3cceb2a945a5f75e020f658d1701509668d6f4688f1dd3f
|
image: ollama/ollama:0.32.9@sha256:1685741456770df6e3cceb2a945a5f75e020f658d1701509668d6f4688f1dd3f
|
||||||
name: kserve-container
|
name: kserve-container
|
||||||
ports:
|
ports:
|
||||||
@@ -61,7 +65,8 @@ spec:
|
|||||||
command:
|
command:
|
||||||
- /bin/sh
|
- /bin/sh
|
||||||
- -c
|
- -c
|
||||||
- ollama ps 2>/dev/null | grep -q ornith
|
- ollama ps 2>/dev/null | grep -q ornith && ollama ps 2>/dev/null |
|
||||||
|
grep -q qwen2.5
|
||||||
periodSeconds: 10
|
periodSeconds: 10
|
||||||
resources:
|
resources:
|
||||||
limits:
|
limits:
|
||||||
@@ -77,26 +82,22 @@ spec:
|
|||||||
command:
|
command:
|
||||||
- /bin/sh
|
- /bin/sh
|
||||||
- -c
|
- -c
|
||||||
- ollama ps 2>/dev/null | grep -q ornith
|
- ollama ps 2>/dev/null | grep -q ornith && ollama ps 2>/dev/null |
|
||||||
|
grep -q qwen2.5
|
||||||
failureThreshold: 120
|
failureThreshold: 120
|
||||||
periodSeconds: 15
|
periodSeconds: 15
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- mountPath: /mnt/models
|
- mountPath: /mnt/models
|
||||||
name: models
|
name: models
|
||||||
podMetadata:
|
|
||||||
annotations:
|
|
||||||
prometheus.io/scrape: "true"
|
|
||||||
prometheus.io/port: "8080"
|
|
||||||
prometheus.io/path: "/metrics"
|
|
||||||
labels:
|
|
||||||
app.kubernetes.io/name: llm-ornith
|
|
||||||
app.kubernetes.io/part-of: llm-serving
|
|
||||||
deploymentStrategy:
|
deploymentStrategy:
|
||||||
type: Recreate
|
type: Recreate
|
||||||
# 1 replica -- ornith:35b only. qwen2.5:3b moved to CPU on cp-2.
|
# 2 replicas -- each its own GPU, each loading both ornith:35b and
|
||||||
# Frees 1 GPU for ComfyUI.
|
# qwen2.5:3b-instruct -- so 2 concurrent implementer-style calls each
|
||||||
maxReplicas: 1
|
# get an independent instance instead of contending on one, at the
|
||||||
minReplicas: 1
|
# cost of judge/qwen traffic still sharing whichever replica an
|
||||||
|
# implementer call also lands on.
|
||||||
|
maxReplicas: 2
|
||||||
|
minReplicas: 2
|
||||||
nodeSelector:
|
nodeSelector:
|
||||||
kubernetes.io/hostname: worker-1
|
kubernetes.io/hostname: worker-1
|
||||||
runtimeClassName: nvidia
|
runtimeClassName: nvidia
|
||||||
|
|||||||
@@ -1,115 +0,0 @@
|
|||||||
# qwen2.5:3b-instruct on CPU (talos-cp-2, 144GB RAM, 24 cores).
|
|
||||||
# Moved off GPU to free a V100 for ComfyUI. Latency ~10x slower
|
|
||||||
# than GPU but sufficient for lightweight tasks (summarization,
|
|
||||||
# classification, quick answers).
|
|
||||||
apiVersion: apps/v1
|
|
||||||
kind: Deployment
|
|
||||||
metadata:
|
|
||||||
name: qwen-cpu
|
|
||||||
namespace: llm-serving
|
|
||||||
labels:
|
|
||||||
app: qwen-cpu
|
|
||||||
app.kubernetes.io/name: qwen-cpu
|
|
||||||
app.kubernetes.io/part-of: llm-serving
|
|
||||||
spec:
|
|
||||||
replicas: 1
|
|
||||||
strategy:
|
|
||||||
type: Recreate
|
|
||||||
selector:
|
|
||||||
matchLabels:
|
|
||||||
app: qwen-cpu
|
|
||||||
template:
|
|
||||||
metadata:
|
|
||||||
labels:
|
|
||||||
app: qwen-cpu
|
|
||||||
app.kubernetes.io/name: qwen-cpu
|
|
||||||
app.kubernetes.io/part-of: llm-serving
|
|
||||||
spec:
|
|
||||||
nodeSelector:
|
|
||||||
kubernetes.io/hostname: talos-cp-2
|
|
||||||
tolerations:
|
|
||||||
- key: node-role.kubernetes.io/control-plane
|
|
||||||
operator: Exists
|
|
||||||
effect: NoSchedule
|
|
||||||
containers:
|
|
||||||
- name: ollama
|
|
||||||
image: ollama/ollama:0.32.9@sha256:1685741456770df6e3cceb2a945a5f75e020f658d1701509668d6f4688f1dd3f
|
|
||||||
command: ["/bin/sh", "-c"]
|
|
||||||
args:
|
|
||||||
- |
|
|
||||||
ollama serve &
|
|
||||||
SERVE_PID=$!
|
|
||||||
until ollama list >/dev/null 2>&1; do sleep 2; done
|
|
||||||
ollama pull qwen2.5:3b-instruct
|
|
||||||
ollama run qwen2.5:3b-instruct "ok" >/dev/null 2>&1 || true
|
|
||||||
wait $SERVE_PID
|
|
||||||
env:
|
|
||||||
- name: OLLAMA_HOST
|
|
||||||
value: "0.0.0.0:8080"
|
|
||||||
- name: OLLAMA_MODELS
|
|
||||||
value: /root/.ollama/models
|
|
||||||
- name: OLLAMA_CONTEXT_LENGTH
|
|
||||||
value: "32768"
|
|
||||||
- name: OLLAMA_KEEP_ALIVE
|
|
||||||
value: "-1"
|
|
||||||
- name: OLLAMA_MAX_LOADED_MODELS
|
|
||||||
value: "1"
|
|
||||||
- name: OLLAMA_NUM_PARALLEL
|
|
||||||
value: "2"
|
|
||||||
ports:
|
|
||||||
- containerPort: 8080
|
|
||||||
protocol: TCP
|
|
||||||
readinessProbe:
|
|
||||||
exec:
|
|
||||||
command: ["/bin/sh", "-c", "ollama ps 2>/dev/null | grep -q qwen2.5"]
|
|
||||||
periodSeconds: 10
|
|
||||||
startupProbe:
|
|
||||||
exec:
|
|
||||||
command: ["/bin/sh", "-c", "ollama ps 2>/dev/null | grep -q qwen2.5"]
|
|
||||||
failureThreshold: 60
|
|
||||||
periodSeconds: 10
|
|
||||||
resources:
|
|
||||||
requests:
|
|
||||||
cpu: "4"
|
|
||||||
memory: 4Gi
|
|
||||||
limits:
|
|
||||||
cpu: "8"
|
|
||||||
memory: 8Gi
|
|
||||||
volumeMounts:
|
|
||||||
- mountPath: /root/.ollama
|
|
||||||
name: ollama-data
|
|
||||||
volumes:
|
|
||||||
- name: ollama-data
|
|
||||||
persistentVolumeClaim:
|
|
||||||
claimName: qwen-cpu-data
|
|
||||||
---
|
|
||||||
apiVersion: v1
|
|
||||||
kind: Service
|
|
||||||
metadata:
|
|
||||||
name: qwen-cpu
|
|
||||||
namespace: llm-serving
|
|
||||||
labels:
|
|
||||||
app: qwen-cpu
|
|
||||||
app.kubernetes.io/part-of: llm-serving
|
|
||||||
spec:
|
|
||||||
selector:
|
|
||||||
app: qwen-cpu
|
|
||||||
ports:
|
|
||||||
- port: 80
|
|
||||||
targetPort: 8080
|
|
||||||
protocol: TCP
|
|
||||||
---
|
|
||||||
# Small PVC for qwen2.5:3b model weights (~1.9GB).
|
|
||||||
# Separate from llm-models PVC which is pinned to worker-1.
|
|
||||||
apiVersion: v1
|
|
||||||
kind: PersistentVolumeClaim
|
|
||||||
metadata:
|
|
||||||
name: qwen-cpu-data
|
|
||||||
namespace: llm-serving
|
|
||||||
spec:
|
|
||||||
accessModes:
|
|
||||||
- ReadWriteOnce
|
|
||||||
storageClassName: longhorn
|
|
||||||
resources:
|
|
||||||
requests:
|
|
||||||
storage: 5Gi
|
|
||||||
@@ -28,14 +28,9 @@ spec:
|
|||||||
# KV cache math: 256KB/token total (64 layers, 8 KV heads, 128
|
# KV cache math: 256KB/token total (64 layers, 8 KV heads, 128
|
||||||
# head_dim, fp16), PP=2 splits both weights and KV load ~evenly, so
|
# head_dim, fp16), PP=2 splits both weights and KV load ~evenly, so
|
||||||
# each GPU carries ~9.67GB weights + ~128KB/token KV. At
|
# each GPU carries ~9.67GB weights + ~128KB/token KV. At
|
||||||
# gpu-memory-utilization=0.95 (30.4GB/GPU usable), that leaves
|
# gpu-memory-utilization=0.90 (28.8GB/GPU usable), that leaves
|
||||||
# ~20.7GB/GPU for KV cache. NOTE this is a projection, not a
|
# ~19.1GB/GPU for KV cache -> ~156k tokens/GPU capacity, comfortably
|
||||||
# measurement: the live reading at 0.90 is num_gpu_blocks=9527 x
|
# above the 131072 target with room to spare -- the old
|
||||||
# block_size=16 = 152,432 tokens (vllm:cache_config_info). Re-read that
|
|
||||||
# metric after the rollout -- max_num_batched_tokens=8192 also raises
|
|
||||||
# activation memory out of the same budget, so the post-boot
|
|
||||||
# num_gpu_blocks is the authoritative number, and --max-num-seqs=5 is
|
|
||||||
# only valid if it still covers 2x65k + 3x8k. The old
|
|
||||||
# OffloadingConnector CPU-DRAM spillover (tuned for the previous
|
# OffloadingConnector CPU-DRAM spillover (tuned for the previous
|
||||||
# model's much smaller 16384 context) is no longer needed and is
|
# model's much smaller 16384 context) is no longer needed and is
|
||||||
# dropped. Staying on PP=2 and vLLM 0.11.0 (no version bump needed,
|
# dropped. Staying on PP=2 and vLLM 0.11.0 (no version bump needed,
|
||||||
@@ -59,37 +54,10 @@ spec:
|
|||||||
- --tensor-parallel-size=1
|
- --tensor-parallel-size=1
|
||||||
- --pipeline-parallel-size=2
|
- --pipeline-parallel-size=2
|
||||||
- --max-model-len=131072
|
- --max-model-len=131072
|
||||||
- --gpu-memory-utilization=0.95
|
- --gpu-memory-utilization=0.90
|
||||||
- --max-num-seqs=5
|
- --max-num-seqs=4
|
||||||
# Prefill scheduling -- see the measured starvation this fixes.
|
|
||||||
# V1's scheduler has no prefill/decode phase: it walks self.running and
|
|
||||||
# hands out tokens from one shared budget (vllm/v1/core/sched/scheduler.py:
|
|
||||||
# "There's no decoding phase nor prefill phase in the scheduler"). The cap
|
|
||||||
# per request is applied BEFORE the budget clamp:
|
|
||||||
# if 0 < long_prefill_token_threshold < num_new_tokens: take = threshold
|
|
||||||
# take = min(take, token_budget)
|
|
||||||
# The loop is `while ... and token_budget > 0`. With the threshold at its
|
|
||||||
# default of 0 the cap is disabled, so one long prompt takes the ENTIRE
|
|
||||||
# budget, token_budget hits 0, the loop exits and every other request is
|
|
||||||
# skipped for that step -- measured as 262 tok/s contended prefill and
|
|
||||||
# 0.0-0.1 tok/s generation for everything else, Running: 2-4 reqs.
|
|
||||||
# Hence threshold must be strictly BELOW the budget or it never binds:
|
|
||||||
# at 8192/8192 a single request is served per step (still starved), while
|
|
||||||
# 8192/2048 serves four. Verified by replaying the loop.
|
|
||||||
- --max-num-batched-tokens=8192
|
|
||||||
- --long-prefill-token-threshold=2048
|
|
||||||
- --enable-chunked-prefill
|
- --enable-chunked-prefill
|
||||||
- --enable-prefix-caching
|
- --enable-prefix-caching
|
||||||
#
|
|
||||||
# NOT set, deliberately: --max-num-partial-prefills and
|
|
||||||
# --max-long-partial-prefills. Those are V0-only knobs. vLLM 0.11.0 ships
|
|
||||||
# V1 only (vllm/core/ absent), and EngineArgs._is_v1_supported_oracle
|
|
||||||
# rejects any value other than the default for either one, calling
|
|
||||||
# _raise_or_fallback("Concurrent Partial Prefill") -> "Falling back to V0"
|
|
||||||
# -> AssertionError, because there is no V0 engine to fall back to.
|
|
||||||
# The Deployment uses strategy Recreate, so setting them is an outage.
|
|
||||||
# V1 does concurrent chunked prefill natively; it needs no flag, only the
|
|
||||||
# budget/threshold ratio above.
|
|
||||||
# qwen3 is vLLM's dedicated reasoning parser for this family's <think>
|
# qwen3 is vLLM's dedicated reasoning parser for this family's <think>
|
||||||
# blocks.
|
# blocks.
|
||||||
- --reasoning-parser=qwen3
|
- --reasoning-parser=qwen3
|
||||||
@@ -136,14 +104,6 @@ spec:
|
|||||||
name: models
|
name: models
|
||||||
- mountPath: /dev/shm
|
- mountPath: /dev/shm
|
||||||
name: shm
|
name: shm
|
||||||
podMetadata:
|
|
||||||
annotations:
|
|
||||||
prometheus.io/scrape: "true"
|
|
||||||
prometheus.io/port: "8080"
|
|
||||||
prometheus.io/path: "/metrics"
|
|
||||||
labels:
|
|
||||||
app.kubernetes.io/name: llm-reasoning
|
|
||||||
app.kubernetes.io/part-of: llm-serving
|
|
||||||
deploymentStrategy:
|
deploymentStrategy:
|
||||||
type: Recreate
|
type: Recreate
|
||||||
maxReplicas: 1
|
maxReplicas: 1
|
||||||
|
|||||||
@@ -45,14 +45,6 @@ spec:
|
|||||||
volumeMounts:
|
volumeMounts:
|
||||||
- mountPath: /mnt/models
|
- mountPath: /mnt/models
|
||||||
name: models
|
name: models
|
||||||
podMetadata:
|
|
||||||
annotations:
|
|
||||||
prometheus.io/scrape: "true"
|
|
||||||
prometheus.io/port: "8080"
|
|
||||||
prometheus.io/path: "/metrics"
|
|
||||||
labels:
|
|
||||||
app.kubernetes.io/name: llm-reranker
|
|
||||||
app.kubernetes.io/part-of: llm-serving
|
|
||||||
maxReplicas: 1
|
maxReplicas: 1
|
||||||
minReplicas: 1
|
minReplicas: 1
|
||||||
nodeSelector:
|
nodeSelector:
|
||||||
|
|||||||
@@ -12,19 +12,6 @@ rules:
|
|||||||
- apiGroups: ["kmsvc.io"]
|
- apiGroups: ["kmsvc.io"]
|
||||||
resources: ["queues"]
|
resources: ["queues"]
|
||||||
verbs: ["get", "list", "watch", "update", "patch"]
|
verbs: ["get", "list", "watch", "update", "patch"]
|
||||||
# The operator watches TemporalWorker objects and creates Deployments for
|
|
||||||
# them. Without these two rules the controller logs
|
|
||||||
# "cannot list resource temporalworkers/deployments ... at the cluster scope"
|
|
||||||
# and never reconciles.
|
|
||||||
- apiGroups: ["kmsvc.io"]
|
|
||||||
resources: ["temporalworkers"]
|
|
||||||
verbs: ["get", "list", "watch", "update", "patch"]
|
|
||||||
- apiGroups: ["kmsvc.io"]
|
|
||||||
resources: ["temporalworkers/status"]
|
|
||||||
verbs: ["get", "update", "patch"]
|
|
||||||
- apiGroups: ["apps"]
|
|
||||||
resources: ["deployments"]
|
|
||||||
verbs: ["get", "list", "watch", "create", "update", "patch"]
|
|
||||||
- apiGroups: ["kmsvc.io"]
|
- apiGroups: ["kmsvc.io"]
|
||||||
resources: ["queues/status"]
|
resources: ["queues/status"]
|
||||||
verbs: ["get", "update", "patch"]
|
verbs: ["get", "update", "patch"]
|
||||||
|
|||||||
@@ -48,7 +48,7 @@ spec:
|
|||||||
mountPath: /backup
|
mountPath: /backup
|
||||||
containers:
|
containers:
|
||||||
- name: mc-mirror
|
- name: mc-mirror
|
||||||
image: docker.io/bitnamilegacy/minio-client:2025.7.21-debian-12-r3@sha256:73bd39f7899a0cef12b8dd5df13aa93a3ed1aaa44236542442e9ac76819ac158
|
image: minio/mc:latest
|
||||||
env:
|
env:
|
||||||
- name: ACCESS_KEY
|
- name: ACCESS_KEY
|
||||||
valueFrom:
|
valueFrom:
|
||||||
|
|||||||
@@ -20,7 +20,3 @@ data:
|
|||||||
# wire up allauth's confirm-email view, so signup 500s with NoReverseMatch
|
# wire up allauth's confirm-email view, so signup 500s with NoReverseMatch
|
||||||
# on 'account_confirm_email' without this.
|
# on 'account_confirm_email' without this.
|
||||||
PAPERLESS_ACCOUNT_EMAIL_VERIFICATION: "none"
|
PAPERLESS_ACCOUNT_EMAIL_VERIFICATION: "none"
|
||||||
# Auto-connect social accounts to existing users with matching email
|
|
||||||
PAPERLESS_SOCIAL_AUTO_SIGNUP: "true"
|
|
||||||
# Allow automatic linking of social accounts to existing users
|
|
||||||
PAPERLESS_ACCOUNT_ALLOW_SIGNUPS: "true"
|
|
||||||
|
|||||||
@@ -4,7 +4,6 @@ namespace: paperless
|
|||||||
resources:
|
resources:
|
||||||
- pvc.yaml
|
- pvc.yaml
|
||||||
- configmap.yaml
|
- configmap.yaml
|
||||||
- paperless-ai-config.yaml
|
|
||||||
- redis.yaml
|
- redis.yaml
|
||||||
- deployment.yaml
|
- deployment.yaml
|
||||||
- service.yaml
|
- service.yaml
|
||||||
@@ -12,7 +11,6 @@ resources:
|
|||||||
- backup-cronjob.yaml
|
- backup-cronjob.yaml
|
||||||
- adapter-configmap.yaml
|
- adapter-configmap.yaml
|
||||||
- rbac.yaml
|
- rbac.yaml
|
||||||
- paperless-ai.yaml
|
|
||||||
# postgres: paperless-db CNPG Cluster, deployed by k8s/infra/databases (wave 2,
|
# postgres: paperless-db CNPG Cluster, deployed by k8s/infra/databases (wave 2,
|
||||||
# before this app at wave 8) - not duplicated here. Same for the paperless-oidc
|
# before this app at wave 8) - not duplicated here. Same for the paperless-oidc
|
||||||
# and paperless-minio-creds Secrets, written by PostSync provisioning Jobs in
|
# and paperless-minio-creds Secrets, written by PostSync provisioning Jobs in
|
||||||
|
|||||||
@@ -1,49 +0,0 @@
|
|||||||
apiVersion: v1
|
|
||||||
kind: ConfigMap
|
|
||||||
metadata:
|
|
||||||
name: paperless-ai-env
|
|
||||||
namespace: paperless
|
|
||||||
data:
|
|
||||||
paperless-ai-config.env: |
|
|
||||||
# Paperless-NGX API configuration
|
|
||||||
PAPERLESS_URL=http://paperless.paperless.svc.cluster.local:8000
|
|
||||||
PAPERLESS_API_TOKEN=7b89463e04c141f4172fbcddf78d623547d327ec
|
|
||||||
|
|
||||||
# AI Processing settings
|
|
||||||
ENABLE_AI_PROCESSING=yes
|
|
||||||
AI_MODEL=reasoning
|
|
||||||
LLM_API_URL=https://api.riotpiao.com/v1
|
|
||||||
LLM_API_TOKEN_FILE=/app/data/llm_token.txt
|
|
||||||
|
|
||||||
# Auto-tagging configuration
|
|
||||||
ENABLE_AUTO_TAGGING=yes
|
|
||||||
ENABLE_CORRESPONDENT_EXTRACTION=yes
|
|
||||||
ENABLE_DOCUMENT_TYPE_EXTRACTION=yes
|
|
||||||
ENABLE_TITLE_GENERATION=yes
|
|
||||||
|
|
||||||
# Advanced tagging with AI
|
|
||||||
ENABLE_INTELLIGENT_TAGGING=yes
|
|
||||||
ENABLE_DATE_EXTRACTION=yes
|
|
||||||
ENABLE_TIMELINE_TAGGING=yes
|
|
||||||
AUTO_CREATE_TAGS=yes
|
|
||||||
|
|
||||||
# Tagging prompts for custom extraction
|
|
||||||
CUSTOM_EXTRACTION_PROMPT=Extract document date, time period, financial year, and temporal context. Create tags like YYYY, Q1-YYYY, Last-Month, Current-Year, Historic
|
|
||||||
TAG_EXTRACTION_MODEL=reasoning
|
|
||||||
|
|
||||||
# Scanning behavior
|
|
||||||
SCAN_INTERVAL_SECONDS=60
|
|
||||||
PROCESS_EXISTING_DOCUMENTS=no
|
|
||||||
ADD_AI_TAG=yes
|
|
||||||
AI_TAG_NAME=ai-processed
|
|
||||||
|
|
||||||
# Date/Timeline tagging configuration
|
|
||||||
DATE_EXTRACTION_FORMAT=iso8601
|
|
||||||
TIMELINE_TAG_GRANULARITY=year,quarter,month
|
|
||||||
AUTO_TAG_HISTORICAL=yes
|
|
||||||
AUTO_TAG_RECENT=yes
|
|
||||||
|
|
||||||
# Performance
|
|
||||||
MAX_CONCURRENT_REQUESTS=2
|
|
||||||
REQUEST_TIMEOUT=60
|
|
||||||
DATE_EXTRACTION_TIMEOUT=30
|
|
||||||
@@ -1,127 +0,0 @@
|
|||||||
apiVersion: v1
|
|
||||||
kind: PersistentVolumeClaim
|
|
||||||
metadata:
|
|
||||||
name: paperless-ai-data
|
|
||||||
namespace: paperless
|
|
||||||
spec:
|
|
||||||
accessModes:
|
|
||||||
- ReadWriteOnce
|
|
||||||
storageClassName: longhorn
|
|
||||||
resources:
|
|
||||||
requests:
|
|
||||||
storage: 2Gi
|
|
||||||
---
|
|
||||||
apiVersion: apps/v1
|
|
||||||
kind: Deployment
|
|
||||||
metadata:
|
|
||||||
name: paperless-ai
|
|
||||||
namespace: paperless
|
|
||||||
labels:
|
|
||||||
app.kubernetes.io/name: paperless-ai
|
|
||||||
spec:
|
|
||||||
replicas: 1
|
|
||||||
selector:
|
|
||||||
matchLabels:
|
|
||||||
app.kubernetes.io/name: paperless-ai
|
|
||||||
template:
|
|
||||||
metadata:
|
|
||||||
labels:
|
|
||||||
app.kubernetes.io/name: paperless-ai
|
|
||||||
spec:
|
|
||||||
tolerations:
|
|
||||||
- key: node-role.kubernetes.io/control-plane
|
|
||||||
operator: Exists
|
|
||||||
effect: NoSchedule
|
|
||||||
|
|
||||||
volumes:
|
|
||||||
- name: paperless-ai-data
|
|
||||||
persistentVolumeClaim:
|
|
||||||
claimName: paperless-ai-data
|
|
||||||
|
|
||||||
initContainers:
|
|
||||||
- name: fetch-llm-token
|
|
||||||
image: curlimages/curl:8.12.0
|
|
||||||
command:
|
|
||||||
- sh
|
|
||||||
- -c
|
|
||||||
- |
|
|
||||||
set -e
|
|
||||||
echo "[init] Fetching JWT token from Authentik for paperless-ai-agent..."
|
|
||||||
|
|
||||||
# Get JWT token via client_credentials grant
|
|
||||||
TOKEN_RESPONSE=$(curl -s -X POST https://authentik.riotpiao.com/application/o/token/ \
|
|
||||||
-d "grant_type=client_credentials" \
|
|
||||||
-d "client_id=paperless-ai-agent" \
|
|
||||||
-d "client_secret=29skAhE0tBzWn0qrPvmPTQMva0joFjcCr7msDQr_VXQ" \
|
|
||||||
-d "scope=openid llm:inference" 2>/dev/null)
|
|
||||||
|
|
||||||
# Extract token
|
|
||||||
TOKEN=$(echo "$TOKEN_RESPONSE" | grep -o '"access_token":"[^"]*' | cut -d'"' -f4)
|
|
||||||
|
|
||||||
if [ -z "$TOKEN" ]; then
|
|
||||||
echo "[error] Failed to get token. Response: $TOKEN_RESPONSE"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Store token in file for main container to read
|
|
||||||
mkdir -p /data
|
|
||||||
echo "$TOKEN" > /data/llm_token.txt
|
|
||||||
echo "[init] Token fetched and stored successfully"
|
|
||||||
volumeMounts:
|
|
||||||
- name: paperless-ai-data
|
|
||||||
mountPath: /data
|
|
||||||
|
|
||||||
containers:
|
|
||||||
- name: paperless-ai
|
|
||||||
image: clusterzx/paperless-ai:latest
|
|
||||||
imagePullPolicy: Always
|
|
||||||
env:
|
|
||||||
# Paperless-ngx connection
|
|
||||||
- name: PAPERLESS_API_URL
|
|
||||||
value: "http://paperless.paperless.svc.cluster.local:8000"
|
|
||||||
- name: PAPERLESS_API_TOKEN
|
|
||||||
valueFrom:
|
|
||||||
secretKeyRef:
|
|
||||||
name: paperless-ai-config
|
|
||||||
key: PAPERLESS_API_TOKEN
|
|
||||||
- name: PAPERLESS_USERNAME
|
|
||||||
value: "admin"
|
|
||||||
|
|
||||||
# LLM API configuration
|
|
||||||
- name: AI_PROVIDER
|
|
||||||
value: "custom"
|
|
||||||
- name: CUSTOM_BASE_URL
|
|
||||||
value: "https://api.riotpiao.com/v1"
|
|
||||||
# Token file created by init container with JWT from Authentik
|
|
||||||
- name: CUSTOM_API_KEY_FILE
|
|
||||||
value: "/app/data/llm_token.txt"
|
|
||||||
- name: CUSTOM_MODEL
|
|
||||||
value: "qwen2.5:3b-instruct"
|
|
||||||
|
|
||||||
# Scanning behavior
|
|
||||||
- name: SCAN_INTERVAL
|
|
||||||
value: "60"
|
|
||||||
- name: PROCESS_PREDEFINED_DOCUMENTS
|
|
||||||
value: "no"
|
|
||||||
|
|
||||||
# Tagging configuration
|
|
||||||
- name: ADD_AI_TAG
|
|
||||||
value: "yes"
|
|
||||||
- name: AI_TAG_NAME
|
|
||||||
value: "ai-processed"
|
|
||||||
- name: ADD_AI_DESCRIPTIONS
|
|
||||||
value: "yes"
|
|
||||||
- name: USE_PROMPT_TAGS
|
|
||||||
value: "yes"
|
|
||||||
|
|
||||||
volumeMounts:
|
|
||||||
- name: paperless-ai-data
|
|
||||||
mountPath: /app/data
|
|
||||||
|
|
||||||
resources:
|
|
||||||
requests:
|
|
||||||
cpu: 100m
|
|
||||||
memory: 512Mi
|
|
||||||
limits:
|
|
||||||
cpu: "1"
|
|
||||||
memory: 2Gi
|
|
||||||
@@ -1,127 +0,0 @@
|
|||||||
# Secret paperless-ai-config managed via SOPS (argocd/secrets/paperless-ai-secrets.enc.yaml)
|
|
||||||
---
|
|
||||||
apiVersion: apps/v1
|
|
||||||
kind: Deployment
|
|
||||||
metadata:
|
|
||||||
name: paperless-ai
|
|
||||||
namespace: paperless
|
|
||||||
labels:
|
|
||||||
app.kubernetes.io/name: paperless-ai
|
|
||||||
spec:
|
|
||||||
replicas: 1
|
|
||||||
selector:
|
|
||||||
matchLabels:
|
|
||||||
app.kubernetes.io/name: paperless-ai
|
|
||||||
template:
|
|
||||||
metadata:
|
|
||||||
labels:
|
|
||||||
app.kubernetes.io/name: paperless-ai
|
|
||||||
spec:
|
|
||||||
tolerations:
|
|
||||||
- key: node-role.kubernetes.io/control-plane
|
|
||||||
operator: Exists
|
|
||||||
effect: NoSchedule
|
|
||||||
volumes:
|
|
||||||
- name: paperless-ai-data
|
|
||||||
persistentVolumeClaim:
|
|
||||||
claimName: paperless-ai-data
|
|
||||||
- name: paperless-ai-env-config
|
|
||||||
configMap:
|
|
||||||
name: paperless-ai-env
|
|
||||||
initContainers:
|
|
||||||
- name: fetch-llm-token
|
|
||||||
image: curlimages/curl:8.12.0
|
|
||||||
securityContext:
|
|
||||||
runAsUser: 0
|
|
||||||
fsGroup: 0
|
|
||||||
command:
|
|
||||||
- sh
|
|
||||||
- -c
|
|
||||||
- |
|
|
||||||
set -e
|
|
||||||
echo "[init] Fetching JWT token from Authentik for paperless-ai-agent..."
|
|
||||||
|
|
||||||
# Get JWT token via client_credentials grant
|
|
||||||
# Client secret sourced from environment (injected from paperless-ai-config Secret)
|
|
||||||
TOKEN_RESPONSE=$(curl -s -X POST https://authentik.riotpiao.com/application/o/token/ \
|
|
||||||
-d "grant_type=client_credentials" \
|
|
||||||
-d "client_id=paperless-ai-agent" \
|
|
||||||
-d "client_secret=${LLM_AUTH_CLIENT_SECRET}" \
|
|
||||||
-d "scope=openid llm:inference" 2>/dev/null)
|
|
||||||
|
|
||||||
# Extract token from JSON response using sed (handles spaces after colons)
|
|
||||||
TOKEN=$(echo "$TOKEN_RESPONSE" | sed -n 's/.*"access_token"[[:space:]]*:[[:space:]]*"\([^"]*\)".*/\1/p')
|
|
||||||
|
|
||||||
if [ -z "$TOKEN" ]; then
|
|
||||||
echo "[error] Failed to get token. Response: $TOKEN_RESPONSE"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Store token in file for main container to read
|
|
||||||
# Write to both locations for compatibility
|
|
||||||
mkdir -p /tmp/llm-token /app/data 2>/dev/null || true
|
|
||||||
echo "$TOKEN" | tee /tmp/llm-token/llm_token.txt > /dev/null 2>&1
|
|
||||||
echo "$TOKEN" > /app/data/llm_token.txt 2>/dev/null || true
|
|
||||||
echo "[init] Token fetched and stored"
|
|
||||||
[ -f /tmp/llm-token/llm_token.txt ] && echo " -> /tmp/llm-token/llm_token.txt"
|
|
||||||
[ -f /app/data/llm_token.txt ] && echo " -> /app/data/llm_token.txt"
|
|
||||||
env:
|
|
||||||
- name: LLM_AUTH_CLIENT_SECRET
|
|
||||||
valueFrom:
|
|
||||||
secretKeyRef:
|
|
||||||
name: paperless-ai-config
|
|
||||||
key: LLM_AUTH_CLIENT_SECRET
|
|
||||||
volumeMounts:
|
|
||||||
- name: paperless-ai-data
|
|
||||||
mountPath: /app/data
|
|
||||||
containers:
|
|
||||||
- name: paperless-ai
|
|
||||||
image: clusterzx/paperless-ai:latest
|
|
||||||
env:
|
|
||||||
# Paperless-ngx connection
|
|
||||||
- name: PAPERLESS_API_URL
|
|
||||||
value: "http://paperless.paperless.svc.cluster.local:8000"
|
|
||||||
- name: PAPERLESS_API_TOKEN
|
|
||||||
valueFrom:
|
|
||||||
secretKeyRef:
|
|
||||||
name: paperless-ai-config
|
|
||||||
key: PAPERLESS_API_TOKEN
|
|
||||||
- name: PAPERLESS_USERNAME
|
|
||||||
value: "admin"
|
|
||||||
# LLM API — via public gateway with JWT auth
|
|
||||||
- name: AI_PROVIDER
|
|
||||||
value: "custom"
|
|
||||||
- name: CUSTOM_BASE_URL
|
|
||||||
value: "https://api.riotpiao.com/v1"
|
|
||||||
# Token will be read from file at runtime by the application
|
|
||||||
# The init container fetches it and stores in /app/data/llm_token.txt
|
|
||||||
- name: CUSTOM_API_KEY_FILE
|
|
||||||
value: "/app/data/llm_token.txt"
|
|
||||||
- name: CUSTOM_MODEL
|
|
||||||
value: "qwen2.5:3b-instruct"
|
|
||||||
# Behavior - scan for new documents and tag them
|
|
||||||
- name: SCAN_INTERVAL
|
|
||||||
value: "60"
|
|
||||||
- name: PROCESS_PREDEFINED_DOCUMENTS
|
|
||||||
value: "no"
|
|
||||||
- name: ADD_AI_TAG
|
|
||||||
value: "yes"
|
|
||||||
- name: AI_TAG_NAME
|
|
||||||
value: "ai-processed"
|
|
||||||
- name: USE_PROMPT_TAGS
|
|
||||||
value: "yes"
|
|
||||||
- name: ADD_AI_DESCRIPTIONS
|
|
||||||
value: "yes"
|
|
||||||
volumeMounts:
|
|
||||||
- name: paperless-ai-data
|
|
||||||
mountPath: /app/data
|
|
||||||
- name: paperless-ai-env-config
|
|
||||||
mountPath: /app/data/.env
|
|
||||||
subPath: paperless-ai-config.env
|
|
||||||
resources:
|
|
||||||
requests:
|
|
||||||
cpu: 100m
|
|
||||||
memory: 512Mi
|
|
||||||
limits:
|
|
||||||
cpu: "1"
|
|
||||||
memory: 2Gi
|
|
||||||
@@ -1,24 +0,0 @@
|
|||||||
apiVersion: networking.k8s.io/v1
|
|
||||||
kind: Ingress
|
|
||||||
metadata:
|
|
||||||
name: poimen-frontend
|
|
||||||
namespace: poimen
|
|
||||||
annotations:
|
|
||||||
# Next.js SSE + LLM streaming responses need long timeouts + no buffering.
|
|
||||||
nginx.ingress.kubernetes.io/proxy-read-timeout: "3600"
|
|
||||||
nginx.ingress.kubernetes.io/proxy-send-timeout: "3600"
|
|
||||||
nginx.ingress.kubernetes.io/proxy-buffering: "off"
|
|
||||||
nginx.ingress.kubernetes.io/proxy-body-size: "10m"
|
|
||||||
spec:
|
|
||||||
ingressClassName: nginx
|
|
||||||
rules:
|
|
||||||
- host: poimen.riotpiao.com
|
|
||||||
http:
|
|
||||||
paths:
|
|
||||||
- path: /
|
|
||||||
pathType: Prefix
|
|
||||||
backend:
|
|
||||||
service:
|
|
||||||
name: poimen-frontend
|
|
||||||
port:
|
|
||||||
number: 3000
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
|
||||||
kind: Kustomization
|
|
||||||
# Edge Ingress for poimen.riotpiao.com.
|
|
||||||
# Same pattern as k8s/apps/api/ (api-gw ingress).
|
|
||||||
# App manifests (Deployment, Service, NetworkPolicy) live in
|
|
||||||
# riotpiao-poimen/poimen-frontend.git k8s/ — each repo owns its own k8s.
|
|
||||||
resources:
|
|
||||||
- ingress.yaml
|
|
||||||
@@ -40,7 +40,7 @@ spec:
|
|||||||
|
|
||||||
# Git
|
# Git
|
||||||
- name: GIT_REPO
|
- name: GIT_REPO
|
||||||
value: https://forgejo.riotpiao.com/riotpiao-poimen/homelab.git
|
value: https://forgejo.riotpiao.com/rock/homelab.git
|
||||||
- name: GIT_AUTHOR_EMAIL
|
- name: GIT_AUTHOR_EMAIL
|
||||||
value: [email protected]
|
value: [email protected]
|
||||||
- name: GIT_AUTHOR_NAME
|
- name: GIT_AUTHOR_NAME
|
||||||
|
|||||||
@@ -34,12 +34,7 @@ metadata:
|
|||||||
app.kubernetes.io/name: macos-bluebubbles
|
app.kubernetes.io/name: macos-bluebubbles
|
||||||
app.kubernetes.io/part-of: sms
|
app.kubernetes.io/part-of: sms
|
||||||
spec:
|
spec:
|
||||||
# Scaled to 0 on 2026-10-24. The pod pinned itself to a node labelled
|
replicas: 1
|
||||||
# workload=imessage, and no such node exists any more. The PVC macos-disk also
|
|
||||||
# uses StorageClass longhorn-imessage-local, which pins the same dead node and
|
|
||||||
# stayed unbound for 71 days. The macOS guest therefore cannot start. Raise
|
|
||||||
# this to 1 again only after a KVM-capable node carries that label and taint.
|
|
||||||
replicas: 0
|
|
||||||
# Recreate: the qcow2 disk is RWO and a second pod must never attach it
|
# Recreate: the qcow2 disk is RWO and a second pod must never attach it
|
||||||
# concurrently — two QEMU processes on one image corrupts it.
|
# concurrently — two QEMU processes on one image corrupts it.
|
||||||
strategy:
|
strategy:
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ spec:
|
|||||||
prune: true
|
prune: true
|
||||||
selfHeal: true
|
selfHeal: true
|
||||||
source:
|
source:
|
||||||
repoURL: https://forgejo.riotpiao.com/riotpiao-poimen/homelab.git
|
repoURL: https://forgejo.riotpiao.com/rock/homelab.git
|
||||||
targetRevision: main
|
targetRevision: main
|
||||||
path: k8s/argocd/projects
|
path: k8s/argocd/projects
|
||||||
destination:
|
destination:
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ spec:
|
|||||||
syncOptions:
|
syncOptions:
|
||||||
- CreateNamespace=true
|
- CreateNamespace=true
|
||||||
source:
|
source:
|
||||||
repoURL: https://forgejo.riotpiao.com/riotpiao-poimen/homelab.git
|
repoURL: https://forgejo.riotpiao.com/rock/homelab.git
|
||||||
targetRevision: main
|
targetRevision: main
|
||||||
# ksops decrypts every *.enc.yaml here at kustomize-build time (repo-server
|
# ksops decrypts every *.enc.yaml here at kustomize-build time (repo-server
|
||||||
# runs `kustomize build --enable-alpha-plugins --enable-exec`). Replaces the
|
# runs `kustomize build --enable-alpha-plugins --enable-exec`). Replaces the
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ spec:
|
|||||||
helm:
|
helm:
|
||||||
valueFiles:
|
valueFiles:
|
||||||
- $values/k8s/bootstrap/cert-manager/cert-manager-values.yaml
|
- $values/k8s/bootstrap/cert-manager/cert-manager-values.yaml
|
||||||
- repoURL: https://forgejo.riotpiao.com/riotpiao-poimen/homelab.git
|
- repoURL: https://forgejo.riotpiao.com/rock/homelab.git
|
||||||
targetRevision: main
|
targetRevision: main
|
||||||
ref: values
|
ref: values
|
||||||
destination:
|
destination:
|
||||||
@@ -93,7 +93,7 @@ spec:
|
|||||||
project: homelab
|
project: homelab
|
||||||
revisionHistoryLimit: 3
|
revisionHistoryLimit: 3
|
||||||
source:
|
source:
|
||||||
repoURL: https://forgejo.riotpiao.com/riotpiao-poimen/homelab.git
|
repoURL: https://forgejo.riotpiao.com/rock/homelab.git
|
||||||
targetRevision: main
|
targetRevision: main
|
||||||
# A real kustomization.yaml (resources: the 3 issuer/CA files) renders these
|
# A real kustomization.yaml (resources: the 3 issuer/CA files) renders these
|
||||||
# deterministically. The previous directory.include with bare filenames
|
# deterministically. The previous directory.include with bare filenames
|
||||||
@@ -127,7 +127,7 @@ spec:
|
|||||||
project: homelab
|
project: homelab
|
||||||
revisionHistoryLimit: 3
|
revisionHistoryLimit: 3
|
||||||
source:
|
source:
|
||||||
repoURL: https://forgejo.riotpiao.com/riotpiao-poimen/homelab.git
|
repoURL: https://forgejo.riotpiao.com/rock/homelab.git
|
||||||
targetRevision: main
|
targetRevision: main
|
||||||
path: k8s/bootstrap/ingress
|
path: k8s/bootstrap/ingress
|
||||||
destination:
|
destination:
|
||||||
@@ -149,7 +149,7 @@ metadata:
|
|||||||
spec:
|
spec:
|
||||||
project: homelab
|
project: homelab
|
||||||
source:
|
source:
|
||||||
repoURL: https://forgejo.riotpiao.com/riotpiao-poimen/homelab.git
|
repoURL: https://forgejo.riotpiao.com/rock/homelab.git
|
||||||
targetRevision: main
|
targetRevision: main
|
||||||
path: k8s/infra/cluster-maintenance
|
path: k8s/infra/cluster-maintenance
|
||||||
destination:
|
destination:
|
||||||
@@ -177,7 +177,7 @@ spec:
|
|||||||
valueFiles:
|
valueFiles:
|
||||||
- $values/k8s/bootstrap/kyverno/kyverno-values.yaml
|
- $values/k8s/bootstrap/kyverno/kyverno-values.yaml
|
||||||
sources:
|
sources:
|
||||||
- repoURL: https://forgejo.riotpiao.com/riotpiao-poimen/homelab.git
|
- repoURL: https://forgejo.riotpiao.com/rock/homelab.git
|
||||||
targetRevision: main
|
targetRevision: main
|
||||||
ref: values
|
ref: values
|
||||||
destination:
|
destination:
|
||||||
@@ -200,7 +200,7 @@ metadata:
|
|||||||
spec:
|
spec:
|
||||||
project: homelab
|
project: homelab
|
||||||
source:
|
source:
|
||||||
repoURL: https://forgejo.riotpiao.com/riotpiao-poimen/homelab.git
|
repoURL: https://forgejo.riotpiao.com/rock/homelab.git
|
||||||
targetRevision: main
|
targetRevision: main
|
||||||
path: k8s/bootstrap/kyverno
|
path: k8s/bootstrap/kyverno
|
||||||
destination:
|
destination:
|
||||||
|
|||||||
@@ -0,0 +1,33 @@
|
|||||||
|
# ArgoCD Image Updater - auto-updates Application images from registry
|
||||||
|
# Watches forgejo.riotpiao.com for new image tags and updates Applications
|
||||||
|
apiVersion: argoproj.io/v1alpha1
|
||||||
|
kind: Application
|
||||||
|
metadata:
|
||||||
|
name: argocd-image-updater
|
||||||
|
namespace: argocd
|
||||||
|
finalizers:
|
||||||
|
- resources-finalizer.argocd.argoproj.io
|
||||||
|
annotations:
|
||||||
|
argocd.argoproj.io/sync-wave: "1"
|
||||||
|
spec:
|
||||||
|
project: homelab
|
||||||
|
revisionHistoryLimit: 3
|
||||||
|
sources:
|
||||||
|
- repoURL: https://argoproj.github.io/argo-helm
|
||||||
|
chart: argocd-image-updater
|
||||||
|
targetRevision: "0.11.2"
|
||||||
|
helm:
|
||||||
|
valueFiles:
|
||||||
|
- $values/k8s/infra/argocd-image-updater/values.yaml
|
||||||
|
- repoURL: https://forgejo.riotpiao.com/rock/homelab.git
|
||||||
|
targetRevision: main
|
||||||
|
ref: values
|
||||||
|
destination:
|
||||||
|
server: https://kubernetes.default.svc
|
||||||
|
namespace: argocd
|
||||||
|
syncPolicy:
|
||||||
|
automated:
|
||||||
|
prune: true
|
||||||
|
selfHeal: true
|
||||||
|
syncOptions:
|
||||||
|
- CreateNamespace=false
|
||||||
@@ -1,55 +0,0 @@
|
|||||||
# Tekton Pipelines v0.68.0
|
|
||||||
#
|
|
||||||
# Install method: vendored release.yaml in k8s/infra/tekton/
|
|
||||||
# downloaded from https://storage.googleapis.com/tekton-releases/pipeline/previous/v0.68.0/release.yaml
|
|
||||||
#
|
|
||||||
# To upgrade:
|
|
||||||
# 1. Download new release.yaml from https://github.com/tektoncd/pipeline/releases
|
|
||||||
# 2. Replace k8s/infra/tekton/release.yaml
|
|
||||||
# 3. Commit and push — ArgoCD syncs automatically
|
|
||||||
apiVersion: argoproj.io/v1alpha1
|
|
||||||
kind: Application
|
|
||||||
metadata:
|
|
||||||
name: tekton-pipelines
|
|
||||||
namespace: argocd
|
|
||||||
labels:
|
|
||||||
app.kubernetes.io/name: tekton-pipelines
|
|
||||||
app.kubernetes.io/part-of: homelab-infra
|
|
||||||
wave: "06"
|
|
||||||
spec:
|
|
||||||
project: homelab
|
|
||||||
|
|
||||||
source:
|
|
||||||
repoURL: https://forgejo.riotpiao.com/riotpiao-poimen/homelab.git
|
|
||||||
targetRevision: main
|
|
||||||
path: k8s/infra/tekton
|
|
||||||
|
|
||||||
destination:
|
|
||||||
server: https://kubernetes.default.svc
|
|
||||||
namespace: tekton-pipelines
|
|
||||||
|
|
||||||
syncPolicy:
|
|
||||||
automated:
|
|
||||||
prune: true
|
|
||||||
selfHeal: true
|
|
||||||
syncOptions:
|
|
||||||
- CreateNamespace=true
|
|
||||||
- ServerSideApply=true
|
|
||||||
retry:
|
|
||||||
limit: 5
|
|
||||||
backoff:
|
|
||||||
duration: 5s
|
|
||||||
factor: 2
|
|
||||||
maxDuration: 3m
|
|
||||||
|
|
||||||
ignoreDifferences:
|
|
||||||
- group: admissionregistration.k8s.io
|
|
||||||
kind: ValidatingWebhookConfiguration
|
|
||||||
jsonPointers:
|
|
||||||
- /webhooks/0/clientConfig/caBundle
|
|
||||||
- /webhooks
|
|
||||||
- group: admissionregistration.k8s.io
|
|
||||||
kind: MutatingWebhookConfiguration
|
|
||||||
jsonPointers:
|
|
||||||
- /webhooks/0/clientConfig/caBundle
|
|
||||||
- /webhooks
|
|
||||||
@@ -9,7 +9,7 @@ spec:
|
|||||||
project: homelab
|
project: homelab
|
||||||
|
|
||||||
sources:
|
sources:
|
||||||
- repoURL: https://forgejo.riotpiao.com/riotpiao-poimen/homelab.git
|
- repoURL: https://forgejo.riotpiao.com/rock/homelab.git
|
||||||
path: k8s/apps/secret-rotation-controller
|
path: k8s/apps/secret-rotation-controller
|
||||||
targetRevision: main
|
targetRevision: main
|
||||||
|
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ spec:
|
|||||||
helm:
|
helm:
|
||||||
valueFiles:
|
valueFiles:
|
||||||
- $values/k8s/infra/minio/minio-operator-values.yaml
|
- $values/k8s/infra/minio/minio-operator-values.yaml
|
||||||
- repoURL: https://forgejo.riotpiao.com/riotpiao-poimen/homelab.git
|
- repoURL: https://forgejo.riotpiao.com/rock/homelab.git
|
||||||
targetRevision: main
|
targetRevision: main
|
||||||
ref: values
|
ref: values
|
||||||
destination:
|
destination:
|
||||||
@@ -41,7 +41,7 @@ metadata:
|
|||||||
spec:
|
spec:
|
||||||
project: homelab
|
project: homelab
|
||||||
source:
|
source:
|
||||||
repoURL: https://forgejo.riotpiao.com/riotpiao-poimen/homelab.git
|
repoURL: https://forgejo.riotpiao.com/rock/homelab.git
|
||||||
targetRevision: main
|
targetRevision: main
|
||||||
path: k8s/infra/minio
|
path: k8s/infra/minio
|
||||||
destination:
|
destination:
|
||||||
@@ -66,7 +66,7 @@ metadata:
|
|||||||
spec:
|
spec:
|
||||||
project: homelab
|
project: homelab
|
||||||
source:
|
source:
|
||||||
repoURL: https://forgejo.riotpiao.com/riotpiao-poimen/homelab.git
|
repoURL: https://forgejo.riotpiao.com/rock/homelab.git
|
||||||
targetRevision: main
|
targetRevision: main
|
||||||
path: k8s/infra/longhorn
|
path: k8s/infra/longhorn
|
||||||
destination:
|
destination:
|
||||||
@@ -102,7 +102,7 @@ spec:
|
|||||||
skipCrds: true
|
skipCrds: true
|
||||||
valueFiles:
|
valueFiles:
|
||||||
- $values/k8s/infra/monitoring/prometheus-values.yaml
|
- $values/k8s/infra/monitoring/prometheus-values.yaml
|
||||||
- repoURL: https://forgejo.riotpiao.com/riotpiao-poimen/homelab.git
|
- repoURL: https://forgejo.riotpiao.com/rock/homelab.git
|
||||||
targetRevision: main
|
targetRevision: main
|
||||||
ref: values
|
ref: values
|
||||||
destination:
|
destination:
|
||||||
@@ -152,7 +152,7 @@ metadata:
|
|||||||
spec:
|
spec:
|
||||||
project: homelab
|
project: homelab
|
||||||
source:
|
source:
|
||||||
repoURL: https://forgejo.riotpiao.com/riotpiao-poimen/homelab.git
|
repoURL: https://forgejo.riotpiao.com/rock/homelab.git
|
||||||
targetRevision: main
|
targetRevision: main
|
||||||
path: k8s/infra/monitoring/crds
|
path: k8s/infra/monitoring/crds
|
||||||
destination:
|
destination:
|
||||||
@@ -183,7 +183,7 @@ metadata:
|
|||||||
spec:
|
spec:
|
||||||
project: homelab
|
project: homelab
|
||||||
source:
|
source:
|
||||||
repoURL: https://forgejo.riotpiao.com/riotpiao-poimen/homelab.git
|
repoURL: https://forgejo.riotpiao.com/rock/homelab.git
|
||||||
targetRevision: main
|
targetRevision: main
|
||||||
path: k8s/infra/monitoring
|
path: k8s/infra/monitoring
|
||||||
destination:
|
destination:
|
||||||
@@ -213,7 +213,7 @@ spec:
|
|||||||
helm:
|
helm:
|
||||||
valueFiles:
|
valueFiles:
|
||||||
- $values/k8s/infra/monitoring/blackbox-exporter-values.yaml
|
- $values/k8s/infra/monitoring/blackbox-exporter-values.yaml
|
||||||
- repoURL: https://forgejo.riotpiao.com/riotpiao-poimen/homelab.git
|
- repoURL: https://forgejo.riotpiao.com/rock/homelab.git
|
||||||
targetRevision: main
|
targetRevision: main
|
||||||
ref: values
|
ref: values
|
||||||
destination:
|
destination:
|
||||||
@@ -237,7 +237,7 @@ metadata:
|
|||||||
spec:
|
spec:
|
||||||
project: homelab
|
project: homelab
|
||||||
source:
|
source:
|
||||||
repoURL: https://forgejo.riotpiao.com/riotpiao-poimen/homelab.git
|
repoURL: https://forgejo.riotpiao.com/rock/homelab.git
|
||||||
targetRevision: main
|
targetRevision: main
|
||||||
path: k8s/infra/tracing
|
path: k8s/infra/tracing
|
||||||
destination:
|
destination:
|
||||||
@@ -249,26 +249,3 @@ spec:
|
|||||||
selfHeal: true
|
selfHeal: true
|
||||||
syncOptions:
|
syncOptions:
|
||||||
- CreateNamespace=true
|
- CreateNamespace=true
|
||||||
---
|
|
||||||
apiVersion: argoproj.io/v1alpha1
|
|
||||||
kind: Application
|
|
||||||
metadata:
|
|
||||||
name: local-path-provisioner
|
|
||||||
namespace: argocd
|
|
||||||
annotations:
|
|
||||||
argocd.argoproj.io/sync-wave: "1"
|
|
||||||
spec:
|
|
||||||
project: homelab
|
|
||||||
source:
|
|
||||||
repoURL: https://forgejo.riotpiao.com/riotpiao-poimen/homelab.git
|
|
||||||
targetRevision: main
|
|
||||||
path: k8s/infra/local-path
|
|
||||||
destination:
|
|
||||||
server: https://kubernetes.default.svc
|
|
||||||
namespace: local-path-storage
|
|
||||||
# No CreateNamespace: the Namespace object (with its privileged PSA label,
|
|
||||||
# which the helper Pods need for their hostPath) is part of the manifest.
|
|
||||||
syncPolicy:
|
|
||||||
automated:
|
|
||||||
prune: true
|
|
||||||
selfHeal: true
|
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ spec:
|
|||||||
helm:
|
helm:
|
||||||
valueFiles:
|
valueFiles:
|
||||||
- $values/k8s/infra/logging/loki-values.yaml
|
- $values/k8s/infra/logging/loki-values.yaml
|
||||||
- repoURL: https://forgejo.riotpiao.com/riotpiao-poimen/homelab.git
|
- repoURL: https://forgejo.riotpiao.com/rock/homelab.git
|
||||||
targetRevision: main
|
targetRevision: main
|
||||||
ref: values
|
ref: values
|
||||||
destination:
|
destination:
|
||||||
@@ -53,7 +53,7 @@ spec:
|
|||||||
helm:
|
helm:
|
||||||
valueFiles:
|
valueFiles:
|
||||||
- $values/k8s/infra/logging/grafana-values.yaml
|
- $values/k8s/infra/logging/grafana-values.yaml
|
||||||
- repoURL: https://forgejo.riotpiao.com/riotpiao-poimen/homelab.git
|
- repoURL: https://forgejo.riotpiao.com/rock/homelab.git
|
||||||
targetRevision: main
|
targetRevision: main
|
||||||
ref: values
|
ref: values
|
||||||
destination:
|
destination:
|
||||||
@@ -87,7 +87,7 @@ spec:
|
|||||||
helm:
|
helm:
|
||||||
valueFiles:
|
valueFiles:
|
||||||
- $values/k8s/infra/logging/promtail-values.yaml
|
- $values/k8s/infra/logging/promtail-values.yaml
|
||||||
- repoURL: https://forgejo.riotpiao.com/riotpiao-poimen/homelab.git
|
- repoURL: https://forgejo.riotpiao.com/rock/homelab.git
|
||||||
targetRevision: main
|
targetRevision: main
|
||||||
ref: values
|
ref: values
|
||||||
destination:
|
destination:
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ spec:
|
|||||||
helm:
|
helm:
|
||||||
valueFiles:
|
valueFiles:
|
||||||
- $values/k8s/infra/iam/vault-values.yaml
|
- $values/k8s/infra/iam/vault-values.yaml
|
||||||
- repoURL: https://forgejo.riotpiao.com/riotpiao-poimen/homelab.git
|
- repoURL: https://forgejo.riotpiao.com/rock/homelab.git
|
||||||
targetRevision: main
|
targetRevision: main
|
||||||
ref: values
|
ref: values
|
||||||
destination:
|
destination:
|
||||||
@@ -46,7 +46,7 @@ spec:
|
|||||||
helm:
|
helm:
|
||||||
valueFiles:
|
valueFiles:
|
||||||
- $values/k8s/infra/iam/authentik-values.yaml
|
- $values/k8s/infra/iam/authentik-values.yaml
|
||||||
- repoURL: https://forgejo.riotpiao.com/riotpiao-poimen/homelab.git
|
- repoURL: https://forgejo.riotpiao.com/rock/homelab.git
|
||||||
targetRevision: main
|
targetRevision: main
|
||||||
ref: values
|
ref: values
|
||||||
destination:
|
destination:
|
||||||
@@ -57,55 +57,6 @@ spec:
|
|||||||
prune: true
|
prune: true
|
||||||
selfHeal: true
|
selfHeal: true
|
||||||
---
|
---
|
||||||
# ZITADEL — the Authentik replacement. Coexistence, not cutover: Authentik keeps
|
|
||||||
# serving in the same `iam` namespace until the last consumer moves, then this
|
|
||||||
# becomes the only IdP. Migration plan (outside git):
|
|
||||||
# ~/workplace/homelab-doc/ZITADEL_MIGRATION.html
|
|
||||||
#
|
|
||||||
# Wave 3 ordering: sops-secrets (wave 0) creates the `zitadel-masterkey` Secret,
|
|
||||||
# databases (wave 2) creates the `zitadel-db` CNPG cluster and its
|
|
||||||
# `zitadel-db-app` DSN secret. Both must exist before the init job starts.
|
|
||||||
#
|
|
||||||
# automated sync is deliberately absent for the first sync — same reason as
|
|
||||||
# forgejo. The chart ships `pre-install,pre-upgrade` Helm hooks (zitadel-init,
|
|
||||||
# zitadel-setup), which ArgoCD maps to PreSync and re-runs on every sync, manual
|
|
||||||
# or automated. A human reads the first sync's hook output before any repeat can
|
|
||||||
# run. The init job runs `init zitadel` only (CNPG owns the database and the app
|
|
||||||
# user), and the setup job creates the first org and the `iam-admin` machine key
|
|
||||||
# that Terraform consumes. Read the SECOND-SYNC HAZARD block at the top of
|
|
||||||
# k8s/infra/iam/zitadel-values.yaml before enabling automated sync.
|
|
||||||
apiVersion: argoproj.io/v1alpha1
|
|
||||||
kind: Application
|
|
||||||
metadata:
|
|
||||||
name: zitadel
|
|
||||||
namespace: argocd
|
|
||||||
finalizers:
|
|
||||||
- resources-finalizer.argocd.argoproj.io
|
|
||||||
annotations:
|
|
||||||
argocd.argoproj.io/sync-wave: "3"
|
|
||||||
spec:
|
|
||||||
project: homelab
|
|
||||||
revisionHistoryLimit: 3
|
|
||||||
sources:
|
|
||||||
- repoURL: https://charts.zitadel.com
|
|
||||||
chart: zitadel
|
|
||||||
# Pinned: the chart trails the upstream app release, and the verified
|
|
||||||
# masterkey/passwap facts were read at v4.19.x. A floating tag would
|
|
||||||
# change the app version without a diff anyone reviews.
|
|
||||||
targetRevision: 10.4.0
|
|
||||||
helm:
|
|
||||||
valueFiles:
|
|
||||||
- $values/k8s/infra/iam/zitadel-values.yaml
|
|
||||||
- repoURL: https://forgejo.riotpiao.com/riotpiao-poimen/homelab.git
|
|
||||||
targetRevision: main
|
|
||||||
ref: values
|
|
||||||
destination:
|
|
||||||
server: https://kubernetes.default.svc
|
|
||||||
namespace: iam
|
|
||||||
syncPolicy:
|
|
||||||
syncOptions:
|
|
||||||
- CreateNamespace=true
|
|
||||||
---
|
|
||||||
# Raw IAM manifests: key-rotation cronjob + authentik migration job.
|
# Raw IAM manifests: key-rotation cronjob + authentik migration job.
|
||||||
apiVersion: argoproj.io/v1alpha1
|
apiVersion: argoproj.io/v1alpha1
|
||||||
kind: Application
|
kind: Application
|
||||||
@@ -117,7 +68,7 @@ metadata:
|
|||||||
spec:
|
spec:
|
||||||
project: homelab
|
project: homelab
|
||||||
source:
|
source:
|
||||||
repoURL: https://forgejo.riotpiao.com/riotpiao-poimen/homelab.git
|
repoURL: https://forgejo.riotpiao.com/rock/homelab.git
|
||||||
targetRevision: main
|
targetRevision: main
|
||||||
path: k8s/infra/iam
|
path: k8s/infra/iam
|
||||||
destination:
|
destination:
|
||||||
@@ -158,7 +109,7 @@ spec:
|
|||||||
helm:
|
helm:
|
||||||
valueFiles:
|
valueFiles:
|
||||||
- $values/k8s/bootstrap/phase3-forgejo/forgejo-values.yaml
|
- $values/k8s/bootstrap/phase3-forgejo/forgejo-values.yaml
|
||||||
- repoURL: https://forgejo.riotpiao.com/riotpiao-poimen/homelab.git
|
- repoURL: https://forgejo.riotpiao.com/rock/homelab.git
|
||||||
targetRevision: main
|
targetRevision: main
|
||||||
ref: values
|
ref: values
|
||||||
destination:
|
destination:
|
||||||
@@ -201,12 +152,17 @@ metadata:
|
|||||||
namespace: argocd
|
namespace: argocd
|
||||||
annotations:
|
annotations:
|
||||||
argocd.argoproj.io/sync-wave: "3"
|
argocd.argoproj.io/sync-wave: "3"
|
||||||
# Image promotion: Forgejo package webhook → api-gw.
|
argocd-image-updater.argoproj.io/image-list: runner=forgejo.riotpiao.com/rock/forgejo-runner-golang
|
||||||
# Replaced ArgoCD Image Updater (removed 2026-09-10).
|
argocd-image-updater.argoproj.io/runner.update-strategy: newest-build
|
||||||
|
argocd-image-updater.argoproj.io/runner.allow-tags: regexp:^[0-9a-f]{7}$|^latest$|^v[0-9]+$
|
||||||
|
argocd-image-updater.argoproj.io/runner.helm.image-name: runner.image.repository
|
||||||
|
argocd-image-updater.argoproj.io/runner.helm.image-tag: runner.image.tag
|
||||||
|
argocd-image-updater.argoproj.io/write-back-method: git
|
||||||
|
argocd-image-updater.argoproj.io/git-branch: main
|
||||||
spec:
|
spec:
|
||||||
project: homelab
|
project: homelab
|
||||||
source:
|
source:
|
||||||
repoURL: https://forgejo.riotpiao.com/riotpiao-poimen/homelab.git
|
repoURL: https://forgejo.riotpiao.com/rock/homelab.git
|
||||||
targetRevision: main
|
targetRevision: main
|
||||||
path: k8s/infra/forgejo-runner
|
path: k8s/infra/forgejo-runner
|
||||||
destination:
|
destination:
|
||||||
@@ -224,12 +180,17 @@ metadata:
|
|||||||
namespace: argocd
|
namespace: argocd
|
||||||
annotations:
|
annotations:
|
||||||
argocd.argoproj.io/sync-wave: "3"
|
argocd.argoproj.io/sync-wave: "3"
|
||||||
# Image promotion: Forgejo package webhook → api-gw.
|
argocd-image-updater.argoproj.io/image-list: runner=forgejo.riotpiao.com/rock/forgejo-runner-node
|
||||||
# Replaced ArgoCD Image Updater (removed 2026-09-10).
|
argocd-image-updater.argoproj.io/runner.update-strategy: newest-build
|
||||||
|
argocd-image-updater.argoproj.io/runner.allow-tags: regexp:^[0-9a-f]{7}$|^latest$|^v[0-9]+$
|
||||||
|
argocd-image-updater.argoproj.io/runner.helm.image-name: runner.image.repository
|
||||||
|
argocd-image-updater.argoproj.io/runner.helm.image-tag: runner.image.tag
|
||||||
|
argocd-image-updater.argoproj.io/write-back-method: git
|
||||||
|
argocd-image-updater.argoproj.io/git-branch: main
|
||||||
spec:
|
spec:
|
||||||
project: homelab
|
project: homelab
|
||||||
source:
|
source:
|
||||||
repoURL: https://forgejo.riotpiao.com/riotpiao-poimen/homelab.git
|
repoURL: https://forgejo.riotpiao.com/rock/homelab.git
|
||||||
targetRevision: main
|
targetRevision: main
|
||||||
path: k8s/infra/forgejo-runner
|
path: k8s/infra/forgejo-runner
|
||||||
helm:
|
helm:
|
||||||
@@ -250,12 +211,17 @@ metadata:
|
|||||||
namespace: argocd
|
namespace: argocd
|
||||||
annotations:
|
annotations:
|
||||||
argocd.argoproj.io/sync-wave: "3"
|
argocd.argoproj.io/sync-wave: "3"
|
||||||
# Image promotion: Forgejo package webhook → api-gw.
|
argocd-image-updater.argoproj.io/image-list: runner=forgejo.riotpiao.com/rock/forgejo-runner-rust
|
||||||
# Replaced ArgoCD Image Updater (removed 2026-09-10).
|
argocd-image-updater.argoproj.io/runner.update-strategy: newest-build
|
||||||
|
argocd-image-updater.argoproj.io/runner.allow-tags: regexp:^[0-9a-f]{7}$|^latest$|^v[0-9]+$
|
||||||
|
argocd-image-updater.argoproj.io/runner.helm.image-name: runner.image.repository
|
||||||
|
argocd-image-updater.argoproj.io/runner.helm.image-tag: runner.image.tag
|
||||||
|
argocd-image-updater.argoproj.io/write-back-method: git
|
||||||
|
argocd-image-updater.argoproj.io/git-branch: main
|
||||||
spec:
|
spec:
|
||||||
project: homelab
|
project: homelab
|
||||||
source:
|
source:
|
||||||
repoURL: https://forgejo.riotpiao.com/riotpiao-poimen/homelab.git
|
repoURL: https://forgejo.riotpiao.com/rock/homelab.git
|
||||||
targetRevision: main
|
targetRevision: main
|
||||||
path: k8s/infra/forgejo-runner
|
path: k8s/infra/forgejo-runner
|
||||||
helm:
|
helm:
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ metadata:
|
|||||||
spec:
|
spec:
|
||||||
project: homelab
|
project: homelab
|
||||||
source:
|
source:
|
||||||
repoURL: https://forgejo.riotpiao.com/riotpiao-poimen/homelab.git
|
repoURL: https://forgejo.riotpiao.com/rock/homelab.git
|
||||||
targetRevision: main
|
targetRevision: main
|
||||||
path: k8s/infra/databases
|
path: k8s/infra/databases
|
||||||
destination:
|
destination:
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ metadata:
|
|||||||
spec:
|
spec:
|
||||||
project: homelab
|
project: homelab
|
||||||
source:
|
source:
|
||||||
repoURL: https://forgejo.riotpiao.com/riotpiao-poimen/homelab.git
|
repoURL: https://forgejo.riotpiao.com/rock/homelab.git
|
||||||
targetRevision: main
|
targetRevision: main
|
||||||
path: k8s/apps/messaging/memory-queues
|
path: k8s/apps/messaging/memory-queues
|
||||||
destination:
|
destination:
|
||||||
|
|||||||
@@ -68,7 +68,7 @@ metadata:
|
|||||||
spec:
|
spec:
|
||||||
project: homelab
|
project: homelab
|
||||||
source:
|
source:
|
||||||
repoURL: https://forgejo.riotpiao.com/riotpiao-poimen/homelab.git
|
repoURL: https://forgejo.riotpiao.com/rock/homelab.git
|
||||||
targetRevision: main
|
targetRevision: main
|
||||||
path: k8s/apps/messaging/kafka-cluster
|
path: k8s/apps/messaging/kafka-cluster
|
||||||
destination:
|
destination:
|
||||||
|
|||||||
@@ -36,17 +36,19 @@ metadata:
|
|||||||
app.kubernetes.io/component: gateway
|
app.kubernetes.io/component: gateway
|
||||||
annotations:
|
annotations:
|
||||||
argocd.argoproj.io/sync-wave: "7"
|
argocd.argoproj.io/sync-wave: "7"
|
||||||
# Image promotion: Forgejo package webhook → api-gw /v1/webhooks/forgejo
|
# ArgoCD Image Updater - auto-update on new image push
|
||||||
# → patches this Application's kustomize.images via k8s API.
|
argocd-image-updater.argoproj.io/image-list: gw=forgejo.riotpiao.com/rock/api-gateway
|
||||||
# Replaced ArgoCD Image Updater (removed 2026-09-10).
|
argocd-image-updater.argoproj.io/gw.update-strategy: digest
|
||||||
|
argocd-image-updater.argoproj.io/gw.allow-tags: regexp:^latest$
|
||||||
|
argocd-image-updater.argoproj.io/write-back-method: argocd
|
||||||
spec:
|
spec:
|
||||||
project: homelab
|
project: homelab
|
||||||
revisionHistoryLimit: 3
|
revisionHistoryLimit: 3
|
||||||
sources:
|
sources:
|
||||||
- repoURL: https://forgejo.riotpiao.com/riotpiao-poimen/homelab-frontend.git
|
- repoURL: https://forgejo.riotpiao.com/rock/homelab-frontend.git
|
||||||
targetRevision: main
|
targetRevision: main
|
||||||
path: k8s
|
path: k8s
|
||||||
- repoURL: https://forgejo.riotpiao.com/riotpiao-poimen/homelab.git
|
- repoURL: https://forgejo.riotpiao.com/rock/homelab.git
|
||||||
targetRevision: main
|
targetRevision: main
|
||||||
path: k8s/apps/api
|
path: k8s/apps/api
|
||||||
destination:
|
destination:
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ spec:
|
|||||||
project: homelab
|
project: homelab
|
||||||
revisionHistoryLimit: 3
|
revisionHistoryLimit: 3
|
||||||
source:
|
source:
|
||||||
repoURL: https://forgejo.riotpiao.com/riotpiao-poimen/homelab.git
|
repoURL: https://forgejo.riotpiao.com/rock/homelab.git
|
||||||
targetRevision: main
|
targetRevision: main
|
||||||
path: k8s/apps/llm-serving
|
path: k8s/apps/llm-serving
|
||||||
destination:
|
destination:
|
||||||
|
|||||||
@@ -1,32 +0,0 @@
|
|||||||
apiVersion: argoproj.io/v1alpha1
|
|
||||||
kind: Application
|
|
||||||
metadata:
|
|
||||||
name: comfyui
|
|
||||||
namespace: argocd
|
|
||||||
labels:
|
|
||||||
app.kubernetes.io/name: comfyui
|
|
||||||
app.kubernetes.io/component: image-generation
|
|
||||||
annotations:
|
|
||||||
argocd.argoproj.io/sync-wave: "8"
|
|
||||||
spec:
|
|
||||||
project: homelab
|
|
||||||
revisionHistoryLimit: 3
|
|
||||||
source:
|
|
||||||
repoURL: https://forgejo.riotpiao.com/riotpiao-poimen/homelab.git
|
|
||||||
targetRevision: main
|
|
||||||
path: k8s/apps/comfyui
|
|
||||||
destination:
|
|
||||||
server: https://kubernetes.default.svc
|
|
||||||
namespace: comfyui
|
|
||||||
syncPolicy:
|
|
||||||
automated:
|
|
||||||
prune: true
|
|
||||||
selfHeal: true
|
|
||||||
syncOptions:
|
|
||||||
- CreateNamespace=true
|
|
||||||
retry:
|
|
||||||
limit: 5
|
|
||||||
backoff:
|
|
||||||
duration: 5s
|
|
||||||
factor: 2
|
|
||||||
maxDuration: 3m
|
|
||||||
@@ -1,32 +0,0 @@
|
|||||||
apiVersion: argoproj.io/v1alpha1
|
|
||||||
kind: Application
|
|
||||||
metadata:
|
|
||||||
name: gotify
|
|
||||||
namespace: argocd
|
|
||||||
labels:
|
|
||||||
app.kubernetes.io/name: gotify
|
|
||||||
app.kubernetes.io/component: notifications
|
|
||||||
annotations:
|
|
||||||
argocd.argoproj.io/sync-wave: "8"
|
|
||||||
spec:
|
|
||||||
project: homelab
|
|
||||||
revisionHistoryLimit: 3
|
|
||||||
source:
|
|
||||||
repoURL: https://forgejo.riotpiao.com/riotpiao-poimen/homelab.git
|
|
||||||
targetRevision: main
|
|
||||||
path: k8s/apps/gotify
|
|
||||||
destination:
|
|
||||||
server: https://kubernetes.default.svc
|
|
||||||
namespace: notifications
|
|
||||||
syncPolicy:
|
|
||||||
automated:
|
|
||||||
prune: true
|
|
||||||
selfHeal: true
|
|
||||||
syncOptions:
|
|
||||||
- CreateNamespace=true
|
|
||||||
retry:
|
|
||||||
limit: 5
|
|
||||||
backoff:
|
|
||||||
duration: 5s
|
|
||||||
factor: 2
|
|
||||||
maxDuration: 3m
|
|
||||||
@@ -19,10 +19,10 @@ spec:
|
|||||||
helm:
|
helm:
|
||||||
valueFiles:
|
valueFiles:
|
||||||
- $values/k8s/apps/temporal/temporal-values.yaml
|
- $values/k8s/apps/temporal/temporal-values.yaml
|
||||||
- repoURL: https://forgejo.riotpiao.com/riotpiao-poimen/homelab.git
|
- repoURL: https://forgejo.riotpiao.com/rock/homelab.git
|
||||||
targetRevision: main
|
targetRevision: main
|
||||||
ref: values
|
ref: values
|
||||||
- repoURL: https://forgejo.riotpiao.com/riotpiao-poimen/homelab.git
|
- repoURL: https://forgejo.riotpiao.com/rock/homelab.git
|
||||||
targetRevision: main
|
targetRevision: main
|
||||||
path: k8s/apps/temporal
|
path: k8s/apps/temporal
|
||||||
destination:
|
destination:
|
||||||
@@ -51,7 +51,7 @@ spec:
|
|||||||
helm:
|
helm:
|
||||||
valueFiles:
|
valueFiles:
|
||||||
- $values/k8s/apps/portainer/portainer-values.yaml
|
- $values/k8s/apps/portainer/portainer-values.yaml
|
||||||
- repoURL: https://forgejo.riotpiao.com/riotpiao-poimen/homelab.git
|
- repoURL: https://forgejo.riotpiao.com/rock/homelab.git
|
||||||
targetRevision: main
|
targetRevision: main
|
||||||
ref: values
|
ref: values
|
||||||
destination:
|
destination:
|
||||||
@@ -74,7 +74,7 @@ metadata:
|
|||||||
spec:
|
spec:
|
||||||
project: homelab
|
project: homelab
|
||||||
source:
|
source:
|
||||||
repoURL: https://forgejo.riotpiao.com/riotpiao-poimen/homelab.git
|
repoURL: https://forgejo.riotpiao.com/rock/homelab.git
|
||||||
targetRevision: main
|
targetRevision: main
|
||||||
path: k8s/apps/cloudflared
|
path: k8s/apps/cloudflared
|
||||||
destination:
|
destination:
|
||||||
@@ -97,7 +97,7 @@ metadata:
|
|||||||
spec:
|
spec:
|
||||||
project: homelab
|
project: homelab
|
||||||
source:
|
source:
|
||||||
repoURL: https://forgejo.riotpiao.com/riotpiao-poimen/homelab.git
|
repoURL: https://forgejo.riotpiao.com/rock/homelab.git
|
||||||
targetRevision: main
|
targetRevision: main
|
||||||
path: k8s/apps/agent-pod
|
path: k8s/apps/agent-pod
|
||||||
destination:
|
destination:
|
||||||
@@ -130,7 +130,7 @@ metadata:
|
|||||||
spec:
|
spec:
|
||||||
project: homelab
|
project: homelab
|
||||||
source:
|
source:
|
||||||
repoURL: https://forgejo.riotpiao.com/riotpiao-poimen/homelab.git
|
repoURL: https://forgejo.riotpiao.com/rock/homelab.git
|
||||||
targetRevision: main
|
targetRevision: main
|
||||||
path: k8s/apps/sms
|
path: k8s/apps/sms
|
||||||
destination:
|
destination:
|
||||||
@@ -157,7 +157,7 @@ metadata:
|
|||||||
spec:
|
spec:
|
||||||
project: homelab
|
project: homelab
|
||||||
source:
|
source:
|
||||||
repoURL: https://forgejo.riotpiao.com/riotpiao-poimen/homelab.git
|
repoURL: https://forgejo.riotpiao.com/rock/homelab.git
|
||||||
targetRevision: main
|
targetRevision: main
|
||||||
path: k8s/apps/paperless
|
path: k8s/apps/paperless
|
||||||
destination:
|
destination:
|
||||||
@@ -189,7 +189,7 @@ metadata:
|
|||||||
spec:
|
spec:
|
||||||
project: homelab
|
project: homelab
|
||||||
source:
|
source:
|
||||||
repoURL: https://forgejo.riotpiao.com/riotpiao-poimen/homelab.git
|
repoURL: https://forgejo.riotpiao.com/rock/homelab.git
|
||||||
targetRevision: main
|
targetRevision: main
|
||||||
path: k8s/apps/immich
|
path: k8s/apps/immich
|
||||||
destination:
|
destination:
|
||||||
@@ -220,10 +220,10 @@ spec:
|
|||||||
helm:
|
helm:
|
||||||
valueFiles:
|
valueFiles:
|
||||||
- $values/k8s/apps/homarr/homarr-values.yaml
|
- $values/k8s/apps/homarr/homarr-values.yaml
|
||||||
- repoURL: https://forgejo.riotpiao.com/riotpiao-poimen/homelab.git
|
- repoURL: https://forgejo.riotpiao.com/rock/homelab.git
|
||||||
targetRevision: main
|
targetRevision: main
|
||||||
ref: values
|
ref: values
|
||||||
- repoURL: https://forgejo.riotpiao.com/riotpiao-poimen/homelab.git
|
- repoURL: https://forgejo.riotpiao.com/rock/homelab.git
|
||||||
targetRevision: main
|
targetRevision: main
|
||||||
path: k8s/apps/homarr # PostSync hook: fix-probes-job.yaml
|
path: k8s/apps/homarr # PostSync hook: fix-probes-job.yaml
|
||||||
destination:
|
destination:
|
||||||
@@ -246,8 +246,11 @@ metadata:
|
|||||||
namespace: argocd
|
namespace: argocd
|
||||||
annotations:
|
annotations:
|
||||||
argocd.argoproj.io/sync-wave: "8"
|
argocd.argoproj.io/sync-wave: "8"
|
||||||
# Image promotion: Forgejo package webhook → api-gw.
|
# ArgoCD Image Updater - auto-update on new image push
|
||||||
# Replaced ArgoCD Image Updater (removed 2026-09-10).
|
argocd-image-updater.argoproj.io/image-list: app=forgejo.riotpiao.com/rock/portfolio
|
||||||
|
argocd-image-updater.argoproj.io/app.update-strategy: digest
|
||||||
|
argocd-image-updater.argoproj.io/app.allow-tags: regexp:^latest$
|
||||||
|
argocd-image-updater.argoproj.io/write-back-method: argocd
|
||||||
spec:
|
spec:
|
||||||
project: homelab
|
project: homelab
|
||||||
source:
|
source:
|
||||||
@@ -278,7 +281,7 @@ metadata:
|
|||||||
spec:
|
spec:
|
||||||
project: homelab
|
project: homelab
|
||||||
source:
|
source:
|
||||||
repoURL: https://forgejo.riotpiao.com/riotpiao-poimen/homelab.git
|
repoURL: https://forgejo.riotpiao.com/rock/homelab.git
|
||||||
targetRevision: main
|
targetRevision: main
|
||||||
path: k8s/infra/rbac
|
path: k8s/infra/rbac
|
||||||
destination:
|
destination:
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ metadata:
|
|||||||
spec:
|
spec:
|
||||||
project: homelab
|
project: homelab
|
||||||
source:
|
source:
|
||||||
repoURL: https://forgejo.riotpiao.com/riotpiao-poimen/kmsvc-manage.git
|
repoURL: https://forgejo.riotpiao.com/rock/kmsvc-manage.git
|
||||||
targetRevision: main
|
targetRevision: main
|
||||||
path: k8s/argocd/apps
|
path: k8s/argocd/apps
|
||||||
directory:
|
directory:
|
||||||
|
|||||||
@@ -1,81 +1,43 @@
|
|||||||
# Poimen — unified ArgoCD Application (wave 7).
|
|
||||||
#
|
|
||||||
# Consolidates what was previously five separate apps:
|
|
||||||
# poimen → source 1 (poimen-workflows workers)
|
|
||||||
# poimen-workflows → duplicate of source 1 (deleted)
|
|
||||||
# poimen-memory → source 2 (memory service + redis)
|
|
||||||
# poimen-memory-app → duplicate of source 2 (deleted)
|
|
||||||
# poimen-memory-database → source 3 (CNPG cluster, moved to k8s/infra/poimen)
|
|
||||||
#
|
|
||||||
# poimen-toolkit is intentionally kept as a separate Application because it
|
|
||||||
# manages cluster-scoped CRDs (ToolDefinition). A bad CRD can affect the
|
|
||||||
# whole cluster; keeping it separate means it has its own sync history,
|
|
||||||
# independent rollback, and can be paused without touching app workloads.
|
|
||||||
#
|
|
||||||
# Sync ordering via argocd sync-wave annotations:
|
|
||||||
# wave -1 → DB (CNPG Cluster) — must be Ready before app pods start
|
|
||||||
# wave 0 → all application Deployments (default)
|
|
||||||
#
|
|
||||||
# Image Updater tracks all four images. Write-back via argocd (in-cluster
|
|
||||||
# annotation patch — no git commit per image update).
|
|
||||||
apiVersion: argoproj.io/v1alpha1
|
apiVersion: argoproj.io/v1alpha1
|
||||||
kind: Application
|
kind: Application
|
||||||
metadata:
|
metadata:
|
||||||
name: poimen
|
name: poimen
|
||||||
namespace: argocd
|
namespace: argocd
|
||||||
labels:
|
|
||||||
app.kubernetes.io/part-of: poimen
|
|
||||||
annotations:
|
annotations:
|
||||||
argocd.argoproj.io/sync-wave: "7"
|
argocd.argoproj.io/sync-wave: "7"
|
||||||
# ── Image promotion ──────────────────────────────────────────────────────
|
# Image Updater: auto-update on new image push (SHA tag filter)
|
||||||
# Forgejo package webhook → api-gw patches kustomize.images per source.
|
argocd-image-updater.argoproj.io/image-list: |
|
||||||
# Source index mapping: 0=workflows, 1=memory, 3=frontend.
|
memory=forgejo.riotpiao.com/rock/poimen-memory
|
||||||
# Replaced ArgoCD Image Updater (removed 2026-09-10).
|
workflows=forgejo.riotpiao.com/rock/poimen-workflows
|
||||||
|
frontend=forgejo.riotpiao.com/rock/poimen-frontend
|
||||||
|
argocd-image-updater.argoproj.io/memory.update-strategy: digest
|
||||||
|
argocd-image-updater.argoproj.io/memory.allow-tags: regexp:^latest$
|
||||||
|
argocd-image-updater.argoproj.io/workflows.update-strategy: digest
|
||||||
|
argocd-image-updater.argoproj.io/workflows.allow-tags: regexp:^latest$
|
||||||
|
argocd-image-updater.argoproj.io/frontend.update-strategy: digest
|
||||||
|
argocd-image-updater.argoproj.io/frontend.allow-tags: regexp:^latest$
|
||||||
|
argocd-image-updater.argoproj.io/write-back-method: argocd
|
||||||
spec:
|
spec:
|
||||||
project: homelab
|
project: homelab
|
||||||
# Multi-source: each repo owns its own k8s manifests.
|
|
||||||
# ArgoCD syncs all sources in parallel; sync-wave annotations on individual
|
|
||||||
# resources control ordering within the sync operation.
|
|
||||||
sources:
|
sources:
|
||||||
# 1. Workers — Temporal activity + workflow workers, pi-worker pool
|
- repoURL: https://forgejo.riotpiao.com/rock/poimen-memory.git
|
||||||
- repoURL: https://forgejo.riotpiao.com/riotpiao-poimen/poimen-workflows.git
|
|
||||||
targetRevision: main
|
targetRevision: main
|
||||||
path: k8s
|
path: k8s/argocd
|
||||||
|
- repoURL: https://forgejo.riotpiao.com/rock/poimen-workflows.git
|
||||||
# 2. Memory service — poimen-memory API, Redis cache, NetworkPolicies
|
|
||||||
- repoURL: https://forgejo.riotpiao.com/riotpiao-poimen/poimen-memory.git
|
|
||||||
targetRevision: main
|
targetRevision: main
|
||||||
path: k8s/app
|
path: k8s/argocd
|
||||||
|
- repoURL: https://forgejo.riotpiao.com/rock/poimen-frontend.git
|
||||||
# 3. Database infrastructure — CNPG Postgres cluster (wave -1)
|
|
||||||
# Moved from k8s/infra/databases to isolate poimen DB from other tenants.
|
|
||||||
- repoURL: https://forgejo.riotpiao.com/riotpiao-poimen/homelab.git
|
|
||||||
targetRevision: main
|
targetRevision: main
|
||||||
path: k8s/infra/poimen
|
path: k8s/argocd
|
||||||
|
|
||||||
# 4. Frontend app manifests — Deployment, Service, NetworkPolicy.
|
|
||||||
# Each repo owns its own k8s/ (same pattern as homelab-frontend for api-gw).
|
|
||||||
- repoURL: https://forgejo.riotpiao.com/riotpiao-poimen/poimen-frontend.git
|
|
||||||
targetRevision: main
|
|
||||||
path: k8s
|
|
||||||
|
|
||||||
# 5. Frontend ingress — poimen.riotpiao.com edge route.
|
|
||||||
# Lives in homelab (same pattern as k8s/apps/api/ for api-gw).
|
|
||||||
- repoURL: https://forgejo.riotpiao.com/riotpiao-poimen/homelab.git
|
|
||||||
targetRevision: main
|
|
||||||
path: k8s/apps/poimen-frontend
|
|
||||||
|
|
||||||
destination:
|
destination:
|
||||||
server: https://kubernetes.default.svc
|
server: https://kubernetes.default.svc
|
||||||
namespace: poimen
|
namespace: poimen
|
||||||
|
|
||||||
syncPolicy:
|
syncPolicy:
|
||||||
automated:
|
automated:
|
||||||
prune: true
|
prune: true
|
||||||
selfHeal: true
|
selfHeal: true
|
||||||
syncOptions:
|
syncOptions:
|
||||||
- CreateNamespace=true
|
- CreateNamespace=true
|
||||||
- SkipDryRunOnMissingResource=true
|
|
||||||
retry:
|
retry:
|
||||||
limit: 5
|
limit: 5
|
||||||
backoff:
|
backoff:
|
||||||
|
|||||||
@@ -1,32 +0,0 @@
|
|||||||
apiVersion: argoproj.io/v1alpha1
|
|
||||||
kind: Application
|
|
||||||
metadata:
|
|
||||||
name: poimen-toolkit
|
|
||||||
namespace: argocd
|
|
||||||
annotations:
|
|
||||||
argocd.argoproj.io/sync-wave: "7"
|
|
||||||
# Image promotion: Forgejo package webhook → api-gw.
|
|
||||||
# Tracks: poimen-toolkit-controller, pi-worker.
|
|
||||||
# Replaced ArgoCD Image Updater (removed 2026-09-10).
|
|
||||||
spec:
|
|
||||||
project: homelab
|
|
||||||
source:
|
|
||||||
repoURL: https://forgejo.riotpiao.com/riotpiao-poimen/poimen-toolkit.git
|
|
||||||
targetRevision: main
|
|
||||||
path: k8s
|
|
||||||
destination:
|
|
||||||
server: https://kubernetes.default.svc
|
|
||||||
namespace: poimen
|
|
||||||
syncPolicy:
|
|
||||||
automated:
|
|
||||||
prune: true
|
|
||||||
selfHeal: true
|
|
||||||
syncOptions:
|
|
||||||
- CreateNamespace=true
|
|
||||||
- ServerSideApply=true
|
|
||||||
retry:
|
|
||||||
limit: 5
|
|
||||||
backoff:
|
|
||||||
duration: 5s
|
|
||||||
factor: 2
|
|
||||||
maxDuration: 3m
|
|
||||||
@@ -1,20 +0,0 @@
|
|||||||
apiVersion: argoproj.io/v1alpha1
|
|
||||||
kind: Application
|
|
||||||
metadata:
|
|
||||||
name: talos-repair
|
|
||||||
namespace: argocd
|
|
||||||
annotations:
|
|
||||||
argocd.argoproj.io/sync-wave: "6"
|
|
||||||
spec:
|
|
||||||
project: homelab
|
|
||||||
source:
|
|
||||||
repoURL: https://forgejo.riotpiao.com/riotpiao-poimen/homelab.git
|
|
||||||
targetRevision: main
|
|
||||||
path: k8s/infra/talos-repair
|
|
||||||
destination:
|
|
||||||
server: https://kubernetes.default.svc
|
|
||||||
namespace: cicd
|
|
||||||
syncPolicy:
|
|
||||||
automated:
|
|
||||||
prune: true
|
|
||||||
selfHeal: true
|
|
||||||
@@ -1,20 +0,0 @@
|
|||||||
apiVersion: argoproj.io/v1alpha1
|
|
||||||
kind: Application
|
|
||||||
metadata:
|
|
||||||
name: oidc-bootstrap
|
|
||||||
namespace: argocd
|
|
||||||
annotations:
|
|
||||||
argocd.argoproj.io/sync-wave: "5"
|
|
||||||
spec:
|
|
||||||
project: homelab
|
|
||||||
source:
|
|
||||||
repoURL: https://forgejo.riotpiao.com/riotpiao-poimen/homelab.git
|
|
||||||
targetRevision: main
|
|
||||||
path: k8s/infra/oidc-bootstrap
|
|
||||||
destination:
|
|
||||||
server: https://kubernetes.default.svc
|
|
||||||
namespace: kube-system
|
|
||||||
syncPolicy:
|
|
||||||
automated:
|
|
||||||
prune: true
|
|
||||||
selfHeal: true
|
|
||||||
@@ -17,14 +17,12 @@ spec:
|
|||||||
- https://github.com/Riotpiaole/Poimen-workflows.git
|
- https://github.com/Riotpiaole/Poimen-workflows.git
|
||||||
- https://github.com/Riotpiaole/poimen*.git
|
- https://github.com/Riotpiaole/poimen*.git
|
||||||
# In-cluster Forgejo repos — explicit allowlist (no wildcard)
|
# In-cluster Forgejo repos — explicit allowlist (no wildcard)
|
||||||
- https://forgejo.riotpiao.com/riotpiao-poimen/homelab.git
|
- https://forgejo.riotpiao.com/rock/homelab.git
|
||||||
- https://forgejo.riotpiao.com/riotpiao-poimen/homelab-frontend.git
|
- https://forgejo.riotpiao.com/rock/homelab-frontend.git
|
||||||
- https://forgejo.riotpiao.com/riotpiao-poimen/kmsvc-manage.git
|
- https://forgejo.riotpiao.com/rock/kmsvc-manage.git
|
||||||
- https://forgejo.riotpiao.com/riotpiao-poimen/poimen.git
|
- https://forgejo.riotpiao.com/rock/poimen.git
|
||||||
- https://forgejo.riotpiao.com/riotpiao-poimen/poimen-memory.git
|
- https://forgejo.riotpiao.com/rock/poimen-memory.git
|
||||||
- https://forgejo.riotpiao.com/riotpiao-poimen/poimen-workflows.git
|
- https://forgejo.riotpiao.com/rock/poimen-workflows.git
|
||||||
- https://forgejo.riotpiao.com/riotpiao-poimen/poimen-frontend.git
|
|
||||||
- https://forgejo.riotpiao.com/riotpiao-poimen/poimen-toolkit.git
|
|
||||||
- https://forgejo.riotpiao.com/rock/riotpiao.com.git
|
- https://forgejo.riotpiao.com/rock/riotpiao.com.git
|
||||||
# Public Helm chart repos referenced by k8s/argocd/apps/* and bootstrap/*
|
# Public Helm chart repos referenced by k8s/argocd/apps/* and bootstrap/*
|
||||||
- https://cloudnative-pg.github.io/charts
|
- https://cloudnative-pg.github.io/charts
|
||||||
@@ -35,7 +33,6 @@ spec:
|
|||||||
- https://grafana.github.io/helm-charts
|
- https://grafana.github.io/helm-charts
|
||||||
- https://helm.releases.hashicorp.com
|
- https://helm.releases.hashicorp.com
|
||||||
- https://charts.goauthentik.io
|
- https://charts.goauthentik.io
|
||||||
- https://charts.zitadel.com
|
|
||||||
- https://strimzi.io/charts/
|
- https://strimzi.io/charts/
|
||||||
- https://charts.bitnami.com/bitnami
|
- https://charts.bitnami.com/bitnami
|
||||||
- https://homarr-labs.github.io/charts
|
- https://homarr-labs.github.io/charts
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ metadata:
|
|||||||
spec:
|
spec:
|
||||||
project: homelab
|
project: homelab
|
||||||
source:
|
source:
|
||||||
repoURL: https://forgejo.riotpiao.com/riotpiao-poimen/homelab.git
|
repoURL: https://forgejo.riotpiao.com/rock/homelab.git
|
||||||
targetRevision: main
|
targetRevision: main
|
||||||
path: k8s/argocd/apps
|
path: k8s/argocd/apps
|
||||||
directory:
|
directory:
|
||||||
|
|||||||
@@ -1,27 +0,0 @@
|
|||||||
apiVersion: v1
|
|
||||||
kind: Secret
|
|
||||||
metadata:
|
|
||||||
name: etcd-defrag-creds
|
|
||||||
namespace: kube-system
|
|
||||||
labels:
|
|
||||||
app.kubernetes.io/name: etcd-defrag
|
|
||||||
type: Opaque
|
|
||||||
stringData:
|
|
||||||
ca.crt: ENC[AES256_GCM,data:vso/Ouz5QRoRF2CFj9TsGYhoGkX8oGJIeiFCoS92AAQbyyGPTiZ/fPNFM03p+TpeKDb+Z+Fyo/HXuDeT5Fee5kjPnUHXf2hiUBmJLyHnPMp5i57dRzTC8X4VaNeV/1MmP2WpkWwieWOGBxJVIIrgeQhQexxmIzSlQ5Io9dVOH8F6iyakwdf7qfLFGdoer3rfrXadSOJtKRpLneFJDL2OmR1042LZ8KtNuRRXI/qrdpgr2bnyxFuCRc+tk5QY73mpwwWfKGn6FW/rVdjiEftkC+AvTUItx7RkYMrz0PlTYPUOLustEF2gIgWheYZhE5ebZDurVSG//sudjASliYJItwgSk3G5mZihOSDA7Jcus+U8p1iHQ9CQsey3CSAMmuSGRFmq42kI8135kjtBYrzVswHjX1/51qPMyA2TIeWlRJ7AJlHihG317gT1vPeM1ULl3PkuCxaBLCtjotZBzKLJ/6zXr1ig77Baz71YOVB0D0MgFvzIdao+mdxS8WLOZdiXOCwbI5Y2eo7wJHG4BnpKEdx1rjPkv7DI2NNEoXA7e5FvJWinyAxOy6YGH4Fv6dTlEVhI3Nl/1X+CeafL6Hk8YoqA04Hm+/dJCZi7SsF0r6zfPNNsZLivM8DN18h8KYM3eVY3CwtBldE7atz+oprQ6K/yGUbblHRQwuG3sH3AHrCKLPiUrMIi0jWc0IpdPZRZFL7SnMULfV05QgcvGySOJCuQU+/OYzrRs7umOjwpqvi9PyJYVXBliiYfJutvmfpFAhQj,iv:KnW9LYNzxZ6r3Q6LTeOrgSLLPgiJlibVp6YmTEKBkjE=,tag:KTL1nOWdNWDA4dLVaA4//g==,type:str]
|
|
||||||
client.crt: ENC[AES256_GCM,data:IEmZe505SwkW3U5vmRtFxR6PpuSFGWEHflUZwyhSODzYG1zLM8olVWDtH+yUVI54kLXxTtcpMkKrTBjpAxHG8zUTLPdTCVzPMq6U20jH4PYFMzoldnSgpRl/eiADUmE4I32CBbPdM5nkPvjVEYMmRafEGyJctjG6Shhh/sUO1yE9A+h1R7o3UCRPttWTozSKN4dPi75v1TSAOLyXqvQYl5Ea9iKW47ea7Q+XTcoKfMPXsTJp44kiZnVW0VT/7xNydR7AVWJJzYltY5380j0Ho+7PfNd+QqmdodkaZPS4b0PaoinMiZ40JnChGVhdS91j3IkUlU1g/+G2iVnPR9KB07xqRubqiASxIvpSaSCeYl3rR7+dXYX18VpWcWnJ6XoREoqxJiqmMQWYSROYDTd4G/zs4Usuh5r0wIodmCjud+g89mmXFtH0PbsMCVvZDUswjVfeT2PUBm036TXlxF/1aAy2GDqycbPgJgDLyw9tdiQUZe2iA+Z/Wx80qgQjmmqCaw77cDergLFj9KnByl3Tinwfm+IWFeQiDW+fwSzz+/vrpl55BkSVkVhw7r2Jd6zyg4VtLVXbxYhzdNz695N+fjkZHuPE5tCwr4WCzAg3vSS9hA7IHo8k93WO8s6+KlyjuwTdjPIYZghebO4ktwdqvhvuqxv8Nzwpc5J7Z2H2IChjXg==,iv:l8BwxxEfHfYrm+mM5UE6Yj42DeeU9y23jjIE1KjIiME=,tag:HwRT6/myIsxc84BYDj3K6w==,type:str]
|
|
||||||
client.key: ENC[AES256_GCM,data:QD/Glf3lFslBEdEoJ3CNrYzlw2HLCvGSeVuJLtxnFne2aJOuw0sk/e0h/kSAxvG4dZ+LIWJLLbqTjKHOAhkvS/ZOA7GSea4ubNkvTkw8+JBRuYwb2D2iB8kZhlER/CpiGkYJukjkgGP1CzHdvBY1M88pW9w6rH74MD3jY47qExIaNduQj5vkUQZ8ajqkd79l0nk98ZTawfPG4AFcEtAIKAPIuubT2GZ3qqNLjOI7agbtRv8xI44hhb2wj5J9xdl1GrbOWwG5EOo+hLNrcAAOCcWBpNTUCKBy7mrk2ID8jX3HsFWN76DDlQzkhcphMhlM7g==,iv:49HGJAEgllEkB3YSiZLmbWs/vlbFbY52kiKesdGVC/Y=,tag:g8YZ9at3V2l6RFRfvO2lAQ==,type:str]
|
|
||||||
sops:
|
|
||||||
age:
|
|
||||||
- enc: |
|
|
||||||
-----BEGIN AGE ENCRYPTED FILE-----
|
|
||||||
YWdlLWVuY3J5cHRpb24ub3JnL3YxCi0+IFgyNTUxOSB4Z0h0R2dhbDdRcFJydE9o
|
|
||||||
R0hWeCtwVzluZWZlR0VtOXcxdW9FbklOQXlzCmo3eXNyNlFjejNETkJiVVRVWFhr
|
|
||||||
a2pORnhIQTI0UUk2N3dWMDZJcEhYU1UKLS0tIEduaHlmMHQza1A0TGVZb0JrbTYz
|
|
||||||
MWJwQjcrdkkzQXhOTmhycERsM0FtNVEKG+gBRcvUsyfRzuW999EQNzyDh2/5fY6p
|
|
||||||
8ab2xvTOJPiMUBTBuQZsA+iDImytUO/02ROQsbEZkALijp1nqrsV/g==
|
|
||||||
-----END AGE ENCRYPTED FILE-----
|
|
||||||
recipient: age1e5fq3hwxy78psus2nfvmtmua36g0u3suk78ephw6246l974d2utsvn0hla
|
|
||||||
encrypted_regex: ^(data|stringData)$
|
|
||||||
lastmodified: "2026-10-07T05:37:26Z"
|
|
||||||
mac: ENC[AES256_GCM,data:vu6ltV0jYQNGV4eqIcqAp9p2TJ8ULBX5JBELUgm/nA9GX+I6Pv3fyjpcHRSWY0HbLvCwgXd22CG4IYcj4HJFtQGZR7OcQA5WM5plZH3RCPdvPNix/798vkETfpJxorQjlHoq4nlr3dEmUCbzdtE07qV2W1M6GJr4C9xKvB947bQ=,iv:aA9mjZCFAoLEhGqkl6NfyBZ3x3vWGfLYYAEe8jXuA4U=,tag:Drdiji33ckDd8ildpvSEXw==,type:str]
|
|
||||||
version: 3.13.2
|
|
||||||
@@ -1,23 +0,0 @@
|
|||||||
apiVersion: v1
|
|
||||||
kind: Secret
|
|
||||||
metadata:
|
|
||||||
name: forgejo-registry-pat
|
|
||||||
namespace: api
|
|
||||||
type: Opaque
|
|
||||||
stringData:
|
|
||||||
pat: ENC[AES256_GCM,data:alYPvHBVqnf13NZu6jtgA6WdFM4x46s5mIY8uEnfWdq0Vp+7oKrY1A==,iv:JbUjes5ZB9eKQ1nkV02++7F/BaWIROfT6gjShzajXro=,tag:ApjawJold0QApnX1GUXGhw==,type:str]
|
|
||||||
sops:
|
|
||||||
age:
|
|
||||||
- enc: |
|
|
||||||
-----BEGIN AGE ENCRYPTED FILE-----
|
|
||||||
YWdlLWVuY3J5cHRpb24ub3JnL3YxCi0+IFgyNTUxOSB6bFZhU3JLSUZEVWhYdEdZ
|
|
||||||
MURoSWNlZjY0RkxyaWlwU2ZTVjJ5V2FnMVVZCis5YlBwQnZrWnVJNFh4UnNldmx6
|
|
||||||
Y2JjdnpkRTVGSjRSZ0U0THdDZHIrNHcKLS0tIHZDd1BDVGRDSHJEQThuTExORWs2
|
|
||||||
b3BxenY4WHhpRkRTZHJGMkNYMm14RnMKH//Xpqbf/ZBNFQ43D0eFUWwRcQWqA3CC
|
|
||||||
RG8U9wyxC6YrlruU2hY6eB2x0OjsVic34ZGaR752Bwyp0Pz49C/k3g==
|
|
||||||
-----END AGE ENCRYPTED FILE-----
|
|
||||||
recipient: age1e5fq3hwxy78psus2nfvmtmua36g0u3suk78ephw6246l974d2utsvn0hla
|
|
||||||
encrypted_regex: ^(data|stringData)$
|
|
||||||
lastmodified: "2026-09-28T03:10:55Z"
|
|
||||||
mac: ENC[AES256_GCM,data:nLZueHygckw+Gddlea90tRU8h8nEGpe21JUi9nCdpc0ctkSlTDqcR3Q7JFPwbEGHGFU5UJ2xnkBZEDIVmExJryqPBMXT7hQd3ySeQgPwAPGt6zEhlRc5jXhqmmrpJiiN5XUL52AZVDwcWACg7kVzBXIClzihFRW+UqjJZhdtELM=,iv:C0H4AFfdfpsBvP1z2chVvW/VTejxYxwNn/KuA50LeH0=,tag:ZEkTCTKvoZH7DjrcwfL3dw==,type:str]
|
|
||||||
version: 3.13.2
|
|
||||||
@@ -0,0 +1,23 @@
|
|||||||
|
apiVersion: ENC[AES256_GCM,data:ECE=,iv:bISz4HovH++X7DW1Qj8Cw0L6+EvPB0+68hh7tfyW5C0=,tag:w+SjD7MsfeIuSf62n+Zl7Q==,type:str]
|
||||||
|
kind: ENC[AES256_GCM,data:AxXaV3Mb,iv:xfJb354Rrjz3zLctW2i6hl40yh9EsfIqKxDvmn8jqnU=,tag:1xQ/RR3KhPLKCTWCYjebJg==,type:str]
|
||||||
|
metadata:
|
||||||
|
name: ENC[AES256_GCM,data:gdQ4OoMYKUPEbsUeA5OI4i1xnh8=,iv:IA2kaCyqQmkYpLolvcTF4aleh+yd/ImXJMhRMvpGCgo=,tag:8qyYYw4EhBKKPzEmpepAeQ==,type:str]
|
||||||
|
namespace: ENC[AES256_GCM,data:/mOSyXWmRg==,iv:cpeHUTlMqlJzJttGtuR3DoiMtvVqFmDS0/5Tl7K7c2M=,tag:q4GxWgWn2wQJxJHqnq4WQA==,type:str]
|
||||||
|
type: ENC[AES256_GCM,data:92OcrsuV,iv:Z1XBy6iZ6unGrK4/SSdDa58pbPL3022gU/f1AOM4uvc=,tag:cd4wWRq/ohm6BJ/Eo6HOIw==,type:str]
|
||||||
|
stringData:
|
||||||
|
REGISTRY_PAT: ENC[AES256_GCM,data:zDKruOXhzsIcFZTTp4r4r9rwHih9uf1cCp06KZ6eIXSIZDvR6aQY4A==,iv:5Vch5Z7xn1KkRxrgOs2p/M58nd6WhtcuUhoZDCi8LSY=,tag:14SAZIWGOxJMqLBtOorjYQ==,type:str]
|
||||||
|
sops:
|
||||||
|
age:
|
||||||
|
- enc: |
|
||||||
|
-----BEGIN AGE ENCRYPTED FILE-----
|
||||||
|
YWdlLWVuY3J5cHRpb24ub3JnL3YxCi0+IFgyNTUxOSBIaG5QVUYyNjhvaENPcUFy
|
||||||
|
K3RSSVM2N2hTeFhNK0M5YWZmODhzZU1HaHlFCmNGZWdFcFEvanVwcXpGSmVvRHVx
|
||||||
|
aG45c2lBY1RuSTYwbDZTVk1QeHNWOTQKLS0tIDg4TnVMNjNtaU1VQk5zQjUvU2hM
|
||||||
|
R245ZVdqc0ZWWVhJb3dOZ3lpU3JjUlUKawSg09ZPq8FKx5tvOVZZ+K4yh7eTQsUp
|
||||||
|
be8mWUpS0+eEmNqh35BwU3HrETMQFA6a1kjVp30JOMtqa5rbYlzF7w==
|
||||||
|
-----END AGE ENCRYPTED FILE-----
|
||||||
|
recipient: age1e5fq3hwxy78psus2nfvmtmua36g0u3suk78ephw6246l974d2utsvn0hla
|
||||||
|
lastmodified: "2026-08-23T23:14:53Z"
|
||||||
|
mac: ENC[AES256_GCM,data:yzi6woUaUCi6w9pG/eKnU7k/VfZgoXg/tW8p9joG8p7iabLWMdlXlx23m/CItw/NE0zeGWA5iZPPFZXOit2vN36VzK3kQNoFW6QbhvYLZi+78C/RWIdcpZkxB/tPIRG0vq8Q1SA+rwGjG/0xeAFh+R7k+YBTMd2XWBH3P7EI5T4=,iv:kf6MDaAVrtDvPIEjHMMLxXDSDRC3I1GpsPeJFUYppiw=,tag:NukVbGLa9EoMYmRsa4nBtA==,type:str]
|
||||||
|
unencrypted_suffix: _unencrypted
|
||||||
|
version: 3.13.2
|
||||||
@@ -1,24 +0,0 @@
|
|||||||
apiVersion: v1
|
|
||||||
kind: Secret
|
|
||||||
type: Opaque
|
|
||||||
metadata:
|
|
||||||
name: forgejo-registry-token
|
|
||||||
namespace: cicd
|
|
||||||
data:
|
|
||||||
username: ENC[AES256_GCM,data:oRNecs0a7rs=,iv:/5EFdNqpSjoxe7XDmAEDMd6lXd0SMsRiMmBM9SIwDHY=,tag:Wi+ggoP+9/vgz9rHrxB9nA==,type:str]
|
|
||||||
password: ENC[AES256_GCM,data:HbmwnWk3ST5SDWXwIhu+M5f/FOfFbJHaG0Q/IWrO63HRXmJTmLMpbjtWIXC9IMFoHeDZ1MNAV8A=,iv:ztJZgpaS//yYCiyr6/ubs/UiXkbGMnokvy4Pe45jQMk=,tag:WMpawc/SVAV4mxsCd6XqAA==,type:str]
|
|
||||||
sops:
|
|
||||||
age:
|
|
||||||
- enc: |
|
|
||||||
-----BEGIN AGE ENCRYPTED FILE-----
|
|
||||||
YWdlLWVuY3J5cHRpb24ub3JnL3YxCi0+IFgyNTUxOSBjQmhxN2E3ZnNTdkR6U2c1
|
|
||||||
ZStsQktkeWUwMEdmdFIyMkRYRVk1ZGppWlZ3CmUzR2JubWw2VjdWUGt6S2lpNmQ3
|
|
||||||
cDdSWjJiYzRIWS9UVERpVDFJenFnaDAKLS0tIGhDSmNMSjZwcDVPR3U0dUcwNk9Q
|
|
||||||
WmdGS1lyS3dkSXIvOFhyRklGRll2UlUK8NGts6a6Fv10c6gxIIPqIIqfgzQ3EEyk
|
|
||||||
SFrMThwbdaOqLY4AMeDrg+k0Y2t1Xj/XOvdNbRCRictDwZUsptvO7A==
|
|
||||||
-----END AGE ENCRYPTED FILE-----
|
|
||||||
recipient: age1e5fq3hwxy78psus2nfvmtmua36g0u3suk78ephw6246l974d2utsvn0hla
|
|
||||||
encrypted_regex: ^(data|stringData)$
|
|
||||||
lastmodified: "2026-10-06T02:01:24Z"
|
|
||||||
mac: ENC[AES256_GCM,data:imebczVzG9YWd42ER4a+w+Bi3dxbN0HFm/1igxzJt6Z0HG/q6i0s59swpGVruk9dQJWrlO8KKqX739ATp2KGC5szrEuRFvPemF594XFCg6ykW+ZeP5VtTvpJg2nHv7/Pu+71ljKKi4gqOJ4SJDn8owAbSN+su6PiT323wax930A=,iv:iG/G2+qQkvbBU95w/GG2PrbAHDOaamuvjqMDBxSW6zI=,tag:wy9Vn72HBDHqCyzTcV15/Q==,type:str]
|
|
||||||
version: 3.13.2
|
|
||||||
|
|||||||
@@ -1,24 +0,0 @@
|
|||||||
apiVersion: ENC[AES256_GCM,data:uS8=,iv:EEoo9U+C244eAJMSTOQVkf5AE6BeHrc5DWPjtWnPRdk=,tag:H+YmBSGvcON3wh0p22LXDQ==,type:str]
|
|
||||||
kind: ENC[AES256_GCM,data:j1/PFkTS,iv:ja4q8X+nzE/ZczwcY+Qe2DnnsxG64W1fkRPQvOaoqvA=,tag:WiilMGagudEKUlc2JdbGyg==,type:str]
|
|
||||||
metadata:
|
|
||||||
name: ENC[AES256_GCM,data:J9iAIHboMyHu6xn/,iv:p3z3uzlkM7VDzOT3WDCelCdZ2t+QqSPmFtqYfvXPQMs=,tag:rKRtpUexVkuZKOJ34a0Xjw==,type:str]
|
|
||||||
namespace: ENC[AES256_GCM,data:su0FvA==,iv:6SPvwxZ/4aoL0Z07zdPC9r6L7HOHuKv3RodXpVcii04=,tag:njwkj+yvSgN8sliJP8T/Kw==,type:str]
|
|
||||||
type: ENC[AES256_GCM,data:Qd6WJN1c,iv:M3fc78LvemcEbWzesuYeQ/GZyIOl7Eg/0EmUe3p0qAk=,tag:Tnzwewn0vwdowxy/EyuPdA==,type:str]
|
|
||||||
stringData:
|
|
||||||
user: ENC[AES256_GCM,data:/Z7gPrsTUZOLzfoZ8cZGD10wrZE=,iv:0ydBSeq+yHB2b1J4W7FwIv55Eh+N3qfQ6Q7PwoUAvYo=,tag:CO19F8nElaYZyFiFR6N/Tg==,type:str]
|
|
||||||
password: ENC[AES256_GCM,data:AOl4StpeQIHSLX+oEFnkfg==,iv:mYsZ+5sum6YqyUPndtPCniTraxldKc803ULlKs8Gsaw=,tag:hK3w51ifZ/omAL7XDf8seg==,type:str]
|
|
||||||
sops:
|
|
||||||
age:
|
|
||||||
- enc: |
|
|
||||||
-----BEGIN AGE ENCRYPTED FILE-----
|
|
||||||
YWdlLWVuY3J5cHRpb24ub3JnL3YxCi0+IFgyNTUxOSBaMlhKVEM2bFdFOFAwV1lp
|
|
||||||
WUd6SEN4ZTF1TEpGYXhOYmJLK0tpcWZyc2w4ClVzZmI2Qk1KUnV1OXpyTEV2WWFa
|
|
||||||
VlJ2eHRSaEhqUnA2dUJVbWJUcEgxcFkKLS0tIG9IaFVnenNpSFRzdStiWjJvakVL
|
|
||||||
aDk2bTZGR3Zya3ROUS9vd1hEQVRFaG8KbeXA6IebHEaB79N6u795336aHesHOgzO
|
|
||||||
uZvvBUzSBy3t3jfFk8bJP4aH79I33Ha2eK5rsvdsiv/orwCMXUINKg==
|
|
||||||
-----END AGE ENCRYPTED FILE-----
|
|
||||||
recipient: age1e5fq3hwxy78psus2nfvmtmua36g0u3suk78ephw6246l974d2utsvn0hla
|
|
||||||
lastmodified: "2026-09-12T21:00:46Z"
|
|
||||||
mac: ENC[AES256_GCM,data:DjzPtR+Ueihh166Bvd3jCLtZFQdrvrxOoF87cv6lxKGWPEptT5vbw/EfuIFJBb6lvEJFDWKRC/r5ASdGwComYsPn0DZs4BPCzeKBtLfP9K2OGCXnAC7eGqt4mzMrrW0CQd1QSGcuXw8CY7uJGkMPGPKe3/0mQWiis2OSpHxTM18=,iv:/QqSEFU9RuX9z5Z6aSaD7KlP/cgGTOYvTH+VJOnDTYM=,tag:yFbFXn+iWqQZx7wW4dKppg==,type:str]
|
|
||||||
unencrypted_suffix: _unencrypted
|
|
||||||
version: 3.13.2
|
|
||||||
@@ -1,24 +0,0 @@
|
|||||||
apiVersion: ENC[AES256_GCM,data:wR4=,iv:cRBzbvu0eUYCYeKeysua1/P3Meli/rQyj/mIV6VWnPM=,tag:oyTPA/mLYNUX+QDkYLlZyQ==,type:str]
|
|
||||||
kind: ENC[AES256_GCM,data:bdKQdadW,iv:F3DQiBI9xhSx87jkS1Hyevo48uUCBjsJSjbScIBznKA=,tag:PFakzzBj5S9F65dxu0L2rg==,type:str]
|
|
||||||
metadata:
|
|
||||||
name: ENC[AES256_GCM,data:XHFYrKClPo+IwRbM,iv:ZGuL+cN840Y1bOTC62NhDDcoZpTzDWQ4GfqPJX/QWmI=,tag:hlCVjzvfcxXGOASc3vda/Q==,type:str]
|
|
||||||
namespace: ENC[AES256_GCM,data:0BbhgZBog+1qY/iRJA==,iv:88tiSpEDqIokT5VP/d6bB2+aUyh1kZ7NEHwZWoJW3XU=,tag:CBR01jh2U9h7kNEcK1e1sA==,type:str]
|
|
||||||
type: ENC[AES256_GCM,data:Mpv1V73w,iv:BW3r6RpLnwe3XDKwrZySyOjrWUnSwIG5JOoPLzP/5gM=,tag:oyJySL0haOei1m4i+1AJ1g==,type:str]
|
|
||||||
stringData:
|
|
||||||
username: ENC[AES256_GCM,data:8xmxLGE=,iv:J/vEvXGoD+ka6FDgnSwDz0fs9IxuJIZW9r7Oyu2qxC8=,tag:dN9jd6NSavMN8+uzvemYWg==,type:str]
|
|
||||||
password: ENC[AES256_GCM,data:vB9PaaUiQZ8FY8pO0cq1fHLi7Gq5t4U=,iv:C0Y1m2SGYP3oTIFoau5JavVmLblj6te/SPMLodIwiZw=,tag:3Ip4YvR4WPzR0bBpTyjytA==,type:str]
|
|
||||||
sops:
|
|
||||||
age:
|
|
||||||
- enc: |
|
|
||||||
-----BEGIN AGE ENCRYPTED FILE-----
|
|
||||||
YWdlLWVuY3J5cHRpb24ub3JnL3YxCi0+IFgyNTUxOSBRT3JoTnhVVW5SUUJXbTdz
|
|
||||||
dUpLcmtBWWhyaGk3Y1hBM1ArcVI5eHREbmp3CiswUGVmd0NhejZwQ2UvNEdxS3ow
|
|
||||||
L1RweS9Kb2paeStLZ0tLSFdWbVZqQW8KLS0tIHJHT3hiMmxtM0Q1Ym5KOVpLVFpl
|
|
||||||
enR3NmdNdmdwVitTQVJlRHFWcjR0N2sKQw9ZZs+Ji/Zq/feO3qy4DwaCfWgDOQ/z
|
|
||||||
FVVhcCXweN58tb+9fzCJ+pNi/hSmvUkCMbb1+60qBvEehNzOoMRJ5g==
|
|
||||||
-----END AGE ENCRYPTED FILE-----
|
|
||||||
recipient: age1e5fq3hwxy78psus2nfvmtmua36g0u3suk78ephw6246l974d2utsvn0hla
|
|
||||||
lastmodified: "2026-09-10T13:31:00Z"
|
|
||||||
mac: ENC[AES256_GCM,data:3HWV/NG0yTbsxY28u41zTRmAPc1kokGb4nCLmAsyq8/uvxcP+evDNyZXYpS93eVdPRfRZ1OqVBzyVGJEnj7JSXQVmlzor9JcWEL2fcpogoLVfJZKTRD6hk6optnBMjj84iQEEOx3A80JrDOdoXsH0pd9bJBABwoUOJwuufbXcIU=,iv:KLZsmAcapQgV08pFhGIvPt5ylsWg3xazAAjPuJYOaXA=,tag:1vKA3fISMIurHzxZ04F3lg==,type:str]
|
|
||||||
unencrypted_suffix: _unencrypted
|
|
||||||
version: 3.13.2
|
|
||||||
@@ -1,28 +0,0 @@
|
|||||||
apiVersion: ENC[AES256_GCM,data:FOg=,iv:15mfPeWXV5LQEYahaYvNf1z2bHbxk4j5i8DXT6mdG/0=,tag:1f9/jnnu+wGeeiXGNFgKzA==,type:str]
|
|
||||||
kind: ENC[AES256_GCM,data:dOFfNQiM,iv:HVLosbRpcCgu4iiYKV8MDLiQ0uhj8DXBfVpRBW2NFNo=,tag:mCbRIzD1OHRhBLc+7xcVug==,type:str]
|
|
||||||
metadata:
|
|
||||||
name: ENC[AES256_GCM,data:kHoKhGyiIQvCfng=,iv:dAhxjeLlXK3yueMKfrHxmh9YmNA7AYKFBquLikCNzcE=,tag:3Xoaw7YNBCU/GINlaQOpBw==,type:str]
|
|
||||||
namespace: ENC[AES256_GCM,data:fTJMZhbqSQWD3/cnWg==,iv:D7zWa91+Fgerfyrywf8VA5YNzGrThhLz7CvYXucfiq0=,tag:RcIegCl2UR1JsbfIQm928w==,type:str]
|
|
||||||
type: ENC[AES256_GCM,data:Qh51bTsM,iv:2Htv0Xze7Hd1m6zkP6rtFXAlg8qm0AKylSjwJxRjpBk=,tag:NCu5iVUTNVfYgErZSvwHIg==,type:str]
|
|
||||||
stringData:
|
|
||||||
host: ENC[AES256_GCM,data:aZXSvQ8B7h78q1kHmh0=,iv:uUyL9X3ehIHqztGAtXtAQWgduvbSsSwZBZlTFMdOlBo=,tag:OM/vdO19VKDSa4W5WQAKNQ==,type:str]
|
|
||||||
port: ENC[AES256_GCM,data:5ZBB,iv:1/XAfq+PJKdBsufx+EPvvB/cm9nbEwYigc8eACXjR8g=,tag:WlNyz7gTPh0KMe5oKVd0BA==,type:str]
|
|
||||||
from: ENC[AES256_GCM,data:2/akr8cXgmgQGnqJaFcLJMDcWw==,iv:0rT/6aqyXxn1jIJ5umYCDZR4S8Pbh4vUgaXNrxd3JF8=,tag:k0pQrPOrqWTyE1Xu9oSzVA==,type:str]
|
|
||||||
user: ENC[AES256_GCM,data:d9BLaFYOYm++HZMzlf1gVauKkUQ=,iv:Wd48T5UPVn6z3bS0t02X9GbrnWal3QoIQv2EgM9z9Wg=,tag:cmg2KnLY4Atwco+j2wVdeg==,type:str]
|
|
||||||
password: ENC[AES256_GCM,data:pmqEj9623A6bThKrkCCjuA==,iv:M/QwJ0s//UvuOjOljl67EDhvZt/9Wp8JicvCcows51A=,tag:bfRyIdj1cgIZxU3WPbKteg==,type:str]
|
|
||||||
notify-email: ENC[AES256_GCM,data:+Xo22g8U2wDKsnPnFq/+GKxgYOI=,iv:PE+C1etlp6046ragiv1iMDQbhfo5IULd/5akD0+Sc6A=,tag:cCZmXByA85fuZL9yozVLjw==,type:str]
|
|
||||||
sops:
|
|
||||||
age:
|
|
||||||
- enc: |
|
|
||||||
-----BEGIN AGE ENCRYPTED FILE-----
|
|
||||||
YWdlLWVuY3J5cHRpb24ub3JnL3YxCi0+IFgyNTUxOSBpVVdxQTZFTHcwMXFFZEFk
|
|
||||||
ckNsYk4rdWtkeXFMVnlyVmdaRDBuRWsvZkQ4CitSSTBXOTZhWVpUZFFlR0JITVV4
|
|
||||||
Uy9lSlNHNjFNaFhHNTN0WnRaRlNNVGcKLS0tIHRlMnZpQVlScGRYYm5nT3Z5TWd6
|
|
||||||
ak1UZ1RobkpQZHBXR3MyenBDcU53Mk0KvH9O6bgwrjay0+1/A6TGX8GhITiDjWoO
|
|
||||||
RNX4fDtqNwhzmCfXbVjK30vlBjOFe+Bb7Z2n+hWMmHHDgFdS0xIAzA==
|
|
||||||
-----END AGE ENCRYPTED FILE-----
|
|
||||||
recipient: age1e5fq3hwxy78psus2nfvmtmua36g0u3suk78ephw6246l974d2utsvn0hla
|
|
||||||
lastmodified: "2026-09-12T20:57:18Z"
|
|
||||||
mac: ENC[AES256_GCM,data:V/wgjnpUBvaV39BCTlecCwQy2/1h+0vixEXleJc/I9y+AOvuwVZNH7M86hdjoAdsKiIoNYySj4Flz+MJ9C8jQoAxBTDPbolP9UwDFWQ5KMJTKPPDoJGLNjy7bUq51WoyePUM6WWAYIiWHIB3OvAxHaSzECzL+ZoAhQy92cPKa1o=,iv:vLtIoD/C5yeXPEr+2Lim6XnWzAj42vr9qQgsxKpuhA8=,tag:PBq8qPHrx4RRgAKCWrxG3Q==,type:str]
|
|
||||||
unencrypted_suffix: _unencrypted
|
|
||||||
version: 3.13.2
|
|
||||||
@@ -1,27 +0,0 @@
|
|||||||
apiVersion: ENC[AES256_GCM,data:YE0=,iv:s3yNqcBn7/DKUQNgbGGwVmlM1HzxYGLBKyB6Y2ii2WE=,tag:77KxAjOFU3G0fSfrgudKkg==,type:str]
|
|
||||||
kind: ENC[AES256_GCM,data:PFW4VV9T,iv:n8gzMjE5C2TAfUTpp/8ex64B+hWUGG1K+2oQ4deN03Q=,tag:18Xqb6Di5izMHmzR5EU+QA==,type:str]
|
|
||||||
metadata:
|
|
||||||
name: ENC[AES256_GCM,data:Xhg1fQrD4itrbvDW0g==,iv:/THWSXAThb9fj+mm3wcxqzSdzdt7nE06+xOpkCxyImE=,tag:UChokr06VkbDZcFZDcUY2A==,type:str]
|
|
||||||
namespace: ENC[AES256_GCM,data:r25U5MuuzDd8JJ2YjQ==,iv:uDUcS4ZTpZe8HmZMArzkdu7LV5GUoLSP2wIs5HB1gv0=,tag:fci7j30hoxnVKJwPFNfd1Q==,type:str]
|
|
||||||
type: ENC[AES256_GCM,data:agEG8Fu8,iv:ckYX0buX8md1CWHXfxbAXQJLzoTxTJI16nlQ9LSzYi0=,tag:4tZWf3REbGOmmBiT14+dew==,type:str]
|
|
||||||
stringData:
|
|
||||||
#ENC[AES256_GCM,data:ehjcsmz1R0i/n31f8M0IIUT4KDBwzz6f5ds=,iv:j5swFAKpC67ZvGioiCCC1D651LxUl9gME8GqK5Uc+ys=,tag:BUJ8k9LHs8NAPPZAwPuifA==,type:comment]
|
|
||||||
#ENC[AES256_GCM,data:ndAB00yun636VHDMonqTghO/jCWodNd/hmdbm1QmCvOAi4FvTLl8bY3wYR+ZtlkSQYvFNqH798MJixv5OZwxBj5H,iv:pS+7B60jaS5jhqDRw2LbBFv7mD1HO6+hjjv+iNpenXc=,tag:NU6+gxCHTGxqeDMfvkwJWw==,type:comment]
|
|
||||||
#ENC[AES256_GCM,data:T3mhSm/5q7JTSXNLrjhpP5GhqA7nXz8uAhJcEV1RDctAX0Dyfq8Qn4bNFO51ibwTETx4SnunPuFZVs++AvRnsA==,iv:oRGM8N4iEcwBrMzoEXQAeKqCKzUq+jXTMVq9W2l6oh4=,tag:GrrbC/tkWpA5kp5UYCyRBA==,type:comment]
|
|
||||||
app-token: ENC[AES256_GCM,data:jw+AqbsxyoYRvNrUDrq+GNq/TNfweFCs,iv:67vSSgMZCMV0GG37ZxUxHAWZqOOGMYCmo3J43WgLyNk=,tag:xlrnip4XomXBbMmooW9FKg==,type:str]
|
|
||||||
client-token: ENC[AES256_GCM,data:gsxeCqKh4e+DFjpn9jM5GfemAdBf8dSv,iv:l2bBMdxQUil8jU9XDjXGn3EtvFVrK5ibXDCeGaPbYTY=,tag:ELf5S6cdNQJ84Es5upu1IQ==,type:str]
|
|
||||||
sops:
|
|
||||||
age:
|
|
||||||
- enc: |
|
|
||||||
-----BEGIN AGE ENCRYPTED FILE-----
|
|
||||||
YWdlLWVuY3J5cHRpb24ub3JnL3YxCi0+IFgyNTUxOSAza3YrRW1VTVNSOGlMK21a
|
|
||||||
bDhzQlEyZDNnZTZrSVNnTUEzU1hSdnM1ZFVzCjdBSUlmWG5EcnlzbSs5bXdDaGkx
|
|
||||||
ME1nMnRqQzF1Vkc3b3FXSUVHT1g0ZDgKLS0tIHpMUytEMjdLQ2E0Unp2di9KS3JQ
|
|
||||||
eHBraDk1clJyanhLY2dGM0tESmJIUFkKHTl3y9uQiEofOFD8j2vH3YK/CVzlq11w
|
|
||||||
GfShIji1yCvvowKGzYYhsQK0UM0FzhzBv0GFMYWQCBq8pGdoPVmO5g==
|
|
||||||
-----END AGE ENCRYPTED FILE-----
|
|
||||||
recipient: age1e5fq3hwxy78psus2nfvmtmua36g0u3suk78ephw6246l974d2utsvn0hla
|
|
||||||
lastmodified: "2026-09-10T13:31:00Z"
|
|
||||||
mac: ENC[AES256_GCM,data:JhnO0V6cd2QVY/VhwHAJ5J75GeVlOVHBfVBTZstkj/IvpkAcwS/JE2b6jXiCwEC4n/vdA8DJ074noysUBRxh4Y7O4NKuvWcTniQKgqULNL1Hzgj3NdUkcQlWT+Z0HQ7FlvFH97VVXVfasU+CLHG48ShT2fDSj8JusEllb9CwSvg=,iv:PZo2krxvJc1TLJbvx+S9ClthoBe4w7WigUkq7dg0gNk=,tag:2IF5g/WTRP4XdnCZzDbiIA==,type:str]
|
|
||||||
unencrypted_suffix: _unencrypted
|
|
||||||
version: 3.13.2
|
|
||||||
@@ -1,26 +0,0 @@
|
|||||||
apiVersion: v1
|
|
||||||
kind: Secret
|
|
||||||
type: Opaque
|
|
||||||
metadata:
|
|
||||||
name: memory-agent-oidc
|
|
||||||
namespace: poimen
|
|
||||||
data:
|
|
||||||
CLIENT_ID: ENC[AES256_GCM,data:c/RvtV6anofX8h1BmlKu9w==,iv:3lQ1BR8kVvF1RHVfKstmb0Y7u/uX5OrvmGiCi/xTpjw=,tag:9JC2WkfQFWaiZroAEmPenw==,type:str]
|
|
||||||
CLIENT_SECRET: ENC[AES256_GCM,data:I258/6O43PccyllYN/wfoKvTgNgZONTivM/KFIr8TGqSl+2XQkwBXvK2VQc5Xgc5cpwlrgnjk8pjQbqr,iv:MZyA+V5z9Po2VoxqvOSlWh1fZp1lrkcbYMx7VcSIaJs=,tag:gXH0BpA8KOZiVd+4RnhRzg==,type:str]
|
|
||||||
ISSUER: ENC[AES256_GCM,data:GX/uQPDoeJWXXQZlzD6oOIvxo7H4LRAv4MrPAiCgmv6WxW59+KKkymuDT/T9MiDm4bNhxVPgB7nHbDcMHfPvU2zCNM2TWYUsNOgGwxNAqM8=,iv:5OEsdrUZvMLO2C8Ea2i5alsyFGtmEk3othTemk8fOk4=,tag:8CMlRY2JCe4z4fv4WuWjRQ==,type:str]
|
|
||||||
TOKEN_URL: ENC[AES256_GCM,data:KeU1pQzvQ2/1lQhOqNtcR7t5TGVx1J7NY8ogxCXS6IuHhVe0zWYIbC4BYFc2H9PAjsMJwCCg75N1FrIiCYBvpfK8ln0=,iv:NbPiJC/B7W1Zm+JwnEGDikE2cb3L4l6TBeQTKEb2boM=,tag:FRmllFLZzQW03lsCu9mAUA==,type:str]
|
|
||||||
sops:
|
|
||||||
age:
|
|
||||||
- enc: |
|
|
||||||
-----BEGIN AGE ENCRYPTED FILE-----
|
|
||||||
YWdlLWVuY3J5cHRpb24ub3JnL3YxCi0+IFgyNTUxOSBmK0dPSmhKT01FSitDdUNW
|
|
||||||
Um1XQU9FVnBUeDdoWXpCcXRzVXh0VXkvNGxNClZaQ3R5U2NkYTJjaFdHRWhUVmFS
|
|
||||||
K0tHZVRFRDZGREVRZzZqcWJ6dnRpUUEKLS0tIE15UUNtMStKbWwzb3dEVGEwN1VQ
|
|
||||||
cktlVTM2SUhpOGJZMXJOOG84RnhCQzAKOdM0pThEaN37SJtRrKIivncMu8Z91Btq
|
|
||||||
es6NOlJdBUhzIhnEJWfDzZ9aA6I/fYzugKbC+AfUwdGgThAgHx9crg==
|
|
||||||
-----END AGE ENCRYPTED FILE-----
|
|
||||||
recipient: age1e5fq3hwxy78psus2nfvmtmua36g0u3suk78ephw6246l974d2utsvn0hla
|
|
||||||
encrypted_regex: ^(data|stringData)$
|
|
||||||
lastmodified: "2026-10-06T02:01:24Z"
|
|
||||||
mac: ENC[AES256_GCM,data:/BTQ984D+hsk0LmnjD3hxopB65NAR54LhoAPNcATWA7MCTJXfdnYRu3gNxUzyiyCBd+rDaPp77TBnak4jVjMnOiYJsYLj1R7hrrhTZopz8pT+YNMupperwsirKZwK8it4Mu+fnpCyox2mtGED0hk+Nh/b6IteTRt5lS7noumo2M=,iv:RWIrVkNYj+8mqMSPiLueToexabzAtVbIR525m6bUrlg=,tag:5+wcNoNYsjGKpFlML+N70Q==,type:str]
|
|
||||||
version: 3.13.2
|
|
||||||
@@ -1,27 +0,0 @@
|
|||||||
apiVersion: v1
|
|
||||||
kind: Secret
|
|
||||||
type: Opaque
|
|
||||||
metadata:
|
|
||||||
name: oauth2-credentials
|
|
||||||
namespace: iam
|
|
||||||
data:
|
|
||||||
api-gw-client-secret: ENC[AES256_GCM,data:YiUCk61cCsTJE8gTLZWhqVPsCSu3b4OnG+Oh456A+mnxip0FjLTTqV+kYBdfZivIkn9ua4RcVW+rYILu,iv:K08m1EaB7/SIVNWZ3FfeRP4tbCAo6KeiNC0NpE9VO1o=,tag:ZXV9YRWUOPJ/vdoqMtvQeA==,type:str]
|
|
||||||
minio-client-secret: ENC[AES256_GCM,data:vcwLo1cJqbZr2MwkAKO09xPjb09ss7+s6HIvEfaLxt8ka5PUAlXQ37pTkynuktlKq/t0DvSk+x1+5G7QqVD1JJlwyDGM6yuOhBQ3MwucLNl+T4RDKtgGuA==,iv:sCdd+UNX2TfTAM6Zslrh8KrvBSzqpe67F3YMGrl4YDU=,tag:9Tpzm9NEXNuXyCd7l7GeHw==,type:str]
|
|
||||||
poimen-client-secret: ENC[AES256_GCM,data:dYtCiMGZaOFokihfGD2SXJDfXrhfwEQcTOPNu7JNHDUnx0hqwAdYAPAJTEN21p0OpHYDINMs5lwUpMwY,iv:ll8USuzs0881ryHImVjHGO0iFxUzqg5XtI6Ekd+EFXE=,tag:I/4ZfB9Ss4zEP57sRtRTXQ==,type:str]
|
|
||||||
paperless-client-secret: ENC[AES256_GCM,data:XMj9rHkI20lI37vChq9wS5lUq7l95SisRX0LChuj09O5w76Zt9NdG6OEUYQFf1z8vCfMJxBInIEEIq0e,iv:UpYy2ZEZ4AgBACEyrlxEcr13V+8Ksu4p8JHYApmyYHo=,tag:o9Z+/b6T9POgowIsks56kw==,type:str]
|
|
||||||
grafana-client-secret: ENC[AES256_GCM,data:V/j0+P3HoDLqYjRalWK4v1hvJTuVmzxVra47HsF1/BZvWZjIyEIH3Pt8BekT3O1dUFynxjcaxdZMBVYg,iv:9pMp+vIsp/sA7GP9wqNDf5DdZVLDow46OURW0mMRXIc=,tag:i7VJFA5o0hToZEJ5JPWIvw==,type:str]
|
|
||||||
sops:
|
|
||||||
age:
|
|
||||||
- enc: |
|
|
||||||
-----BEGIN AGE ENCRYPTED FILE-----
|
|
||||||
YWdlLWVuY3J5cHRpb24ub3JnL3YxCi0+IFgyNTUxOSB2amZPendIOU9PeStOcmJG
|
|
||||||
c1dzOFVvd3RoT3dXQlJUNkdCSytEZUVGVEJJCklMUkNjUytBMXh0OVUrNUlpMWw3
|
|
||||||
aHRFT1hBZTZHNHVtaGJCTEFyT2ZWNWsKLS0tIENxR3FKMEplV0V5Y0dsZzBkODVG
|
|
||||||
U0ZlT2R0VFdEQmpsakVvZ1FJRkRQYTAKESQcSlMAuCG0/tLWWZaeoPayf1EKxSaf
|
|
||||||
e4o8TmjmSgPEhepQ/LmNXl6obyuqUxztkh4Mm6pocqDp+gfzt7X/1g==
|
|
||||||
-----END AGE ENCRYPTED FILE-----
|
|
||||||
recipient: age1e5fq3hwxy78psus2nfvmtmua36g0u3suk78ephw6246l974d2utsvn0hla
|
|
||||||
encrypted_regex: ^(data|stringData)$
|
|
||||||
lastmodified: "2026-10-06T02:01:24Z"
|
|
||||||
mac: ENC[AES256_GCM,data:AI/znHiUa/Rwg0YRz65qUZ+b6V73oi3ZfAG/V5uZZvrGFrA0EISzD5LaP5Kl4GUU1svo4G5EI4aftPDgpdPptz21CCa8iYkXGe9pTDmtaE5ZICQAUbRcVhGMTfuWFhrgEhMfCJdOpfHaIQVEsQJQJgrnkXQVuUe9aT75LQz7pnY=,iv:KbIaYT0VeBT2WeSU5V5ZB4e+04JICYaY+egGN1Pv5bM=,tag:pPbhDxeLUx6V1XC/LPwxTg==,type:str]
|
|
||||||
version: 3.13.2
|
|
||||||
@@ -1,24 +0,0 @@
|
|||||||
apiVersion: v1
|
|
||||||
kind: Secret
|
|
||||||
metadata:
|
|
||||||
name: paperless-ai-config
|
|
||||||
namespace: paperless
|
|
||||||
type: Opaque
|
|
||||||
stringData:
|
|
||||||
PAPERLESS_API_TOKEN: ENC[AES256_GCM,data:wlBC85ep6zioWLhfhNczkKfTMR8tmciN+4r3of8GpQoJmKyE2r7pOg==,iv:Rem/UJl5wUNi8G+uEV7f2eCLabaY26sZ7+AsKYiOZ4I=,tag:bGS1fu13Mwsrr+5NUEzzLw==,type:str]
|
|
||||||
LLM_AUTH_CLIENT_SECRET: ENC[AES256_GCM,data:co7FfmRXKgrz9fNgR10KtlHL/iG4F5WKJgjcKem1H5hF5FviVi4+CQNekA==,iv:ADtBHiI6BtrkuH1iIfKV3I5odNLMQe5y/9GGTJrPNN0=,tag:j6wX6zO5VhKoLzdr7BQZCw==,type:str]
|
|
||||||
sops:
|
|
||||||
age:
|
|
||||||
- enc: |
|
|
||||||
-----BEGIN AGE ENCRYPTED FILE-----
|
|
||||||
YWdlLWVuY3J5cHRpb24ub3JnL3YxCi0+IFgyNTUxOSBJWDZwTE1haUY5ZkgybnBx
|
|
||||||
WEFVSzQvNjlGaDlvaHhuSTVCY2dYb0s1NW4wCmhkM0N6YlNIRTYrVkdxaHJaVHVG
|
|
||||||
bUEzTVV3WFQ0OWwrdEZnanJJa09Nb3MKLS0tIGduNEFtT2hCUDlkZWpWZmliZy83
|
|
||||||
cUoxcXp1NFF3SFpBVVdSZE5GY1VIWmsKH+cMqasOVxgCnGedaM2IAsgwOzEsOMct
|
|
||||||
0XjmInpppWNe+t7leEb6MqEY2cPQHL+l2L5jkZzAOfImwaIwMQnghw==
|
|
||||||
-----END AGE ENCRYPTED FILE-----
|
|
||||||
recipient: age1e5fq3hwxy78psus2nfvmtmua36g0u3suk78ephw6246l974d2utsvn0hla
|
|
||||||
encrypted_regex: ^(data|stringData)$
|
|
||||||
lastmodified: "2026-09-14T14:19:39Z"
|
|
||||||
mac: ENC[AES256_GCM,data:jDdmiFg6uB1za7sAjO1CnGHdRPyUnmWCMJxqHrE3BO82pNbtm8yLOf+W6CfFKAjfZYqEE2mdKhABm7zeJgJlub3eXJbAirAFrp5jrbfHw0qsFo85Gj/BsrSDB401Aky6PxvRomz66FyX5zDDXIGAMEMlyNEadMplTfrZQQ9hQWM=,iv:UTSF72ofUyWs1LXGKQwBP60hK64UxhqTFM8QTVozGoo=,tag:OKivMDAqwWgrX+kNjvQrPg==,type:str]
|
|
||||||
version: 3.13.2
|
|
||||||
@@ -1,24 +0,0 @@
|
|||||||
apiVersion: v1
|
|
||||||
kind: Secret
|
|
||||||
type: Opaque
|
|
||||||
metadata:
|
|
||||||
name: pi-code-agent-api-keys
|
|
||||||
namespace: poimen-sandbox
|
|
||||||
stringData:
|
|
||||||
ANTHROPIC_API_KEY: ENC[AES256_GCM,data:TBcno/dzj3qykHjeX96UKZekuA/WMQT2E7a1ziPyYo5J6lWLPydgli84KeJZhH62/8CnnFtFOhVIe4FWCGPGjvqKH6M8WbiQHaP9y7FN0qQUpFHKNVAQ2R+s0wInhw0eUmANvd7bRx8aIZ2X,iv:oex19yVtWUevoJ0A3mkMLCfWu85o1gPSNp43x1iV0LE=,tag:BW3zQnwvagPceeNird9CZg==,type:str]
|
|
||||||
DEEPSEEK_API_KEY: ENC[AES256_GCM,data:vq/5gOsMVjlVMd0oXiBtHFHFEr+IF2YR2iP2OBFWx3ZFNoQ=,iv:QhLU/BRIJb/7QKDCRyw+HWPphZifVEhIOLywYDgOb20=,tag:BZdtXw+WsuK+P4E0caTa0Q==,type:str]
|
|
||||||
sops:
|
|
||||||
age:
|
|
||||||
- enc: |
|
|
||||||
-----BEGIN AGE ENCRYPTED FILE-----
|
|
||||||
YWdlLWVuY3J5cHRpb24ub3JnL3YxCi0+IFgyNTUxOSBqNm1LNE5nWktnd3c3STg3
|
|
||||||
UlVWbWJxWElxUHMwa0JVMk81Z0c4d0JaQm1vCnpLQWJWV3hxOU00NzJIaG51Mmlr
|
|
||||||
ZWpNTFJWcmdtV0w4YndQeHpvSUx2MTAKLS0tIDVnNkNuVWhPUFZ5V2hFOEt1eitG
|
|
||||||
blVqRy8yNnYzSU1FNzZGNkxrRElvWVEKL3J77INje75+CvKXaJHC3CvONgHv7d0a
|
|
||||||
a10MITvfreFr6M4AN3Z/mno49SDMp15Q4oQRagHHxSTS1K54mWHo8g==
|
|
||||||
-----END AGE ENCRYPTED FILE-----
|
|
||||||
recipient: age1e5fq3hwxy78psus2nfvmtmua36g0u3suk78ephw6246l974d2utsvn0hla
|
|
||||||
encrypted_regex: ^(data|stringData)$
|
|
||||||
lastmodified: "2026-10-06T01:19:49Z"
|
|
||||||
mac: ENC[AES256_GCM,data:GpYl8IRefms36GvO3RW41c0US7SOgoOhd4rumxsCdEf5ME9kJ0eOxPx8klMgnlYrkBnwHmad8jj7C+HcA5Eim7mdUaYOZZWPFohvC6N4GLHX85aH78P09CelqG5tdm/Gm+1QfxYu0vANYGCAVjLK7YbBbZjbZmbvVfQvAbs3mOY=,iv:y3lglGu8FhTHQpO1poSIKgGYJFu5J9yjIaOjulda6fY=,tag:5Sgh4TbtNFMw7xOJjYRn0g==,type:str]
|
|
||||||
version: 3.13.2
|
|
||||||
@@ -7,34 +7,23 @@ metadata:
|
|||||||
exec:
|
exec:
|
||||||
path: ksops
|
path: ksops
|
||||||
files:
|
files:
|
||||||
- agent-pod-models.enc.yaml
|
- agent-pod-models.enc.yaml
|
||||||
- agent-pod-ssh-key.enc.yaml
|
- agent-pod-ssh-key.enc.yaml
|
||||||
- authentik-secrets.enc.yaml
|
- authentik-secrets.enc.yaml
|
||||||
- cloudflare-secrets.enc.yaml
|
- cloudflare-secrets.enc.yaml
|
||||||
- forgejo-registry-pat-api.enc.yaml
|
- forgejo-registry-pat.enc.yaml
|
||||||
- forgejo-registry-pull.enc.yaml
|
- forgejo-registry-pull.enc.yaml
|
||||||
- forgejo-runner-token.enc.yaml
|
- forgejo-runner-token.enc.yaml
|
||||||
- forgejo-secrets.enc.yaml
|
- forgejo-secrets.enc.yaml
|
||||||
- grafana-oidc-secrets.enc.yaml
|
- grafana-oidc-secrets.enc.yaml
|
||||||
- grafana-secrets.enc.yaml
|
- grafana-secrets.enc.yaml
|
||||||
- homarr-auth-oidc.enc.yaml
|
- homarr-auth-oidc.enc.yaml
|
||||||
- homarr-db-encryption.enc.yaml
|
- homarr-db-encryption.enc.yaml
|
||||||
- homarr-secrets.enc.yaml
|
- homarr-secrets.enc.yaml
|
||||||
- homelab-ca-secrets.enc.yaml
|
- homelab-ca-secrets.enc.yaml
|
||||||
- loki-secrets.enc.yaml
|
- loki-secrets.enc.yaml
|
||||||
- minio-secrets.enc.yaml
|
- minio-secrets.enc.yaml
|
||||||
- paperless-secrets.enc.yaml
|
- paperless-secrets.enc.yaml
|
||||||
- vault-secrets.enc.yaml
|
- vault-secrets.enc.yaml
|
||||||
- vault-unseal-keys.enc.yaml
|
- vault-unseal-keys.enc.yaml
|
||||||
- portfolio-secrets.enc.yaml
|
- portfolio-secrets.enc.yaml
|
||||||
- gotify-admin-secrets.enc.yaml
|
|
||||||
- gotify-tokens-secrets.enc.yaml
|
|
||||||
- gotify-smtp-secrets.enc.yaml
|
|
||||||
- forgejo-smtp-secrets.enc.yaml
|
|
||||||
- paperless-ai-secrets.enc.yaml
|
|
||||||
- memory-agent-oidc.enc.yaml
|
|
||||||
- oauth2-credentials.enc.yaml
|
|
||||||
- forgejo-registry-token.enc.yaml
|
|
||||||
- pi-sandbox-secrets.enc.yaml
|
|
||||||
- etcd-defrag-creds.enc.yaml
|
|
||||||
- zitadel-masterkey.enc.yaml
|
|
||||||
|
|||||||
@@ -1,23 +0,0 @@
|
|||||||
apiVersion: v1
|
|
||||||
kind: Secret
|
|
||||||
metadata:
|
|
||||||
name: talos-repair-config
|
|
||||||
namespace: cicd
|
|
||||||
type: Opaque
|
|
||||||
stringData:
|
|
||||||
config: ENC[AES256_GCM,data:WO+jinh/2Rq5VeGLoDDJOQL4zfYJINSTYZCwGWndbzfIHw4XRwxDB7BixjCdpPuLOkNIBAXHQpKPBhlQpvRTso70L26njgVdVENUGeNhxvb6/cwl3VYRsfQQxKoQW9Qu6DyCD7ItuyazXMdIbENKBoih7GA2IjKdGeEtpB+a6PO+6rpI0AQRIjM9h65yJ6gvWeLZmb6U0qCFW61SelHmVSsfehxH/R9EKQROKwD0Z/TgYnoS28OuDtixAQVfnrI3gtgUAeXgnPQTJf1Vb9iwbRBvaSWkPSIqa7hOqWEIM2qyrvhTsEb8XDRUHTmp4BCxYktIxoiSWZEbeh0y0HKRzekZIj4rHA+c/JYSPqS0dvn1Ga+8PTc1LNdXDWIcKI58YQ2jzA0oE2vm0YzmOjcDTzTGLDBk49gIql+AMfwoxCop7t1PB7BrJw6M4bj9M5aHIq8ZlGXDvtWZcSEBj0ChZ0q20cB4v4bvMkbuJR/PS25uNkeG+UBCPidBQqCUw37aNf8SDwOaAC+6PeHdLmcJ/dkKntGFlU5MQzWQXfqs/fp95ze3mr7f3et7SqVl7fAlYSdEt6dA2xxnFnqgNwAm3UacV/We6SRnjrFlBAHZ3Q5hIuKkxmszsS4Bh/VuNtZI5YJ4ldnoIZC3aWKDt+rVB6P+Qxp1T1XqZj8GY715DZRP1q+Z7iQ9RcXiJBTD5qWVpnkESOvbTEYv/W3oXTufVRrJ8Ps0on/xWRF5NU04+tqvToC8+MIQDz5rb+eXYCEWjZG9ZhInY+M2HRTLg+c49dRlyqVnnqfNWBejSS/hoQbf5HmkUbtzsCftvu2NwS2nOMhm55xcCsAunB+0uY+Bj4jqyqRvWUjA99yHIdQH5JTJXE4FQPxdBTmBFp8xVdYWvlnCojK4qfv5EurLUunBugdSdYidi2TKYEoW2mX19RdVnkQgBjW9caaZUX9BIi+zNhObKenoWxRORCb0dHw72mwXMaSQM4IDygcuwi/79OtkYik3juECVmI58bu/GFRo2NtmgkGdMD29SMV6rerDtYjGjetgFvWkDy6hrB/Vz4dI37eGt/EH/7G0z/IT9Q2sM8nzJDtCYdicepLQ1WaM0P4BEn2rrqhv81VvDH7M9e7wtz4xly5RYQUr5wkzvoSEIglFekPvPmhIxEsNdaBj6MlVmLTbEbv85oBLwm0ZLRJcgUsrBbZghGKQaI5udAk1dgwOng9v0Ai+ilJ2RSt2VI6WG1rwRnDG+Hv+H1cKT/NwA8ocmM/kxQlUE3BxESrxhTnKq6W0rzPInIj+xeS8v1X4sloGJIiweCCI8YrqUnmYKKQ6Rtd5B4jS5fAa8jp274/R4xvLaR2r70wKp890Iwfb948PwqjNpH/XlOUcfIxPu3jHO65OEyX3OG/+qm+g91AmxlrwZRDYeSioHztz55Du+JKX2Twnb5ttEwVm6I7eQWGbzw50Qgg6I0cHM1YRrXv/h35C8pkXxV7vMlyR0g5ELAoRWYkuveniruKNIIPBw6SY81RtjIIoPvKzNAFssNdiNxfYEsHiDlfK9kUvTLs8qREmLt1rzgD/vHtanmKh7WMtHN42tSUp+NhoHPlEyaaJLUMkFS7suh2S9xPmhisw61npROXrc2PBxLR52i8t0cJYFa1XuZ40KMCZ7kw0UmKiUxeFDTlZkaOTocVqw3qLY906argYnVdkpaoJMUXsnE3JmXch9HG1qpP+hY8LJSOl5ejAiQADHYDm8P/+9VVlNL6eo2O6qFUs9lC+I8hVeSOvJd8+aLeWisFeboKjarhw/52eXwZdTEpPHa7yMDsIQgciqN82yagJYrEL6BevvZ/kGHP5TszYYfcKcN28k9y/R2JYND2TvYeIKb2Nmj9rhwuXBOFnlep4Exw1QS0If80gJG1BCub+u6GKk9FaFHUSH/x3MIRHwVzCHRnZxqbwc1uGZ2I3rRxVq5MHo5p7htS/KYi7+cQjSdRvfdlCofo6YKP38qQwh9y9yAUqMEOABtjUaEJSeWlGq2yh0onm+Uqm54fcCSr7S5MvBTZ1oblLqVUrZBDTIkY5cdbuiyyoj7GPLHrxUo25yiGI+FXHKy136E0Rv7p5N8o3U5O8ycPdk5vOVYgvM3pdLS1zHHsVYIYY/Y/svtDUnMhJONl5AwQ2sDZ2GiWx1nWJ4VumLuwb/Yow/BHtnW6SOeWFSwRkgJdNL5mzrNoexytbrDaSWR0IpuLUbvK/Gi4MJaEkm1acQB1CMOjIymVu1pcih0H1Zl4O+fhQM+bVke6NKrBSUKErHWca9iNH16Du7iXBbaK0Dz73nIhALJKCivr1rWviXXxeQuzTFMRXdK/SalJySHM7ov6qOikQTG/Q97zQ+UYiUnLo3UxlWngXrnzGy8fAb58v9bHhEtnvCrAhiJTer0x4GYQJGwYjQDbN9ucpu00PDnQU0GqYJHqCf4Vm9Y3SYTs92T6Lftvu3nw/ZH6PblcznC6sueEPON5QzzQppepezdolRNyx4g8XYsI+XJlCNrExWxDxErLBTOm3f7aB19RYCS1tG0G/aKEJTXh9RE5VyWSyBzPNMuLZF9HIIHp3yGpqGM7xsYKsMtngBiyXC+i/C/geIgUFJym/sqWn4iPDWtd0YeELg46B5krcolTg87KEeiqDAebieqL5ZiftnVi10kV2L2XPs4ofJjpVI1Q53RsgT89zWXYv97DTZeDwSE8FY2vbADnUpGk/UZ2WMQlX8iwFOTo1woE6AHyqrq6kzGamUGsyoAarqmJk77o2ktzO2M4OqsVqJErSWTcCLZOlxsDWUn/OsQX5+9vaAhHwDHMmrqWo6cJuAtvaLYOHVB/BUOiI/MJLSYeDIrKUML3Ew0GbX89jkR45SPjRdsXQ/oVCJDxm7WjF9jd6bly2wPTmWCzoqeTJU48jPk47tDHWA7QjLEah6PajxbAs/xSN4c2uK9ltR3K/urNpOTYwsFMLgRfzontPe8RMB9A6aZcwQnIhLTpgX8fw/j+aqwqJwVcIk57/KvcOksBjN4rwPQ78kCmpLJ/KEjYh1z8EwIdVX3UDvq8c8YSZnzwsTAVfhWxigvLGzQDTXrr8aNMDXwB2iUVwhNdGw/E1UCSvsKbvw+p9YRaCAzPnnKa8AVAJySAc1Ys/DAYskdKYaTPUwdCXyZfLzfOsFvEzBxqrRgxxK77ij5UQXKINjQpAIP6pkDze+JTwWQsPfcMZ5xtb2tpiUF9FvCVqR1dfblppq3/f3ZHSl7f4s/sOM2/ZRkiI4m8yxhWDMtauxyrnkgiLsOBUcK4MclD5E3H6KtaJODFiCyH+NPtAMmaZ1iduRM51qxmrHlcI5B4ErJum/iZg+zIokXqIi/U6B+tbjj0EKugN+5V03JaoTvdaGQKNvJHnyP0odFN05ZgZnYCKGGh41EGyCZ8/lmrNbAfZRPjRtHw5ypBUiW8Yz+SkumgWA637ASf1AklCNs9MBBuOPmGckDWy8zTvUCgWCwYehIjKSQ+1hYoWpraLNOZy7tHlTQZ7G5zIFR3cJljO4bfmpAGDsSeDQtBsAI90gD4P3ipKFXVQTfl7c3CD1kB8TiOpG0xVGlYQ4dP15z1wTUfHRz82eFxfwn2fc/R/AKmINq9P5PEL31jhLM+gTxctb2BiGn8cCRuorLCg9FtkwC4jy2AluVj6uZZOGvDCYyGqFsdObgwb+FdIoCYDdeZXo+1dxlxhL1258L6h5+yJBgSy6QDN26N6MMNnK2iD7QTQwtB9CfaX3Bk6T0nZ0TT6zSxu7ix7UG+E5AKwoMVcD0EuLlmJ0IhLI+4ZZ8z/QUIzeTZ9ve+r8uyHKmWr2oR8ec5m95PGG5JzWmw30sDelFFl6S3KxsHwzlJsXeXbE5I/Z0RWZQBa8xPbmY54qYXPzp3O+9WYys6A697UzL6fcCORYokB/TR5exBS2saW4OhkwX5ss9aUJGZiMFSgfF1paxqXkGIx3IuDH5xP3QxhGxNMB+T+Yn+meApf2A00dEUng1HRtgBU5Mk/TM19g8l3nVtwTrmAZDm50jIn+G51GpeoBeYPONhGfb1Ngao383TPkvShaNujE3zsJLfJCrNda76rIechIhAC25wWauUMGUU8daL8cdtJnAEeidnolR+lVf5WFKUxvO36X84FCSaR4PqzvlNk7hOvd607h7IGOEVx7/XRLpWDDrrT6hpY653lNf3RCsxdQ7kS9e5hi/RpU1mf9mdTOsf+AtHkkog336jKdyl1/plDV/AlRS8/QjlPfeyvGmA6gEC8cZmBkvyZPbs81tYmif8q2Amd9La3wldh3evYOOkC/b1QQ3fLryoeUl5/9oVprW/aEfmcTxG9CytaFfsx6cAejAb7g6fz/iaWE57fXfth7K7ATi827ZwAs0XX9lLkyGn60ePtqg771isK5/v1jCsbDQDwHwNLehH+BX9zZWWjaQxK85/o09Oaiy0oGY1nivv5kHelmGwj8qqd,iv:a4NHhErZolhOuzNCUU51GQiCfCT8GzZ3GQ24s7fkuyU=,tag:w+GrXmaYWADTrBxMko3xtg==,type:str]
|
|
||||||
sops:
|
|
||||||
age:
|
|
||||||
- enc: |
|
|
||||||
-----BEGIN AGE ENCRYPTED FILE-----
|
|
||||||
YWdlLWVuY3J5cHRpb24ub3JnL3YxCi0+IFgyNTUxOSBjQmk5aE1GN2dpVlREZU1s
|
|
||||||
N3V5ZUQweWxMaVo3Y1VjdzZTYW96eFBYZGxvCnNJcjVXKzI4VnliTWFXQy9iSy9k
|
|
||||||
eEZmWlVPQzhZK09NZGowZUVXc1BoZTQKLS0tIHIrMEpTM0lMU0w0eG02aUxJY2VZ
|
|
||||||
aUQ0cmkvK0UwdzhqcDJwM1RDcnpEU0UKQRiTa9/yNrqlkIdlNeaIDzIKa/xvx5nW
|
|
||||||
7wTNfjq2M3go0DMnaVjJA3e15JZBOpOs0QP9z9ydKF/FS4PeCIEFyQ==
|
|
||||||
-----END AGE ENCRYPTED FILE-----
|
|
||||||
recipient: age1e5fq3hwxy78psus2nfvmtmua36g0u3suk78ephw6246l974d2utsvn0hla
|
|
||||||
encrypted_regex: ^(data|stringData)$
|
|
||||||
lastmodified: "2026-10-07T04:27:33Z"
|
|
||||||
mac: ENC[AES256_GCM,data:CxZdlGJdIFFTwaeeS9LW2XDDgvUmSsBeBKtFYyDM1JliS8BHtgEv48yuCWxP5sR3SaYtcgNSIQ55zUa89jM6dQHqvjK+1jSYu1xzFWPOlxUu8gVSlU0QLS4GU1RChXuPpTUOjxzn4ymZukGgclZk9iuMvI0/U+nGD8nvs8k0zpM=,iv:MGZ7YsOsjelJPjLYWtALOrM6r8Vd1HgbU/PKL4c3r3k=,tag:dIE38TCobESY3j56NVEvIw==,type:str]
|
|
||||||
version: 3.13.2
|
|
||||||
@@ -1,23 +0,0 @@
|
|||||||
apiVersion: v1
|
|
||||||
kind: Secret
|
|
||||||
metadata:
|
|
||||||
name: zitadel-masterkey
|
|
||||||
namespace: iam
|
|
||||||
type: Opaque
|
|
||||||
stringData:
|
|
||||||
masterkey: ENC[AES256_GCM,data:Da543Jt48o6p3f6/AbZRsjChz3NexPJoi/mC/LB6jUI=,iv:irS0n76tZ6QzoQMm0dWrvbw+SPfXz4h13jQb/Bjfgwg=,tag:tfbgaAdxmPIjleB1OXLn0Q==,type:str]
|
|
||||||
sops:
|
|
||||||
age:
|
|
||||||
- enc: |
|
|
||||||
-----BEGIN AGE ENCRYPTED FILE-----
|
|
||||||
YWdlLWVuY3J5cHRpb24ub3JnL3YxCi0+IFgyNTUxOSBOZld2VG9NaFhIVWpBcGpO
|
|
||||||
SmVwNm9FT2wrQmFKb0RGQmY4TCtITjFEZjBjCmNuNXNJYTdsZE44cDNzR2hiNTdy
|
|
||||||
QWlVdzBtdjd0cSsxUjQxMzNyblhWTkkKLS0tIHBLT2x1MDBGdjE1eHFOdHVGa1NO
|
|
||||||
ZGM1K2lDTksraFdPeFdSZ1JyU1VtcjAKgTjjhr7u4YRuQVZQ7kAa1clJ0Rzy10hQ
|
|
||||||
Umcd4/YStyXHZjsJJpFSpOFdP5cZscGo3xBgpXtxAscKTS1Nw4derg==
|
|
||||||
-----END AGE ENCRYPTED FILE-----
|
|
||||||
recipient: age1e5fq3hwxy78psus2nfvmtmua36g0u3suk78ephw6246l974d2utsvn0hla
|
|
||||||
encrypted_regex: ^(data|stringData)$
|
|
||||||
lastmodified: "2026-10-25T01:24:21Z"
|
|
||||||
mac: ENC[AES256_GCM,data:QFVk7KLsMLCAMH/PHVGCRyfU3k2JiO8AE3jJXmhnlUB4C8MYCTyOWQbnTFXozCMOr0kp+hAt3dYn/e23SWhyvJ7BgVLRb5QF1py704Dr46atVoLUvwHpFI7dyGK/LDTxqiM40RXAnDtWUJlTkVCzKdSFiV8CokIoByKWwxFPayM=,iv:t7HWMcpQl/DJ8Rp51Du7b5gURZO+C+FodsZSJuy5jBc=,tag:qEXSS4S0Y5cvn7T6EjakhA==,type:str]
|
|
||||||
version: 3.13.2
|
|
||||||
@@ -8,19 +8,6 @@
|
|||||||
# depend on them existing first.
|
# depend on them existing first.
|
||||||
installCRDs: true
|
installCRDs: true
|
||||||
|
|
||||||
# Point the ACME DNS-01 self-check at the public resolvers directly.
|
|
||||||
#
|
|
||||||
# Without these flags cert-manager resolves through the pod resolver
|
|
||||||
# (CoreDNS at 10.96.0.10). The self-check then never saw the TXT record and
|
|
||||||
# reported "Waiting for DNS-01 challenge propagation" forever. The wildcard
|
|
||||||
# certificate renewal stalled on 2026-09-23 and the cert expired on
|
|
||||||
# 2026-10-23, which broke every Cloudflare Tunnel origin with
|
|
||||||
# "x509: certificate has expired".
|
|
||||||
#
|
|
||||||
extraArgs:
|
|
||||||
- --dns01-recursive-nameservers=1.1.1.1:53,8.8.8.8:53
|
|
||||||
- --dns01-recursive-nameservers-only
|
|
||||||
|
|
||||||
# Tolerate the control-plane taint (talos-cp-1 is the only schedulable node).
|
# Tolerate the control-plane taint (talos-cp-1 is the only schedulable node).
|
||||||
tolerations:
|
tolerations:
|
||||||
- key: node-role.kubernetes.io/control-plane
|
- key: node-role.kubernetes.io/control-plane
|
||||||
|
|||||||
@@ -1,21 +1,13 @@
|
|||||||
# k8s/bootstrap/ingress/riotpiao-com-cert.yaml
|
# k8s/bootstrap/ingress/riotpiao-com-cert.yaml
|
||||||
# Public wildcard cert for *.riotpiao.com, signed by Let's Encrypt (DNS-01 via
|
# Public wildcard cert for *.riotpiao.com, signed by Let's Encrypt (DNS-01 via
|
||||||
# Cloudflare, see ../cert-manager/letsencrypt-issuer.yaml).
|
# Cloudflare, see ../cert-manager/letsencrypt-issuer.yaml). Distinct from
|
||||||
|
# homelab-tls (self-signed homelab-ca, internal *.riotpiao.com) —
|
||||||
|
# reference riotpiao-com-tls explicitly on ingresses that expose riotpiao.com
|
||||||
|
# hosts to the internet; it is not nginx's default-ssl-certificate.
|
||||||
#
|
#
|
||||||
# nginx serves this secret as its default-ssl-certificate
|
# issuerRef starts on letsencrypt-staging. Switch to letsencrypt-prod once the
|
||||||
# (../ingress/nginx-values.yaml), so every Ingress that omits a tls: block uses
|
# staging cert issues cleanly, then delete this Certificate's Secret to force
|
||||||
# it. Do not add per-host tls: blocks for *.riotpiao.com hosts: they create a
|
# a re-issue against prod (staging certs aren't browser-trusted).
|
||||||
# second, single-host certificate and split the wildcard coverage.
|
|
||||||
#
|
|
||||||
# Renewal is automatic and does not drop traffic:
|
|
||||||
# - cert-manager starts a new order 30 days before expiry (renewBefore).
|
|
||||||
# - cert-manager writes the renewed pair into the same secret.
|
|
||||||
# - ingress-nginx watches the secret and hot-reloads. No pod restart.
|
|
||||||
# - The old pair stays valid until the new one is written, so no gap exists.
|
|
||||||
#
|
|
||||||
# The DNS-01 self-check must reach the public resolvers directly. Without the
|
|
||||||
# --dns01-recursive-nameservers flags in ../../cert-manager/cert-manager-values.yaml
|
|
||||||
# the self-check never sees the TXT record and renewal stalls until expiry.
|
|
||||||
apiVersion: cert-manager.io/v1
|
apiVersion: cert-manager.io/v1
|
||||||
kind: Certificate
|
kind: Certificate
|
||||||
metadata:
|
metadata:
|
||||||
|
|||||||
@@ -12,7 +12,6 @@ defaultSettings:
|
|||||||
replicaSoftAntiAffinity: false # REQUIRED for true HA
|
replicaSoftAntiAffinity: false # REQUIRED for true HA
|
||||||
replicaAutoBalance: best-effort
|
replicaAutoBalance: best-effort
|
||||||
storageMinimalAvailablePercentage: 10
|
storageMinimalAvailablePercentage: 10
|
||||||
storageOverProvisioningPercentage: 200 # Actual usage is ~10% of scheduled; 200% unblocks all 3-replica scheduling on cp-1
|
|
||||||
|
|
||||||
# Performance tuning
|
# Performance tuning
|
||||||
defaultDataPath: /var/lib/longhorn
|
defaultDataPath: /var/lib/longhorn
|
||||||
|
|||||||
@@ -46,12 +46,6 @@ gitea:
|
|||||||
SSH_PORT: 2222
|
SSH_PORT: 2222
|
||||||
SSH_LISTEN_PORT: 2222
|
SSH_LISTEN_PORT: 2222
|
||||||
|
|
||||||
# Self-signup was open (GET /user/sign_up returned 200), so anyone reaching
|
|
||||||
# forgejo.riotpiao.com could create an account. Accounts are provisioned by
|
|
||||||
# the admin only; admin create-user via UI/API is unaffected by this flag.
|
|
||||||
service:
|
|
||||||
DISABLE_REGISTRATION: true
|
|
||||||
|
|
||||||
database:
|
database:
|
||||||
DB_TYPE: postgres
|
DB_TYPE: postgres
|
||||||
HOST: forgejo-db-rw.cicd.svc.cluster.local:5432
|
HOST: forgejo-db-rw.cicd.svc.cluster.local:5432
|
||||||
@@ -86,14 +80,6 @@ gitea:
|
|||||||
actions:
|
actions:
|
||||||
ENABLED: true
|
ENABLED: true
|
||||||
|
|
||||||
mailer:
|
|
||||||
ENABLED: true
|
|
||||||
PROTOCOL: smtp+starttls
|
|
||||||
SMTP_ADDR: smtp.gmail.com
|
|
||||||
SMTP_PORT: 587
|
|
||||||
FROM: "Forgejo <[email protected]>"
|
|
||||||
# USER and PASSWD injected via env vars below (GITEA__MAILER__USER, GITEA__MAILER__PASSWD)
|
|
||||||
|
|
||||||
# Persistence (shared storage for repos)
|
# Persistence (shared storage for repos)
|
||||||
persistence:
|
persistence:
|
||||||
enabled: true
|
enabled: true
|
||||||
@@ -107,9 +93,7 @@ ingress:
|
|||||||
enabled: true
|
enabled: true
|
||||||
className: nginx
|
className: nginx
|
||||||
annotations:
|
annotations:
|
||||||
# No cert-manager annotation. forgejo.riotpiao.com is covered by the
|
cert-manager.io/cluster-issuer: letsencrypt-prod
|
||||||
# *.riotpiao.com wildcard, served as nginx's default-ssl-certificate.
|
|
||||||
#
|
|
||||||
# This chart Ingress and the hand-written one in
|
# This chart Ingress and the hand-written one in
|
||||||
# k8s/bootstrap/ingress/ingress.yaml both claim forgejo.riotpiao.com.
|
# k8s/bootstrap/ingress/ingress.yaml both claim forgejo.riotpiao.com.
|
||||||
# ingress-nginx breaks the tie by oldest creationTimestamp, and the chart's
|
# ingress-nginx breaks the tie by oldest creationTimestamp, and the chart's
|
||||||
@@ -127,9 +111,10 @@ ingress:
|
|||||||
paths:
|
paths:
|
||||||
- path: /
|
- path: /
|
||||||
pathType: Prefix
|
pathType: Prefix
|
||||||
# tls: intentionally omitted. The chart would create a second, single-host
|
tls:
|
||||||
# certificate (forgejo-tls) that expired on 2026-10-23 and competed with the
|
- secretName: forgejo-tls
|
||||||
# wildcard. The wildcard covers this host.
|
hosts:
|
||||||
|
- forgejo.riotpiao.com
|
||||||
|
|
||||||
# Resources
|
# Resources
|
||||||
resources:
|
resources:
|
||||||
@@ -163,18 +148,3 @@ deployment:
|
|||||||
secretKeyRef:
|
secretKeyRef:
|
||||||
name: forgejo-db-app
|
name: forgejo-db-app
|
||||||
key: password
|
key: password
|
||||||
- name: GITEA__MAILER__USER
|
|
||||||
valueFrom:
|
|
||||||
secretKeyRef:
|
|
||||||
name: forgejo-smtp
|
|
||||||
key: user
|
|
||||||
- name: GITEA__MAILER__PASSWD
|
|
||||||
valueFrom:
|
|
||||||
secretKeyRef:
|
|
||||||
name: forgejo-smtp
|
|
||||||
key: password
|
|
||||||
# Allow webhooks to reach api-gw through the cluster ingress (resolves to
|
|
||||||
# internal ClusterIP 10.101.x.x which is blocked by default ALLOWED_HOST_LIST).
|
|
||||||
# api.riotpiao.com is our own gateway — safe to allowlist.
|
|
||||||
- name: GITEA__WEBHOOK__ALLOWED_HOST_LIST
|
|
||||||
value: "external,api.riotpiao.com"
|
|
||||||
|
|||||||
@@ -0,0 +1,72 @@
|
|||||||
|
# ArgoCD Image Updater configuration
|
||||||
|
# Watches Forgejo registry and updates ArgoCD Applications with new image tags
|
||||||
|
|
||||||
|
config:
|
||||||
|
# Registry configuration - Forgejo allows anonymous pulls
|
||||||
|
registries:
|
||||||
|
- name: forgejo
|
||||||
|
api_url: https://forgejo.riotpiao.com
|
||||||
|
prefix: forgejo.riotpiao.com
|
||||||
|
default: true
|
||||||
|
insecure: false
|
||||||
|
|
||||||
|
# Log level
|
||||||
|
logLevel: debug
|
||||||
|
|
||||||
|
# ArgoCD API server
|
||||||
|
argocd:
|
||||||
|
grpcWeb: true
|
||||||
|
serverAddress: argocd-server.argocd.svc.cluster.local
|
||||||
|
insecure: true
|
||||||
|
plaintext: true
|
||||||
|
|
||||||
|
# Git write-back configuration (for multi-source Applications)
|
||||||
|
git:
|
||||||
|
# Commit author for image updates
|
||||||
|
user:
|
||||||
|
name: "ArgoCD Image Updater"
|
||||||
|
email: "[email protected]"
|
||||||
|
# Use SSH keys from ArgoCD's known hosts + credentials
|
||||||
|
# Image Updater inherits ArgoCD's git credentials (mounted via ArgoCD secret)
|
||||||
|
|
||||||
|
# Mount ArgoCD's git credentials for write-back
|
||||||
|
extraVolumes:
|
||||||
|
- name: argocd-ssh-known-hosts-cm
|
||||||
|
configMap:
|
||||||
|
name: argocd-ssh-known-hosts-cm
|
||||||
|
defaultMode: 0644
|
||||||
|
- name: argocd-gpg-keys-cm
|
||||||
|
configMap:
|
||||||
|
name: argocd-gpg-keys-cm
|
||||||
|
optional: true
|
||||||
|
defaultMode: 0644
|
||||||
|
- name: argocd-gpg-pubring
|
||||||
|
configMap:
|
||||||
|
name: argocd-gpg-pubring-cm
|
||||||
|
optional: true
|
||||||
|
defaultMode: 0644
|
||||||
|
|
||||||
|
extraVolumeMounts:
|
||||||
|
- name: argocd-ssh-known-hosts-cm
|
||||||
|
mountPath: /etc/ssh/ssh_known_hosts.d/argocd-ssh-known-hosts
|
||||||
|
subPath: ssh_known_hosts
|
||||||
|
- name: argocd-gpg-keys-cm
|
||||||
|
mountPath: /etc/gpg/source
|
||||||
|
- name: argocd-gpg-pubring
|
||||||
|
mountPath: /etc/gpg/pubring
|
||||||
|
|
||||||
|
# Extra environment variables
|
||||||
|
extraEnv:
|
||||||
|
- name: ARGOCD_GRPC_WEB
|
||||||
|
value: "true"
|
||||||
|
- name: GIT_SSH_KNOWN_HOSTS_CONFIG_MAP_ENABLED
|
||||||
|
value: "true"
|
||||||
|
|
||||||
|
# Resources
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
cpu: 50m
|
||||||
|
memory: 64Mi
|
||||||
|
limits:
|
||||||
|
cpu: 200m
|
||||||
|
memory: 128Mi
|
||||||
@@ -1,177 +0,0 @@
|
|||||||
# etcd backend maintenance: compact, defrag, disarm NOSPACE.
|
|
||||||
#
|
|
||||||
# Why this exists
|
|
||||||
# ---------------
|
|
||||||
# etcd's backend file only grows. The apiserver compacts every 5m, but
|
|
||||||
# compaction marks superseded revisions free *inside* the file; only `defrag`
|
|
||||||
# returns that space to the filesystem. Nothing ran defrag, so the file grew
|
|
||||||
# until it crossed the 2 GiB quota:
|
|
||||||
#
|
|
||||||
# 2026-10-07 backend 2,148,843,520 B (2.1 GB) on talos-cp-1 and talos-cp-3
|
|
||||||
# -> etcd raised NOSPACE on those two members
|
|
||||||
# -> etcd rejected ALL writes cluster-wide
|
|
||||||
# -> kubelets could not post node status: 3 nodes NotReady
|
|
||||||
# -> apiserver writes returned 500, the tunnel API path 502
|
|
||||||
#
|
|
||||||
# The live data was tiny: 15,943 keys, 69 MB after compaction. The rest was
|
|
||||||
# dead pages. Recovery was `compact <current-revision>` then `defrag` per
|
|
||||||
# member then `alarm disarm`. Compaction had also stalled while the alarm was
|
|
||||||
# up, so `dbSizeInUse` read 100% of the file - defrag alone would NOT have
|
|
||||||
# worked. Order matters: compact first, then defrag.
|
|
||||||
#
|
|
||||||
# The earlier revision of this file never ran, for two independent reasons:
|
|
||||||
# 1. it existed only on branch fix/etcd-defrag-cron; the ArgoCD application
|
|
||||||
# `cluster-maintenance` tracks `main` (targetRevision: main), so the
|
|
||||||
# cluster never had the CronJob or the Secret.
|
|
||||||
# 2. the image was quay.io/coreos/etcd, which has NO /bin/sh (verified:
|
|
||||||
# `exec: "/bin/sh": no such file or directory`). Any container that runs
|
|
||||||
# a shell script needs an image that ships one.
|
|
||||||
# This revision fixes both: image bitnamilegacy/etcd (ships bash + etcdctl
|
|
||||||
# 3.6.4, matching the 3.6.11 servers) pinned by digest.
|
|
||||||
#
|
|
||||||
# Cadence: every 15 days. Measured growth is ~29 MB/day, so a 15-day cycle
|
|
||||||
# peaks near 500 MB - comfortably under the 2 GiB quota. The schedule is daily
|
|
||||||
# and the script exits unless the UTC epoch day is a multiple of 15. That gives
|
|
||||||
# an exact 15-day interval; `*/15` in the day-of-month field does not (it fires
|
|
||||||
# on the 1st, 16th and 31st, which puts two runs one day apart).
|
|
||||||
#
|
|
||||||
# Safety
|
|
||||||
# ------
|
|
||||||
# 1. Compaction uses the MINIMUM revision across members. Compacting to a
|
|
||||||
# revision a member has not reached wedges that member - measured on
|
|
||||||
# 2026-10-07, when talos-cp-2 froze ~1.2M entries behind the leader and
|
|
||||||
# needed a reboot to rejoin.
|
|
||||||
# 2. A member whose raft applied index lags the leader by more than 100000 is
|
|
||||||
# skipped and reported. Defragging a frozen member reclaims nothing.
|
|
||||||
# 3. Members are defragged one at a time. A defrag pauses the member's apply
|
|
||||||
# loop for the duration of the file copy.
|
|
||||||
#
|
|
||||||
# Credentials: Secret etcd-defrag-creds in kube-system, SOPS-managed in
|
|
||||||
# k8s/argocd/secrets/etcd-defrag-creds.enc.yaml (ksops generator 00-secrets).
|
|
||||||
# Its client certificate is signed by the cluster's etcd CA and expires
|
|
||||||
# 2036-10; rotate it before then by re-running the mint and re-encrypting.
|
|
||||||
#
|
|
||||||
# Companion alerts (monitoring): etcd_mvcc_db_total_size_in_bytes /
|
|
||||||
# etcd_server_quota_backend_bytes > 0.8, and an etcd NOSPACE alarm alert.
|
|
||||||
apiVersion: batch/v1
|
|
||||||
kind: CronJob
|
|
||||||
metadata:
|
|
||||||
name: etcd-defrag
|
|
||||||
namespace: kube-system
|
|
||||||
labels:
|
|
||||||
app.kubernetes.io/name: etcd-defrag
|
|
||||||
app.kubernetes.io/part-of: cluster-maintenance
|
|
||||||
spec:
|
|
||||||
schedule: "0 3 * * *" # daily; the script acts only every 15th day
|
|
||||||
concurrencyPolicy: Forbid
|
|
||||||
startingDeadlineSeconds: 600
|
|
||||||
successfulJobsHistoryLimit: 3
|
|
||||||
failedJobsHistoryLimit: 3
|
|
||||||
jobTemplate:
|
|
||||||
spec:
|
|
||||||
backoffLimit: 2
|
|
||||||
template:
|
|
||||||
spec:
|
|
||||||
restartPolicy: OnFailure
|
|
||||||
tolerations:
|
|
||||||
- key: node-role.kubernetes.io/control-plane
|
|
||||||
operator: Exists
|
|
||||||
effect: NoSchedule
|
|
||||||
containers:
|
|
||||||
- name: defrag
|
|
||||||
image: bitnamilegacy/etcd:3.6.4@sha256:c86c06f1ce6a08b6df21eb7a9655b1818778b64c85b5cbb8413ebf7534789730
|
|
||||||
env:
|
|
||||||
- name: ETCDCTL_API
|
|
||||||
value: "3"
|
|
||||||
- name: ETCDCTL_CACERT
|
|
||||||
value: /etc/etcd/ca.crt
|
|
||||||
- name: ETCDCTL_CERT
|
|
||||||
value: /etc/etcd/client.crt
|
|
||||||
- name: ETCDCTL_KEY
|
|
||||||
value: /etc/etcd/client.key
|
|
||||||
- name: EPS
|
|
||||||
value: "https://192.168.1.166:2379 https://192.168.1.214:2379 https://192.168.1.162:2379"
|
|
||||||
command: ["/bin/bash", "-c"]
|
|
||||||
args:
|
|
||||||
- |
|
|
||||||
set -u
|
|
||||||
|
|
||||||
DAY=$(( $(date -u +%s) / 86400 ))
|
|
||||||
if [ $(( DAY % 15 )) -ne 0 ]; then
|
|
||||||
echo "skip: UTC epoch day $DAY is not a 15-day boundary"
|
|
||||||
exit 0
|
|
||||||
fi
|
|
||||||
|
|
||||||
echo "== before =="
|
|
||||||
for ep in $EPS; do
|
|
||||||
etcdctl --endpoints="$ep" endpoint status -w table || true
|
|
||||||
done
|
|
||||||
|
|
||||||
MINREV=""
|
|
||||||
MAXAPPLIED=0
|
|
||||||
for ep in $EPS; do
|
|
||||||
json=$(etcdctl --endpoints="$ep" endpoint status -w json 2>/dev/null) || continue
|
|
||||||
rev=$(printf '%s' "$json" | sed -n 's/.*"revision":\([0-9]*\).*/\1/p' | head -1)
|
|
||||||
app=$(printf '%s' "$json" | sed -n 's/.*"raftAppliedIndex":\([0-9]*\).*/\1/p' | head -1)
|
|
||||||
echo "member $ep revision=${rev:-?} raftAppliedIndex=${app:-?}"
|
|
||||||
if [ -n "$rev" ] && { [ -z "$MINREV" ] || [ "$rev" -lt "$MINREV" ]; }; then
|
|
||||||
MINREV="$rev"
|
|
||||||
fi
|
|
||||||
if [ -n "$app" ] && [ "$app" -gt "$MAXAPPLIED" ]; then
|
|
||||||
MAXAPPLIED="$app"
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
|
|
||||||
if [ -z "$MINREV" ]; then
|
|
||||||
echo "FATAL: no member returned a revision; nothing attempted"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
echo "== compact to revision $MINREV =="
|
|
||||||
etcdctl --endpoints="$(echo "$EPS" | awk '{print $1}')" compact "$MINREV" || echo "COMPACT-FAILED (continuing: defrag still reclaims free pages)"
|
|
||||||
|
|
||||||
# Physical deletion of superseded keys runs in the background
|
|
||||||
# after the compaction commit; give it a moment to drain.
|
|
||||||
sleep 20
|
|
||||||
|
|
||||||
echo "== defrag each member (sequential, one at a time) =="
|
|
||||||
rc=0
|
|
||||||
for ep in $EPS; do
|
|
||||||
json=$(etcdctl --endpoints="$ep" endpoint status -w json 2>/dev/null) || { echo "SKIP $ep (unreachable)"; rc=1; continue; }
|
|
||||||
app=$(printf '%s' "$json" | sed -n 's/.*"raftAppliedIndex":\([0-9]*\).*/\1/p' | head -1)
|
|
||||||
if [ -n "$app" ] && [ "$app" -lt $(( MAXAPPLIED - 100000 )) ]; then
|
|
||||||
echo "SKIP $ep (applied index $app lags leader $MAXAPPLIED; defrag would reclaim nothing)"
|
|
||||||
rc=1
|
|
||||||
continue
|
|
||||||
fi
|
|
||||||
echo "-- $ep"
|
|
||||||
if ! etcdctl --endpoints="$ep" defrag; then
|
|
||||||
echo "DEFRAG-FAILED $ep"
|
|
||||||
rc=1
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
|
|
||||||
echo "== disarm NOSPACE =="
|
|
||||||
for ep in $EPS; do
|
|
||||||
etcdctl --endpoints="$ep" alarm list 2>/dev/null || true
|
|
||||||
etcdctl --endpoints="$ep" alarm disarm 2>/dev/null || true
|
|
||||||
done
|
|
||||||
|
|
||||||
echo "== after =="
|
|
||||||
for ep in $EPS; do
|
|
||||||
etcdctl --endpoints="$ep" endpoint status -w table || true
|
|
||||||
done
|
|
||||||
etcdctl --endpoints="$(echo "$EPS" | awk '{print $1}')" alarm list || true
|
|
||||||
exit $rc
|
|
||||||
resources:
|
|
||||||
requests: { cpu: 10m, memory: 32Mi }
|
|
||||||
limits: { cpu: 200m, memory: 128Mi }
|
|
||||||
volumeMounts:
|
|
||||||
- name: creds
|
|
||||||
mountPath: /etc/etcd
|
|
||||||
readOnly: true
|
|
||||||
volumes:
|
|
||||||
- name: creds
|
|
||||||
secret:
|
|
||||||
secretName: etcd-defrag-creds
|
|
||||||
defaultMode: 0444
|
|
||||||
@@ -1,12 +1,12 @@
|
|||||||
# Cluster-wide cleanup of stale failed/completed Jobs and Pods.
|
# Cluster-wide cleanup of stale failed/completed Jobs and Pods.
|
||||||
# Runs every 2 minutes. Deletes:
|
# Runs daily at 04:00 UTC. Deletes:
|
||||||
# - Failed Jobs older than 2m (any namespace)
|
# - Failed Jobs older than 24h (any namespace)
|
||||||
# - Completed standalone Jobs older than 2m with no owning CronJob
|
# - Completed Jobs older than 72h with no owning CronJob
|
||||||
# - Orphan pods in Error/Failed/Evicted/Completed state older than 2m
|
# - Orphan pods in Error/Failed/Evicted state older than 1h
|
||||||
#
|
#
|
||||||
# CronJob-owned Jobs are managed by failedJobsHistoryLimit/successfulJobsHistoryLimit,
|
# CronJob-owned Jobs are managed by failedJobsHistoryLimit/successfulJobsHistoryLimit,
|
||||||
# but standalone Jobs (helm hooks, one-off runs, CI TaskRuns) have no TTL
|
# but standalone Jobs (helm hooks, one-off runs, longhorn maintenance) have no TTL
|
||||||
# and linger forever. Aggressive schedule keeps the cluster clean.
|
# and linger forever.
|
||||||
|
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: ServiceAccount
|
kind: ServiceAccount
|
||||||
@@ -47,7 +47,7 @@ metadata:
|
|||||||
labels:
|
labels:
|
||||||
app: stale-job-cleanup
|
app: stale-job-cleanup
|
||||||
spec:
|
spec:
|
||||||
schedule: "*/2 * * * *"
|
schedule: "0 4 * * *"
|
||||||
concurrencyPolicy: Forbid
|
concurrencyPolicy: Forbid
|
||||||
successfulJobsHistoryLimit: 3
|
successfulJobsHistoryLimit: 3
|
||||||
failedJobsHistoryLimit: 3
|
failedJobsHistoryLimit: 3
|
||||||
@@ -74,9 +74,7 @@ spec:
|
|||||||
set -e
|
set -e
|
||||||
NOW=$(date +%s)
|
NOW=$(date +%s)
|
||||||
|
|
||||||
TTL=120 # 2 minutes in seconds
|
echo "=== Cleaning failed Jobs older than 24h ==="
|
||||||
|
|
||||||
echo "=== Cleaning failed Jobs older than 2m ==="
|
|
||||||
kubectl get jobs --all-namespaces -o json | \
|
kubectl get jobs --all-namespaces -o json | \
|
||||||
jq -r '.items[] |
|
jq -r '.items[] |
|
||||||
select(.status.conditions[]?.type == "Failed") |
|
select(.status.conditions[]?.type == "Failed") |
|
||||||
@@ -84,15 +82,15 @@ spec:
|
|||||||
"\(.metadata.namespace) \(.metadata.name) \(.status.startTime // .status.completionTime // .metadata.creationTimestamp)"' | \
|
"\(.metadata.namespace) \(.metadata.name) \(.status.startTime // .status.completionTime // .metadata.creationTimestamp)"' | \
|
||||||
while read -r NS NAME TS; do
|
while read -r NS NAME TS; do
|
||||||
JOB_EPOCH=$(date -d "$TS" +%s 2>/dev/null || echo 0)
|
JOB_EPOCH=$(date -d "$TS" +%s 2>/dev/null || echo 0)
|
||||||
AGE=$(( NOW - JOB_EPOCH ))
|
AGE_H=$(( (NOW - JOB_EPOCH) / 3600 ))
|
||||||
if [ "$AGE" -ge "$TTL" ]; then
|
if [ "$AGE_H" -ge 24 ]; then
|
||||||
echo "[delete] $NS/$NAME (failed ${AGE}s ago)"
|
echo "[delete] $NS/$NAME (failed ${AGE_H}h ago)"
|
||||||
kubectl delete job "$NAME" -n "$NS" --cascade=foreground 2>/dev/null || true
|
kubectl delete job "$NAME" -n "$NS" --cascade=foreground 2>/dev/null || true
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
echo ""
|
echo ""
|
||||||
echo "=== Cleaning completed standalone Jobs older than 2m ==="
|
echo "=== Cleaning completed standalone Jobs older than 72h ==="
|
||||||
kubectl get jobs --all-namespaces -o json | \
|
kubectl get jobs --all-namespaces -o json | \
|
||||||
jq -r '.items[] |
|
jq -r '.items[] |
|
||||||
select(.status.succeeded >= 1) |
|
select(.status.succeeded >= 1) |
|
||||||
@@ -100,20 +98,20 @@ spec:
|
|||||||
"\(.metadata.namespace) \(.metadata.name) \(.status.completionTime // .metadata.creationTimestamp)"' | \
|
"\(.metadata.namespace) \(.metadata.name) \(.status.completionTime // .metadata.creationTimestamp)"' | \
|
||||||
while read -r NS NAME TS; do
|
while read -r NS NAME TS; do
|
||||||
JOB_EPOCH=$(date -d "$TS" +%s 2>/dev/null || echo 0)
|
JOB_EPOCH=$(date -d "$TS" +%s 2>/dev/null || echo 0)
|
||||||
AGE=$(( NOW - JOB_EPOCH ))
|
AGE_H=$(( (NOW - JOB_EPOCH) / 3600 ))
|
||||||
if [ "$AGE" -ge "$TTL" ]; then
|
if [ "$AGE_H" -ge 72 ]; then
|
||||||
echo "[delete] $NS/$NAME (completed ${AGE}s ago, no owner)"
|
echo "[delete] $NS/$NAME (completed ${AGE_H}h ago, no owner)"
|
||||||
kubectl delete job "$NAME" -n "$NS" --cascade=foreground 2>/dev/null || true
|
kubectl delete job "$NAME" -n "$NS" --cascade=foreground 2>/dev/null || true
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
echo ""
|
echo ""
|
||||||
echo "=== Cleaning orphan Error/Failed/Evicted/Completed pods older than 2m ==="
|
echo "=== Cleaning orphan Error/Failed/Evicted pods older than 1h ==="
|
||||||
|
# Evicted pods show as Failed with reason Evicted
|
||||||
kubectl get pods --all-namespaces -o json | \
|
kubectl get pods --all-namespaces -o json | \
|
||||||
jq -r '.items[] |
|
jq -r '.items[] |
|
||||||
select(
|
select(
|
||||||
.status.phase == "Failed" or
|
.status.phase == "Failed" or
|
||||||
.status.phase == "Succeeded" or
|
|
||||||
(.status.reason // "") == "Evicted" or
|
(.status.reason // "") == "Evicted" or
|
||||||
(.status.containerStatuses // [] | any(.state.terminated.reason == "Error"))
|
(.status.containerStatuses // [] | any(.state.terminated.reason == "Error"))
|
||||||
) |
|
) |
|
||||||
@@ -121,9 +119,9 @@ spec:
|
|||||||
"\(.metadata.namespace) \(.metadata.name) \(.metadata.creationTimestamp)"' | \
|
"\(.metadata.namespace) \(.metadata.name) \(.metadata.creationTimestamp)"' | \
|
||||||
while read -r NS NAME TS; do
|
while read -r NS NAME TS; do
|
||||||
POD_EPOCH=$(date -d "$TS" +%s 2>/dev/null || echo 0)
|
POD_EPOCH=$(date -d "$TS" +%s 2>/dev/null || echo 0)
|
||||||
AGE=$(( NOW - POD_EPOCH ))
|
AGE_H=$(( (NOW - POD_EPOCH) / 3600 ))
|
||||||
if [ "$AGE" -ge "$TTL" ]; then
|
if [ "$AGE_H" -ge 1 ]; then
|
||||||
echo "[delete] $NS/$NAME (stale ${AGE}s ago)"
|
echo "[delete] $NS/$NAME (error/evicted ${AGE_H}h ago)"
|
||||||
kubectl delete pod "$NAME" -n "$NS" --force 2>/dev/null || true
|
kubectl delete pod "$NAME" -n "$NS" --force 2>/dev/null || true
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|||||||
@@ -7,6 +7,7 @@ kind: Kustomization
|
|||||||
resources:
|
resources:
|
||||||
- namespaces.yaml
|
- namespaces.yaml
|
||||||
- authentik-db.yaml
|
- authentik-db.yaml
|
||||||
- zitadel-db.yaml
|
|
||||||
- temporal-db.yaml
|
- temporal-db.yaml
|
||||||
|
- memory-db.yaml
|
||||||
- paperless-db.yaml
|
- paperless-db.yaml
|
||||||
|
- obsidian-vault-pvc.yaml
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ metadata:
|
|||||||
annotations:
|
annotations:
|
||||||
argocd.argoproj.io/sync-options: SkipDryRunOnMissingResource=true
|
argocd.argoproj.io/sync-options: SkipDryRunOnMissingResource=true
|
||||||
spec:
|
spec:
|
||||||
instances: 3
|
instances: 2
|
||||||
imageName: ghcr.io/cloudnative-pg/postgresql:16.2
|
imageName: ghcr.io/cloudnative-pg/postgresql:16.2
|
||||||
bootstrap:
|
bootstrap:
|
||||||
initdb:
|
initdb:
|
||||||
|
|||||||
@@ -0,0 +1,18 @@
|
|||||||
|
---
|
||||||
|
# Obsidian vault PVC — shared storage for REST API + UI pods
|
||||||
|
# ReadWriteMany so both obsidian-server and obsidian-ui can mount simultaneously
|
||||||
|
apiVersion: v1
|
||||||
|
kind: PersistentVolumeClaim
|
||||||
|
metadata:
|
||||||
|
name: obsidian-vault
|
||||||
|
namespace: poimen
|
||||||
|
labels:
|
||||||
|
app.kubernetes.io/name: obsidian-server
|
||||||
|
app.kubernetes.io/part-of: poimen-memory
|
||||||
|
spec:
|
||||||
|
accessModes:
|
||||||
|
- ReadWriteMany
|
||||||
|
storageClassName: longhorn
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
storage: 10Gi
|
||||||
@@ -11,7 +11,7 @@ metadata:
|
|||||||
annotations:
|
annotations:
|
||||||
argocd.argoproj.io/sync-options: SkipDryRunOnMissingResource=true
|
argocd.argoproj.io/sync-options: SkipDryRunOnMissingResource=true
|
||||||
spec:
|
spec:
|
||||||
instances: 3
|
instances: 2
|
||||||
imageName: ghcr.io/cloudnative-pg/postgresql:16.2
|
imageName: ghcr.io/cloudnative-pg/postgresql:16.2
|
||||||
bootstrap:
|
bootstrap:
|
||||||
initdb:
|
initdb:
|
||||||
|
|||||||
@@ -1,42 +0,0 @@
|
|||||||
# Dedicated CNPG Postgres for ZITADEL (GitOps, wave 2 — before the zitadel
|
|
||||||
# chart at wave 3). Same shape as authentik-db.yaml: CNPG generates the secret
|
|
||||||
# `zitadel-db-app` and the service `zitadel-db-rw` in ns iam, and
|
|
||||||
# k8s/infra/iam/zitadel-values.yaml reads the DSN from that secret locally (no
|
|
||||||
# cross-namespace secret copy).
|
|
||||||
#
|
|
||||||
# ZITADEL requires PostgreSQL 14+; the repo convention image is 16.2.
|
|
||||||
apiVersion: postgresql.cnpg.io/v1
|
|
||||||
kind: Cluster
|
|
||||||
metadata:
|
|
||||||
name: zitadel-db
|
|
||||||
namespace: iam
|
|
||||||
annotations:
|
|
||||||
argocd.argoproj.io/sync-options: SkipDryRunOnMissingResource=true
|
|
||||||
spec:
|
|
||||||
instances: 3
|
|
||||||
imageName: ghcr.io/cloudnative-pg/postgresql:16.2
|
|
||||||
bootstrap:
|
|
||||||
initdb:
|
|
||||||
database: zitadel
|
|
||||||
owner: app
|
|
||||||
encoding: UTF8
|
|
||||||
localeCollate: C
|
|
||||||
localeCType: C
|
|
||||||
enableSuperuserAccess: false
|
|
||||||
resources:
|
|
||||||
requests: { memory: "512Mi", cpu: "250m" }
|
|
||||||
limits: { memory: "2Gi", cpu: "1" }
|
|
||||||
storage:
|
|
||||||
size: 10Gi
|
|
||||||
storageClass: longhorn-cnpg
|
|
||||||
monitoring:
|
|
||||||
enablePodMonitor: true
|
|
||||||
affinity:
|
|
||||||
# preferred + tolerations: HA across nodes without deadlocking a partly-
|
|
||||||
# schedulable 3-CP (same as authentik-db and forgejo-db).
|
|
||||||
podAntiAffinityType: preferred
|
|
||||||
topologyKey: kubernetes.io/hostname
|
|
||||||
tolerations:
|
|
||||||
- key: node-role.kubernetes.io/control-plane
|
|
||||||
operator: Exists
|
|
||||||
effect: NoSchedule
|
|
||||||
@@ -1,25 +0,0 @@
|
|||||||
# CiliumNetworkPolicy for kube-apiserver access.
|
|
||||||
#
|
|
||||||
# Standard K8s NetworkPolicy ipBlock rules don't work for the API server
|
|
||||||
# under Cilium — the except clause on 192.168.1.0/24 blocks the post-DNAT
|
|
||||||
# destination even when a separate rule re-allows a /32 or subnet.
|
|
||||||
#
|
|
||||||
# Cilium's native `kube-apiserver` entity resolves this correctly: it
|
|
||||||
# tracks the API server endpoints regardless of ClusterIP vs node-IP
|
|
||||||
# routing, so the policy stays valid across node changes and NAT paths.
|
|
||||||
apiVersion: cilium.io/v2
|
|
||||||
kind: CiliumNetworkPolicy
|
|
||||||
metadata:
|
|
||||||
name: {{ .Release.Name }}-apiserver
|
|
||||||
namespace: {{ .Release.Namespace }}
|
|
||||||
spec:
|
|
||||||
endpointSelector:
|
|
||||||
matchLabels:
|
|
||||||
app: {{ .Release.Name }}
|
|
||||||
egress:
|
|
||||||
- toEntities:
|
|
||||||
- kube-apiserver
|
|
||||||
toPorts:
|
|
||||||
- ports:
|
|
||||||
- port: "6443"
|
|
||||||
protocol: TCP
|
|
||||||
@@ -153,11 +153,9 @@ server:
|
|||||||
# checks aren't treated as failures. (Only these fields are overridden; the
|
# checks aren't treated as failures. (Only these fields are overridden; the
|
||||||
# chart deep-merges the rest of each probe, incl. the httpGet path.)
|
# chart deep-merges the rest of each probe, incl. the httpGet path.)
|
||||||
livenessProbe:
|
livenessProbe:
|
||||||
initialDelaySeconds: 300 # skip probe until 5min passed (migrations finish)
|
|
||||||
timeoutSeconds: 15
|
timeoutSeconds: 15
|
||||||
failureThreshold: 6
|
failureThreshold: 6
|
||||||
readinessProbe:
|
readinessProbe:
|
||||||
initialDelaySeconds: 300 # skip probe until migrations complete
|
|
||||||
timeoutSeconds: 15
|
timeoutSeconds: 15
|
||||||
failureThreshold: 6
|
failureThreshold: 6
|
||||||
startupProbe:
|
startupProbe:
|
||||||
@@ -217,13 +215,6 @@ worker:
|
|||||||
podAnnotations:
|
podAnnotations:
|
||||||
configmap.reloader.stakater.com/reload: "homelab-ca"
|
configmap.reloader.stakater.com/reload: "homelab-ca"
|
||||||
homelab.io/restart-at: "2026-06-21T13-40"
|
homelab.io/restart-at: "2026-06-21T13-40"
|
||||||
livenessProbe:
|
|
||||||
initialDelaySeconds: 300 # skip probe until 5min passed (migrations finish)
|
|
||||||
readinessProbe:
|
|
||||||
initialDelaySeconds: 300 # skip probe until migrations complete
|
|
||||||
startupProbe:
|
|
||||||
initialDelaySeconds: 30 # let server finish DB work first
|
|
||||||
failureThreshold: 120
|
|
||||||
metrics:
|
metrics:
|
||||||
enabled: true
|
enabled: true
|
||||||
serviceMonitor:
|
serviceMonitor:
|
||||||
|
|||||||
@@ -1,134 +0,0 @@
|
|||||||
# k8s/infra/iam/zitadel-values.yaml
|
|
||||||
# ZITADEL — Authentik replacement. Coexistence is deliberate: Authentik keeps
|
|
||||||
# running, read-only, in the same `iam` namespace until the last consumer moves.
|
|
||||||
# Migration plan: ~/workplace/homelab-doc/ZITADEL_MIGRATION.html (outside git).
|
|
||||||
#
|
|
||||||
# Chart: zitadel/zitadel 10.4.0, app v4.19.2. The plan cites v4.19.4; the chart
|
|
||||||
# has not published it yet. Pin the chart, never `*`, until the v4.19.4 chart
|
|
||||||
# exists — a silent app bump invalidates the verified masterkey/passwap facts.
|
|
||||||
#
|
|
||||||
# URL: https://zitadel.riotpiao.com. TLS terminates at ingress-nginx, which
|
|
||||||
# serves the wildcard riotpiao-com-tls as its default-ssl-certificate, so
|
|
||||||
# ExternalSecure=true and TLS.Enabled=false (no per-rule tls: block needed).
|
|
||||||
#
|
|
||||||
# Database: CNPG cluster zitadel-db (wave 2). The DSN comes from CNPG's
|
|
||||||
# generated `zitadel-db-app` secret. When ZITADEL_DATABASE_POSTGRES_DSN is set,
|
|
||||||
# ZITADEL ignores the discrete Database.Postgres.* fields, so neither a
|
|
||||||
# password nor a host is written into this file.
|
|
||||||
#
|
|
||||||
# Masterkey: Secret `zitadel-masterkey` (k8s/argocd/secrets/
|
|
||||||
# zitadel-masterkey.enc.yaml), key `masterkey`, exactly 32 bytes. It wraps the
|
|
||||||
# rows in system.encryption_keys, which encrypt every client secret and private
|
|
||||||
# key. Losing it makes those values unreadable: keep the offline sealed copy.
|
|
||||||
#
|
|
||||||
# Ingress uses the chart's own objects (controller: nginx adds the gRPC backend
|
|
||||||
# annotation ZITADEL needs for its HTTP/2 API). Do not hand-write a second
|
|
||||||
# Ingress for this host.
|
|
||||||
|
|
||||||
zitadel:
|
|
||||||
configmapConfig:
|
|
||||||
ExternalSecure: true
|
|
||||||
ExternalDomain: zitadel.riotpiao.com
|
|
||||||
TLS:
|
|
||||||
Enabled: false
|
|
||||||
|
|
||||||
# Rendered into a Secret by the chart; read by pods and init jobs alike.
|
|
||||||
masterkeySecretName: zitadel-masterkey
|
|
||||||
|
|
||||||
resources:
|
|
||||||
requests: { memory: "512Mi", cpu: "250m" }
|
|
||||||
limits: { memory: "2Gi", cpu: "1" }
|
|
||||||
|
|
||||||
# FirstInstance defaults stay for the FIRST sync: the chart creates org
|
|
||||||
# `zitadel` plus the `iam-admin` machine user and its machine-key Secret.
|
|
||||||
# Terraform consumes that key to declare projects, roles, OIDC apps and the
|
|
||||||
# groups action.
|
|
||||||
#
|
|
||||||
# SECOND-SYNC HAZARD — read before enabling automated sync.
|
|
||||||
# The chart marks eight objects as `pre-install,pre-upgrade` hooks (two
|
|
||||||
# ServiceAccounts, two ConfigMaps, Role, RoleBinding, zitadel-init,
|
|
||||||
# zitadel-setup), and one cleanup Job as `post-delete`. ArgoCD maps the first
|
|
||||||
# eight to PreSync with `before-hook-creation`: it deletes and re-creates them
|
|
||||||
# on EVERY sync, not only on a chart change.
|
|
||||||
# - zitadel-init (`init zitadel`) — schema step
|
|
||||||
# - zitadel-setup (`setup`) — first instance + iam-admin machine key
|
|
||||||
# On an initialized instance the setup step can fail, which aborts the sync
|
|
||||||
# before the Deployment is applied. If it succeeds instead, its
|
|
||||||
# machinekeyWriter container re-applies the iam-admin key Secret that
|
|
||||||
# Terraform reads, which silently rotates a credential in use.
|
|
||||||
# After the first sync reports healthy:
|
|
||||||
# 1. set configmapConfig.FirstInstance.Skip: true here — permanently: the
|
|
||||||
# setup steps are schema-only once the instance exists, and Skip alone
|
|
||||||
# stops the machinekeyWriter rotation
|
|
||||||
# 2. set initJob.enabled: false below
|
|
||||||
# 3. commit, sync once, then enable automated+selfHeal on the Application
|
|
||||||
# For a later schema upgrade, re-enable initJob.enabled only — never set
|
|
||||||
# FirstInstance.Skip back to false.
|
|
||||||
# ArgoCD never prunes a hook Job, so a Job that failed before step 2 stays and
|
|
||||||
# keeps ZitadelSetupJobFailed firing until a human deletes it.
|
|
||||||
|
|
||||||
# DSN mode (chart renders this through the zitadel.dbEnv helper). CNPG's `uri`
|
|
||||||
# key is a postgresql:// URL, which ZITADEL accepts as a DSN.
|
|
||||||
env:
|
|
||||||
- name: ZITADEL_DATABASE_POSTGRES_DSN
|
|
||||||
valueFrom:
|
|
||||||
secretKeyRef:
|
|
||||||
name: zitadel-db-app
|
|
||||||
key: uri
|
|
||||||
|
|
||||||
# Bundled Bitnami Postgres is disabled: the CNPG cluster above is the system of
|
|
||||||
# record. Enabling it would create a second, unmanaged database.
|
|
||||||
postgresql:
|
|
||||||
enabled: false
|
|
||||||
|
|
||||||
# CNPG already created the database, the `app` user and its grants, so the init
|
|
||||||
# job runs only the ZITADEL-internal step. Running the full default command
|
|
||||||
# would try to create a database and a superuser it does not own.
|
|
||||||
initJob:
|
|
||||||
command: "zitadel"
|
|
||||||
activeDeadlineSeconds: 600
|
|
||||||
|
|
||||||
# Two API replicas: the read path survives one node drain, and both share the
|
|
||||||
# same masterkey and database. The login UI stays at one replica — a session
|
|
||||||
# cookie is not shared, so a second pod buys nothing.
|
|
||||||
replicaCount: 2
|
|
||||||
revisionHistoryLimit: 3
|
|
||||||
|
|
||||||
ingress:
|
|
||||||
enabled: true
|
|
||||||
className: nginx
|
|
||||||
controller: nginx
|
|
||||||
|
|
||||||
login:
|
|
||||||
enabled: true
|
|
||||||
replicaCount: 1
|
|
||||||
ingress:
|
|
||||||
enabled: true
|
|
||||||
className: nginx
|
|
||||||
|
|
||||||
# Chart-owned ServiceMonitor. The cluster's Prometheus runs with
|
|
||||||
# serviceMonitorSelectorNilUsesHelmValues=false, so the release label is not
|
|
||||||
# required for discovery. Endpoint is /debug/metrics on port http2-server.
|
|
||||||
metrics:
|
|
||||||
enabled: true
|
|
||||||
serviceMonitor:
|
|
||||||
enabled: true
|
|
||||||
scrapeInterval: 30s
|
|
||||||
scrapeTimeout: 10s
|
|
||||||
|
|
||||||
# The 3-CP / 2-worker cluster mixes control-plane taints with worker capacity.
|
|
||||||
# Without the toleration a rolling upgrade can leave both replicas Pending.
|
|
||||||
tolerations:
|
|
||||||
- key: node-role.kubernetes.io/control-plane
|
|
||||||
operator: Exists
|
|
||||||
effect: NoSchedule
|
|
||||||
|
|
||||||
affinity:
|
|
||||||
podAntiAffinity:
|
|
||||||
preferredDuringSchedulingIgnoredDuringExecution:
|
|
||||||
- weight: 100
|
|
||||||
podAffinityTerm:
|
|
||||||
topologyKey: kubernetes.io/hostname
|
|
||||||
labelSelector:
|
|
||||||
matchLabels:
|
|
||||||
app.kubernetes.io/name: zitadel
|
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
|
||||||
kind: Kustomization
|
|
||||||
# No commonLabels on purpose: this is a vendored third-party manifest and
|
|
||||||
# kustomize would also rewrite the provisioner Deployment's selector, which
|
|
||||||
# is immutable on re-apply.
|
|
||||||
resources:
|
|
||||||
- local-path-storage.yaml
|
|
||||||
@@ -1,200 +0,0 @@
|
|||||||
# Vendored from https://github.com/rancher/local-path-provisioner
|
|
||||||
# deploy/local-path-storage.yaml @ v0.0.37 (release 2026-08-05)
|
|
||||||
#
|
|
||||||
# Local modifications (the only three; re-apply them on any re-vendor):
|
|
||||||
# 1. the namespace carries pod-security.kubernetes.io/enforce=privileged, because the
|
|
||||||
# provisioner's helper Pods mount a hostPath and this cluster defaults to the
|
|
||||||
# baseline policy, which forbids that;
|
|
||||||
# 2. config.json nodePathMap is /var/lib/local-path-provisioner — Talos mounts the root
|
|
||||||
# filesystem read-only, so upstream's /opt path cannot be created;
|
|
||||||
# 3. the helper Pod's busybox image is pinned to a tag instead of a floating name.
|
|
||||||
apiVersion: v1
|
|
||||||
kind: Namespace
|
|
||||||
metadata:
|
|
||||||
name: local-path-storage
|
|
||||||
labels:
|
|
||||||
pod-security.kubernetes.io/enforce: privileged
|
|
||||||
pod-security.kubernetes.io/audit: privileged
|
|
||||||
pod-security.kubernetes.io/warn: privileged
|
|
||||||
|
|
||||||
---
|
|
||||||
apiVersion: v1
|
|
||||||
kind: ServiceAccount
|
|
||||||
metadata:
|
|
||||||
name: local-path-provisioner-service-account
|
|
||||||
namespace: local-path-storage
|
|
||||||
|
|
||||||
---
|
|
||||||
apiVersion: rbac.authorization.k8s.io/v1
|
|
||||||
kind: Role
|
|
||||||
metadata:
|
|
||||||
name: local-path-provisioner-role
|
|
||||||
namespace: local-path-storage
|
|
||||||
rules:
|
|
||||||
- apiGroups: [""]
|
|
||||||
resources: ["pods"]
|
|
||||||
verbs: ["get", "list", "watch", "create", "patch", "update", "delete"]
|
|
||||||
|
|
||||||
---
|
|
||||||
apiVersion: rbac.authorization.k8s.io/v1
|
|
||||||
kind: ClusterRole
|
|
||||||
metadata:
|
|
||||||
name: local-path-provisioner-role
|
|
||||||
rules:
|
|
||||||
- apiGroups: [""]
|
|
||||||
resources: ["nodes", "persistentvolumeclaims", "configmaps", "pods", "pods/log"]
|
|
||||||
verbs: ["get", "list", "watch"]
|
|
||||||
- apiGroups: [""]
|
|
||||||
resources: ["persistentvolumes"]
|
|
||||||
verbs: ["get", "list", "watch", "create", "patch", "update", "delete"]
|
|
||||||
- apiGroups: [""]
|
|
||||||
resources: ["events"]
|
|
||||||
verbs: ["create", "patch"]
|
|
||||||
- apiGroups: ["storage.k8s.io"]
|
|
||||||
resources: ["storageclasses"]
|
|
||||||
verbs: ["get", "list", "watch"]
|
|
||||||
|
|
||||||
---
|
|
||||||
apiVersion: rbac.authorization.k8s.io/v1
|
|
||||||
kind: RoleBinding
|
|
||||||
metadata:
|
|
||||||
name: local-path-provisioner-bind
|
|
||||||
namespace: local-path-storage
|
|
||||||
roleRef:
|
|
||||||
apiGroup: rbac.authorization.k8s.io
|
|
||||||
kind: Role
|
|
||||||
name: local-path-provisioner-role
|
|
||||||
subjects:
|
|
||||||
- kind: ServiceAccount
|
|
||||||
name: local-path-provisioner-service-account
|
|
||||||
namespace: local-path-storage
|
|
||||||
|
|
||||||
---
|
|
||||||
apiVersion: rbac.authorization.k8s.io/v1
|
|
||||||
kind: ClusterRoleBinding
|
|
||||||
metadata:
|
|
||||||
name: local-path-provisioner-bind
|
|
||||||
roleRef:
|
|
||||||
apiGroup: rbac.authorization.k8s.io
|
|
||||||
kind: ClusterRole
|
|
||||||
name: local-path-provisioner-role
|
|
||||||
subjects:
|
|
||||||
- kind: ServiceAccount
|
|
||||||
name: local-path-provisioner-service-account
|
|
||||||
namespace: local-path-storage
|
|
||||||
|
|
||||||
---
|
|
||||||
apiVersion: apps/v1
|
|
||||||
kind: Deployment
|
|
||||||
metadata:
|
|
||||||
name: local-path-provisioner
|
|
||||||
namespace: local-path-storage
|
|
||||||
spec:
|
|
||||||
replicas: 1
|
|
||||||
selector:
|
|
||||||
matchLabels:
|
|
||||||
app: local-path-provisioner
|
|
||||||
template:
|
|
||||||
metadata:
|
|
||||||
labels:
|
|
||||||
app: local-path-provisioner
|
|
||||||
spec:
|
|
||||||
serviceAccountName: local-path-provisioner-service-account
|
|
||||||
containers:
|
|
||||||
- name: local-path-provisioner
|
|
||||||
image: docker.io/rancher/local-path-provisioner:v0.0.37
|
|
||||||
imagePullPolicy: IfNotPresent
|
|
||||||
command:
|
|
||||||
- local-path-provisioner
|
|
||||||
- --debug
|
|
||||||
- start
|
|
||||||
- --config
|
|
||||||
- /etc/config/config.json
|
|
||||||
ports:
|
|
||||||
- name: health
|
|
||||||
containerPort: 8080
|
|
||||||
protocol: TCP
|
|
||||||
startupProbe:
|
|
||||||
httpGet:
|
|
||||||
path: /health
|
|
||||||
port: health
|
|
||||||
initialDelaySeconds: 5
|
|
||||||
periodSeconds: 5
|
|
||||||
failureThreshold: 12
|
|
||||||
livenessProbe:
|
|
||||||
httpGet:
|
|
||||||
path: /health
|
|
||||||
port: health
|
|
||||||
initialDelaySeconds: 10
|
|
||||||
periodSeconds: 10
|
|
||||||
readinessProbe:
|
|
||||||
httpGet:
|
|
||||||
path: /ready
|
|
||||||
port: health
|
|
||||||
initialDelaySeconds: 5
|
|
||||||
periodSeconds: 5
|
|
||||||
volumeMounts:
|
|
||||||
- name: config-volume
|
|
||||||
mountPath: /etc/config/
|
|
||||||
env:
|
|
||||||
- name: POD_NAMESPACE
|
|
||||||
valueFrom:
|
|
||||||
fieldRef:
|
|
||||||
fieldPath: metadata.namespace
|
|
||||||
- name: CONFIG_MOUNT_PATH
|
|
||||||
value: /etc/config/
|
|
||||||
- name: HEALTH_PORT
|
|
||||||
value: "8080"
|
|
||||||
volumes:
|
|
||||||
- name: config-volume
|
|
||||||
configMap:
|
|
||||||
name: local-path-config
|
|
||||||
|
|
||||||
---
|
|
||||||
apiVersion: storage.k8s.io/v1
|
|
||||||
kind: StorageClass
|
|
||||||
metadata:
|
|
||||||
name: local-path
|
|
||||||
provisioner: rancher.io/local-path
|
|
||||||
volumeBindingMode: WaitForFirstConsumer
|
|
||||||
reclaimPolicy: Delete
|
|
||||||
|
|
||||||
---
|
|
||||||
kind: ConfigMap
|
|
||||||
apiVersion: v1
|
|
||||||
metadata:
|
|
||||||
name: local-path-config
|
|
||||||
namespace: local-path-storage
|
|
||||||
data:
|
|
||||||
config.json: |-
|
|
||||||
{
|
|
||||||
"nodePathMap":[
|
|
||||||
{
|
|
||||||
"node":"DEFAULT_PATH_FOR_NON_LISTED_NODES",
|
|
||||||
"paths":["/var/lib/local-path-provisioner"]
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
setup: |-
|
|
||||||
#!/bin/sh
|
|
||||||
set -eu
|
|
||||||
mkdir -m 0777 -p "$VOL_DIR"
|
|
||||||
teardown: |-
|
|
||||||
#!/bin/sh
|
|
||||||
set -eu
|
|
||||||
rm -rf "$VOL_DIR"
|
|
||||||
helperPod.yaml: |-
|
|
||||||
apiVersion: v1
|
|
||||||
kind: Pod
|
|
||||||
metadata:
|
|
||||||
name: helper-pod
|
|
||||||
spec:
|
|
||||||
priorityClassName: system-node-critical
|
|
||||||
tolerations:
|
|
||||||
- key: node.kubernetes.io/disk-pressure
|
|
||||||
operator: Exists
|
|
||||||
effect: NoSchedule
|
|
||||||
containers:
|
|
||||||
- name: helper-pod
|
|
||||||
image: docker.io/library/busybox:1.36
|
|
||||||
imagePullPolicy: IfNotPresent
|
|
||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user