condences
This commit is contained in:
1 parent
10fdac2dae
commit
8e63636a31
4 files changed
+154
-107
No files matched your search
@@ -1,10 +0,0 @@
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: plex-envs
|
||||
data:
|
||||
PUID: "1000"
|
||||
PGID: "1000"
|
||||
TZ: {{ .Values.global.timezone }}
|
||||
ADVERTISE_IP: "https://plex.{{ .Values.global.domain }}"
|
||||
@@ -1,71 +0,0 @@
|
||||
---
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: plex
|
||||
spec:
|
||||
selector:
|
||||
matchLabels:
|
||||
app: plex
|
||||
replicas: 1
|
||||
revisionHistoryLimit: 2
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: plex
|
||||
spec:
|
||||
containers:
|
||||
- name: plex
|
||||
image: "{{ .Values.plex.repo }}:{{ .Values.plex.tag }}"
|
||||
envFrom:
|
||||
- configMapRef:
|
||||
name: plex-envs
|
||||
resources:
|
||||
limits:
|
||||
cpu: 2
|
||||
memory: "2Gi"
|
||||
requests:
|
||||
cpu: 1
|
||||
memory: "500M"
|
||||
ports:
|
||||
- containerPort: 32400
|
||||
name: plex
|
||||
- containerPort: 1900
|
||||
protocol: UDP
|
||||
- containerPort: 3005
|
||||
- containerPort: 5353
|
||||
protocol: UDP
|
||||
- containerPort: 8324
|
||||
- containerPort: 32410
|
||||
protocol: UDP
|
||||
- containerPort: 32412
|
||||
protocol: UDP
|
||||
- containerPort: 32413
|
||||
protocol: UDP
|
||||
- containerPort: 32414
|
||||
protocol: UDP
|
||||
- containerPort: 32469
|
||||
volumeMounts:
|
||||
- name: plex-config
|
||||
mountPath: /config
|
||||
- name: plex-transcode
|
||||
mountPath: /transcode
|
||||
{{ range $k, $v := .Values.nfs.shares }}
|
||||
- name: {{ $k }}
|
||||
mountPath: /mnt/{{ $k }}
|
||||
{{ end }}
|
||||
|
||||
volumes:
|
||||
- name: plex-config
|
||||
persistentVolumeClaim:
|
||||
claimName: plex-config
|
||||
- name: plex-transcode
|
||||
persistentVolumeClaim:
|
||||
claimName: plex-transcode
|
||||
{{ range $k, $v := .Values.nfs.shares }}
|
||||
- name: {{ $k }}
|
||||
nfs:
|
||||
server: "{{ $.Values.global.nfs.server }}"
|
||||
path: "{{ $v }}"
|
||||
readOnly: true
|
||||
{{ end }}
|
||||
@@ -1,26 +0,0 @@
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: PersistentVolumeClaim
|
||||
metadata:
|
||||
finalizers:
|
||||
- kubernetes.io/pvc-protection
|
||||
name: plex-config
|
||||
spec:
|
||||
accessModes:
|
||||
- ReadWriteOnce
|
||||
resources:
|
||||
requests:
|
||||
storage: 100Gi
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: PersistentVolumeClaim
|
||||
metadata:
|
||||
finalizers:
|
||||
- kubernetes.io/pvc-protection
|
||||
name: plex-transcode
|
||||
spec:
|
||||
accessModes:
|
||||
- ReadWriteOnce
|
||||
resources:
|
||||
requests:
|
||||
storage: 8Gi
|
||||
@@ -0,0 +1,154 @@
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: plex-envs
|
||||
data:
|
||||
PUID: "1000"
|
||||
PGID: "1000"
|
||||
TZ: {{ .Values.global.timezone }}
|
||||
ADVERTISE_IP: "https://plex.{{ .Values.global.domain }}"
|
||||
|
||||
---
|
||||
kind: Service
|
||||
apiVersion: v1
|
||||
metadata:
|
||||
name: plex
|
||||
spec:
|
||||
selector:
|
||||
app: plex
|
||||
type: ClusterIP
|
||||
ports:
|
||||
- port: 32400
|
||||
targetPort: 32400
|
||||
name: "32400"
|
||||
- port: 1900
|
||||
targetPort: 1900
|
||||
name: "1900-UDP"
|
||||
protocol: UDP
|
||||
- port: 3005
|
||||
targetPort: 3005
|
||||
name: "3005"
|
||||
- port: 5353
|
||||
targetPort: 5353
|
||||
name: "5353-UDP"
|
||||
protocol: UDP
|
||||
- port: 8324
|
||||
targetPort: 8324
|
||||
name: "8324"
|
||||
- port: 32410
|
||||
targetPort: 32410
|
||||
name: "32410-UDP"
|
||||
protocol: UDP
|
||||
- port: 32412
|
||||
targetPort: 32412
|
||||
name: "32412-UDP"
|
||||
protocol: UDP
|
||||
- port: 32413
|
||||
targetPort: 32413
|
||||
name: "32413-UDP"
|
||||
protocol: UDP
|
||||
- port: 32414
|
||||
targetPort: 32414
|
||||
name: "32414-UDP"
|
||||
protocol: UDP
|
||||
- port: 32469
|
||||
targetPort: 32469
|
||||
name: "32469"
|
||||
|
||||
---
|
||||
apiVersion: apps/v1
|
||||
kind: StatefulSet
|
||||
metadata:
|
||||
name: plex
|
||||
spec:
|
||||
selector:
|
||||
matchLabels:
|
||||
app: plex
|
||||
replicas: 1
|
||||
revisionHistoryLimit: 2
|
||||
volumeClaimTemplates:
|
||||
- metadata:
|
||||
finalizers:
|
||||
- kubernetes.io/pvc-protection
|
||||
name: config
|
||||
spec:
|
||||
accessModes:
|
||||
- ReadWriteOnce
|
||||
resources:
|
||||
requests:
|
||||
storage: 10Gi
|
||||
limits:
|
||||
storage: 100Gi
|
||||
- metadata:
|
||||
finalizers:
|
||||
- kubernetes.io/pvc-protection
|
||||
name: transcode
|
||||
spec:
|
||||
accessModes:
|
||||
- ReadWriteOnce
|
||||
resources:
|
||||
requests:
|
||||
storage: 10Gi
|
||||
limits:
|
||||
storage: 100Gi
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: plex
|
||||
spec:
|
||||
containers:
|
||||
- name: plex
|
||||
image: "{{ .Values.plex.repo }}:{{ .Values.plex.tag }}"
|
||||
envFrom:
|
||||
- configMapRef:
|
||||
name: plex-envs
|
||||
resources:
|
||||
limits:
|
||||
cpu: 2
|
||||
memory: "2Gi"
|
||||
requests:
|
||||
cpu: 1
|
||||
memory: "500M"
|
||||
ports:
|
||||
- containerPort: 32400
|
||||
name: plex
|
||||
- containerPort: 1900
|
||||
protocol: UDP
|
||||
- containerPort: 3005
|
||||
- containerPort: 5353
|
||||
protocol: UDP
|
||||
- containerPort: 8324
|
||||
- containerPort: 32410
|
||||
protocol: UDP
|
||||
- containerPort: 32412
|
||||
protocol: UDP
|
||||
- containerPort: 32413
|
||||
protocol: UDP
|
||||
- containerPort: 32414
|
||||
protocol: UDP
|
||||
- containerPort: 32469
|
||||
resources:
|
||||
limits:
|
||||
cpu: 2
|
||||
memory: "2Gi"
|
||||
requests:
|
||||
cpu: 1
|
||||
memory: "500M"
|
||||
volumeMounts:
|
||||
- name: config
|
||||
mountPath: /config
|
||||
- name: transcode
|
||||
mountPath: /transcode
|
||||
- name: torrents
|
||||
mountPath: /tv
|
||||
subpath: tv
|
||||
- name: torrents
|
||||
mountPath: /movies
|
||||
subpath: movies
|
||||
volumes:
|
||||
- name: torrents
|
||||
nfs:
|
||||
server: "{{ $.Values.global.nfs.server }}"
|
||||
path: "{{ $.Values.nfs.shares.torrents }}"
|
||||
readOnly: true
|
||||
Reference in new issue
Block a user