Move qb to its own namespace for NET_ADMIN.
This commit is contained in:
parent
36820c5445
commit
54c84df28e
6 changed files with 19 additions and 2 deletions
7
kubernetes/apps/qbittorrent/kustomization.yaml
Normal file
7
kubernetes/apps/qbittorrent/kustomization.yaml
Normal 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
|
7
kubernetes/apps/qbittorrent/namespace.yaml
Normal file
7
kubernetes/apps/qbittorrent/namespace.yaml
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Namespace
|
||||||
|
metadata:
|
||||||
|
name: qbittorrent
|
||||||
|
labels:
|
||||||
|
kustomize.toolkit.fluxcd.io/prune: disabled
|
|
@ -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
|
|
@ -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
|
|
@ -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
|
Loading…
Reference in a new issue