54 lines
		
	
	
	
		
			1.3 KiB
		
	
	
	
		
			YAML
		
	
	
	
	
	
			
		
		
	
	
			54 lines
		
	
	
	
		
			1.3 KiB
		
	
	
	
		
			YAML
		
	
	
	
	
	
apiVersion: apps/v1
 | 
						|
kind: Deployment
 | 
						|
metadata:
 | 
						|
  labels:
 | 
						|
    app: sonarr
 | 
						|
  name: sonarr
 | 
						|
spec:
 | 
						|
  selector:
 | 
						|
    matchLabels:
 | 
						|
      app: sonarr
 | 
						|
  strategy:
 | 
						|
    type: Recreate
 | 
						|
  template:
 | 
						|
    metadata:
 | 
						|
      labels:
 | 
						|
        app: sonarr
 | 
						|
    spec:
 | 
						|
      containers:
 | 
						|
      - image: ghcr.io/hotio/sonarr:release-4.0.13.2932
 | 
						|
        imagePullPolicy: Always
 | 
						|
        name: sonarr
 | 
						|
        ports:
 | 
						|
        - containerPort: 8989
 | 
						|
          name: http
 | 
						|
          protocol: TCP
 | 
						|
        resources:
 | 
						|
          requests:
 | 
						|
            cpu: 25m
 | 
						|
            memory: 628694953
 | 
						|
        volumeMounts:
 | 
						|
        - mountPath: /config
 | 
						|
          name: config
 | 
						|
        - mountPath: /data
 | 
						|
          name: data
 | 
						|
        - mountPath: /combinedseries
 | 
						|
          name: combinedseries
 | 
						|
      dnsPolicy: ClusterFirst
 | 
						|
      restartPolicy: Always
 | 
						|
      schedulerName: default-scheduler
 | 
						|
      terminationGracePeriodSeconds: 30
 | 
						|
      volumes:
 | 
						|
      - name: config
 | 
						|
        persistentVolumeClaim:
 | 
						|
          claimName: sonarr-config-data
 | 
						|
      - name: combinedseries
 | 
						|
        persistentVolumeClaim:
 | 
						|
          claimName: smb-combinedseries
 | 
						|
      - name: data
 | 
						|
        csi:
 | 
						|
          driver: smb.csi.k8s.io
 | 
						|
          volumeAttributes:
 | 
						|
            mountOptions: 'dir_mode=0777,file_mode=0777,uid=1000,gid=1000,noperm'
 | 
						|
            secretName: smb-creds
 | 
						|
            source: //172.20.0.69/usenet
 |