Cleaned repo a bit.

This commit is contained in:
hamilcarBarca17
2022-10-04 10:22:48 -06:00
parent 5b9ba965f9
commit 02df0ae4ec
18 changed files with 115 additions and 1603 deletions
+17 -21
View File
@@ -3,13 +3,11 @@ kind: Service
metadata:
name: sonarr
spec:
type: NodePort
ports:
- port: 8989
protocol: TCP
targetPort: 8989
name: webui
nodePort: 30001
selector:
run: sonarr
---
@@ -30,9 +28,7 @@ spec:
run: sonarr
spec:
securityContext:
# runAsUser: 1000
# runAsGroup: 1000
fsGroup: 1000
fsGroup: 1000
initContainers:
- name: chown
image: busybox
@@ -72,22 +68,22 @@ spec:
ports:
- containerPort: 8989
name: webui
# livenessProbe:
# exec:
# command:
# - /bin/sh
# - -c
# - curl "http://localhost:8989/sonarr/api/health?ApiKey=$(sed -ne '/ApiKey/{s/.*<ApiKey>\(.*\)<\/ApiKey>.*/\1/p;q;}' </config/config.xml)"
# initialDelaySeconds: 30
# periodSeconds: 10
# readinessProbe:
# exec:
# command:
# - /bin/sh
# - -c
# - curl "http://localhost:8989/sonarr/api/system/status?ApiKey=$(sed -ne '/ApiKey/{s/.*<ApiKey>\(.*\)<\/ApiKey>.*/\1/p;q;}' </config/config.xml)"
# initialDelaySeconds: 30
# periodSeconds: 10
livenessProbe:
exec:
command:
- /bin/sh
- -c
- curl "http://localhost:8989/sonarr/api/health?ApiKey=$(sed -ne '/ApiKey/{s/.*<ApiKey>\(.*\)<\/ApiKey>.*/\1/p;q;}' </config/config.xml)"
initialDelaySeconds: 30
periodSeconds: 10
readinessProbe:
exec:
command:
- /bin/sh
- -c
- curl "http://localhost:8989/sonarr/api/system/status?ApiKey=$(sed -ne '/ApiKey/{s/.*<ApiKey>\(.*\)<\/ApiKey>.*/\1/p;q;}' </config/config.xml)"
initialDelaySeconds: 30
periodSeconds: 10
volumeMounts:
- mountPath: /config
name: htpc-home