Move qb to its own namespace for NET_ADMIN.

This commit is contained in:
Joseph Hanson 2024-02-17 09:33:57 -06:00
parent 36820c5445
commit 54c84df28e
6 changed files with 19 additions and 2 deletions

View file

@ -0,0 +1,7 @@
---
# yaml-language-server: $schema=https://json.schemastore.org/kustomization.json
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
# Flux-Kustomizations
- ./qbittorrent/ks.yaml

View file

@ -0,0 +1,7 @@
---
apiVersion: v1
kind: Namespace
metadata:
name: qbittorrent
labels:
kustomize.toolkit.fluxcd.io/prune: disabled

View file

@ -4,6 +4,7 @@ apiVersion: external-secrets.io/v1beta1
kind: ExternalSecret
metadata:
name: qbittorrent
namespace: qbittorrent
spec:
secretStoreRef:
kind: ClusterSecretStore

View file

@ -77,6 +77,8 @@ spec:
name: qbittorrent-secret
securityContext:
capabilities:
drop:
- ALL
add:
- NET_ADMIN
allowPrivilegeEscalation: false

View file

@ -6,12 +6,12 @@ metadata:
name: &app qbittorrent
namespace: flux-system
spec:
targetNamespace: default
targetNamespace: qbittorrent
commonMetadata:
labels:
app.kubernetes.io/name: *app
interval: 10m
path: "./kubernetes/apps/default/qbittorrent/app"
path: "./kubernetes/apps/qbittorrent/qbittorrent/app"
prune: true
sourceRef:
kind: GitRepository