feat(unrar): add an image for unrar tool

This commit is contained in:
Vegard Hagen
2024-09-01 23:42:58 +02:00
parent 7695584a63
commit e5b3cd91d3
4 changed files with 55 additions and 0 deletions

View File

@@ -9,6 +9,8 @@ spec:
destinations:
- namespace: 'argocd'
server: '*'
- namespace: 'unrar'
server: '*'
- namespace: 'whoami'
server: '*'
clusterResourceWhitelist:

View File

@@ -0,0 +1,43 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: unrar
namespace: unrar
labels:
app: unrar
spec:
replicas: 1
selector:
matchLabels:
app: unrar
strategy:
type: Recreate
template:
metadata:
namespace: unrar
labels:
app: unrar
spec:
nodeSelector:
topology.kubernetes.io/zone: cantor
securityContext:
runAsUser: 2501
runAsGroup: 2501
fsGroup: 2501
fsGroupChangePolicy: OnRootMismatch
containers:
- name: unrar
image: ghcr.io/nzrsky/unrar:main
command: [ "sleep", "1d" ]
volumeMounts:
- name: tmp
mountPath: /tmp
- name: data
mountPath: /mnt/data
volumes:
- name: tmp
emptyDir: { }
- name: data
nfs:
server: 192.168.1.117
path: /mnt/pool-0/data

View File

@@ -0,0 +1,6 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ns.yaml
- deployment.yaml

View File

@@ -0,0 +1,4 @@
apiVersion: v1
kind: Namespace
metadata:
name: unrar