Add config and a pvc for sonarr
This commit is contained in:
		| @@ -22,28 +22,35 @@ spec: | |||||||
|         app: sonarr |         app: sonarr | ||||||
|     spec: |     spec: | ||||||
|       containers: |       containers: | ||||||
|       - name: sonarr |         - name: sonarr | ||||||
|         image: lscr.io/linuxserver/sonarr:4.0.8 |           image: lscr.io/linuxserver/sonarr:4.0.8 | ||||||
|         imagePullPolicy: IfNotPresent |           imagePullPolicy: IfNotPresent | ||||||
|         ports: |           ports: | ||||||
|         - name: http |           - name: http | ||||||
|           containerPort: 8989 |             containerPort: 8989 | ||||||
|         livenessProbe: |           livenessProbe: | ||||||
|           httpGet: |             httpGet: | ||||||
|             path: /ping |               path: /ping | ||||||
|             port: 8989 |               port: 8989 | ||||||
|           initialDelaySeconds: 5 |             initialDelaySeconds: 5 | ||||||
|           timeoutSeconds: 5 |             timeoutSeconds: 5 | ||||||
|         readinessProbe: |           readinessProbe: | ||||||
|           httpGet: |             httpGet: | ||||||
|             path: /ping |               path: /ping | ||||||
|             port: 8989 |               port: 8989 | ||||||
|           initialDelaySeconds: 5 |             initialDelaySeconds: 5 | ||||||
|           timeoutSeconds: 5 |             timeoutSeconds: 5 | ||||||
|         resources: |           resources: | ||||||
|           limits: |             limits: | ||||||
|             cpu: 1000m |               cpu: 1000m | ||||||
|             memory: 2Gi |               memory: 2Gi | ||||||
|           requests: |             requests: | ||||||
|             cpu: 10m |               cpu: 10m | ||||||
|             memory: 64Mi |               memory: 64Mi | ||||||
|  |           volumeMounts: | ||||||
|  |             - name: static-config | ||||||
|  |               mountPath: /config | ||||||
|  |       volumes: | ||||||
|  |         - name: static-config | ||||||
|  |           configMap: | ||||||
|  |             name: static-config | ||||||
							
								
								
									
										17
									
								
								apps/sonarr/files/config.xml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										17
									
								
								apps/sonarr/files/config.xml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,17 @@ | |||||||
|  | <Config> | ||||||
|  |   <LogLevel>Info</LogLevel> | ||||||
|  |   <Port>8989</Port> | ||||||
|  |   <UrlBase>/</UrlBase> | ||||||
|  |   <BindAddress>*</BindAddress> | ||||||
|  |   <SslPort>9898</SslPort> | ||||||
|  |   <EnableSsl>False</EnableSsl> | ||||||
|  |   <ApiKey>82138601e4f44e23be8c2b4d18e58687</ApiKey> | ||||||
|  |   <AuthenticationMethod>External</AuthenticationMethod> | ||||||
|  |   <Branch>develop</Branch> | ||||||
|  |   <LaunchBrowser>True</LaunchBrowser> | ||||||
|  |   <UpdateMechanism>Docker</UpdateMechanism> | ||||||
|  |   <InstanceName>Sonarr</InstanceName> | ||||||
|  |   <AuthenticationRequired>DisabledForLocalAddresses</AuthenticationRequired> | ||||||
|  |   <SslCertPath></SslCertPath> | ||||||
|  |   <SslCertPassword></SslCertPassword> | ||||||
|  | </Config> | ||||||
| @@ -4,3 +4,8 @@ resources: | |||||||
| - deployment.yaml | - deployment.yaml | ||||||
| - service.yaml | - service.yaml | ||||||
| - ingress.yaml | - ingress.yaml | ||||||
|  | - pvc.yaml | ||||||
|  | configMapGenerator: | ||||||
|  |   - name: static-config | ||||||
|  |     files: | ||||||
|  |     - ./config.xml | ||||||
							
								
								
									
										11
									
								
								apps/sonarr/pvc.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										11
									
								
								apps/sonarr/pvc.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,11 @@ | |||||||
|  | apiVersion: v1 | ||||||
|  | kind: PersistentVolumeClaim | ||||||
|  | metadata: | ||||||
|  |   name: sonarr-pvc | ||||||
|  | spec: | ||||||
|  |   accessModes: | ||||||
|  |     - ReadWriteOncePod | ||||||
|  |   storageClassName: longhorn | ||||||
|  |   resources: | ||||||
|  |     requests: | ||||||
|  |       storage: 2Gi | ||||||
		Reference in New Issue
	
	Block a user