This commit is contained in:
2020-12-16 19:14:56 +11:00
parent e43980b16e
commit 2d7a2dfbeb
5 changed files with 50 additions and 15 deletions
+8 -14
View File
@@ -184,19 +184,15 @@ spec:
volumes:
- name: config
persistentVolumeClaim:
claimName: plex-nfs
- name: transcode
hostPath:
path: /mnt/plex-temp
type: DirectoryOrCreate
claimName: configs-nfs
- name: downloads
persistentVolumeClaim:
claimName: downloads-nfs
nodeSelector:
dell: "true"
# nodeSelector:
# dell: "true"
containers:
- name: plex
image: plexinc/pms-docker:latest
image: ghcr.io/linuxserver/plex
# securityContext:
# runAsUser: 0
imagePullPolicy: Always
@@ -224,18 +220,17 @@ spec:
- name: TZ
value: Australia/Melbourne
- name: PLEX_CLAIM
value: "claim-b_w2MErxts9BHa8p356c"
value: "claim-CV5ZQuVy6qpMx-z1PLTZ"
- name: HOSTNAME
value: home-server
- name: PLEX_UID
- name: PUID
value: "1000"
- name: PLEX_PGID
- name: PGID
value: "1000"
volumeMounts:
- name: config
mountPath: /config
- name: transcode
mountPath: /transcode
subPath: plex
- name: downloads
mountPath: /data
resources:
@@ -246,7 +241,6 @@ spec:
cpu: 1200m
memory: 1500Mi
---
apiVersion: v1
kind: Service
+3
View File
@@ -7,3 +7,6 @@ metrics:
release: prometheus
stats:
enabled: true
nodeSelector:
ip: 192.168.1.2
+4
View File
@@ -22,3 +22,7 @@ metrics:
enabled: true
additionalLabels:
release: prometheus
primary:
nodeSelector:
ip: 192.168.1.2
+28
View File
@@ -54,3 +54,31 @@ spec:
- ReadWriteOnce
hostPath:
path: "/mnt/prometheus-data"
---
apiVersion: v1
kind: PersistentVolume
metadata:
name: configs-nfs-default
spec:
capacity:
storage: 10Gi
accessModes:
- ReadWriteMany
nfs:
server: 192.168.1.4
path: "/configs"
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
namespace: "default"
name: "configs-nfs-default"
spec:
storageClassName: ""
accessModes:
- ReadWriteMany
resources:
requests:
storage: 10Gi
+7 -1
View File
@@ -1,6 +1,8 @@
prometheusOperator:
tls:
enabled: false
nodeSelector:
ip: 192.168.1.2
securityContext:
runAsGroup: 1000
runAsNonRoot: true
@@ -15,6 +17,8 @@ prometheusOperator:
# memory: 1500Mi
prometheus:
prometheusSpec:
nodeSelector:
ip: 192.168.1.2
retentionSize: 50GiB
retention: 1y
image:
@@ -48,7 +52,9 @@ grafana:
persistence:
enabled: true
storageClassName: manual
existingClaim: grafana-pvc
existingClaim: configs-nfs-default
subPath: grafana-data
securityContext:
fsGroup: 1000
runAsUser: 1000