Add sonarr
This commit is contained in:
		
							
								
								
									
										49
									
								
								apps/sonarr/deployment.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										49
									
								
								apps/sonarr/deployment.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,49 @@ | |||||||
|  | apiVersion: apps/v1 | ||||||
|  | kind: Deployment | ||||||
|  | metadata: | ||||||
|  |   name: sonarr | ||||||
|  | spec: | ||||||
|  |   minReadySeconds: 3 | ||||||
|  |   revisionHistoryLimit: 5 | ||||||
|  |   progressDeadlineSeconds: 60 | ||||||
|  |   strategy: | ||||||
|  |     rollingUpdate: | ||||||
|  |       maxUnavailable: 0 | ||||||
|  |     type: RollingUpdate | ||||||
|  |   selector: | ||||||
|  |     matchLabels: | ||||||
|  |       app: sonarr | ||||||
|  |   template: | ||||||
|  |     metadata: | ||||||
|  |       annotations: | ||||||
|  |         prometheus.io/scrape: "true" | ||||||
|  |         prometheus.io/port: "9797" | ||||||
|  |       labels: | ||||||
|  |         app: sonarr | ||||||
|  |     spec: | ||||||
|  |       containers: | ||||||
|  |       - name: sonarr | ||||||
|  |         image: lscr.io/linuxserver/sonarr:4.0.8 | ||||||
|  |         imagePullPolicy: IfNotPresent | ||||||
|  |         ports: | ||||||
|  |         - name: http | ||||||
|  |           containerPort: 8989 | ||||||
|  |         livenessProbe: | ||||||
|  |           httpGet: | ||||||
|  |             path: /ping | ||||||
|  |             port: 8989 | ||||||
|  |           initialDelaySeconds: 5 | ||||||
|  |           timeoutSeconds: 5 | ||||||
|  |         readinessProbe: | ||||||
|  |           httpGet: | ||||||
|  |             path: /ping | ||||||
|  |             port: 8989 | ||||||
|  |           initialDelaySeconds: 5 | ||||||
|  |           timeoutSeconds: 5 | ||||||
|  |         resources: | ||||||
|  |           limits: | ||||||
|  |             cpu: 1000m | ||||||
|  |             memory: 2Gb | ||||||
|  |           requests: | ||||||
|  |             cpu: 10m | ||||||
|  |             memory: 64Mi | ||||||
							
								
								
									
										16
									
								
								apps/sonarr/ingress.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										16
									
								
								apps/sonarr/ingress.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,16 @@ | |||||||
|  | apiVersion: traefik.io/v1alpha1 | ||||||
|  | kind: IngressRoute | ||||||
|  | metadata: | ||||||
|  |   name: sonarr | ||||||
|  | spec: | ||||||
|  |   entryPoints: | ||||||
|  |     - web | ||||||
|  |   routes: | ||||||
|  |   - match: Host(`sonarr.k3s`) | ||||||
|  |     kind: Rule | ||||||
|  |     services: | ||||||
|  |     - name: sonarr | ||||||
|  |       namespace: apps | ||||||
|  |       nativeLB: true | ||||||
|  |       kind: Service | ||||||
|  |       port: 8989 | ||||||
							
								
								
									
										6
									
								
								apps/sonarr/kustomization.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										6
									
								
								apps/sonarr/kustomization.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,6 @@ | |||||||
|  | apiVersion: kustomize.config.k8s.io/v1beta1 | ||||||
|  | kind: Kustomization | ||||||
|  | resources: | ||||||
|  | - deployment.yaml | ||||||
|  | - service.yaml | ||||||
|  | - ingress.yaml | ||||||
							
								
								
									
										12
									
								
								apps/sonarr/service.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										12
									
								
								apps/sonarr/service.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,12 @@ | |||||||
|  | apiVersion: v1 | ||||||
|  | kind: Service | ||||||
|  | metadata: | ||||||
|  |   name: sonarr | ||||||
|  | spec: | ||||||
|  |   type: ClusterIP | ||||||
|  |   selector: | ||||||
|  |     app: sonarr | ||||||
|  |   ports: | ||||||
|  |     - name: http | ||||||
|  |       port: 8989 | ||||||
|  |       targetPort: 8989 | ||||||
		Reference in New Issue
	
	Block a user