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 kind: ExternalSecret
metadata: metadata:
name: qbittorrent name: qbittorrent
namespace: qbittorrent
spec: spec:
secretStoreRef: secretStoreRef:
kind: ClusterSecretStore kind: ClusterSecretStore

View file

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

View file

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