First remote-jellyfin cut
Signed-off-by: Martyn Ranyard <m@rtyn.berlin>
This commit is contained in:
		
							parent
							
								
									ab84716570
								
							
						
					
					
						commit
						a8bbb48877
					
				
					 5 changed files with 70 additions and 0 deletions
				
			
		
							
								
								
									
										7
									
								
								docker/ssh/Dockerfile
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										7
									
								
								docker/ssh/Dockerfile
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
					@ -0,0 +1,7 @@
 | 
				
			||||||
 | 
					FROM library/alpine
 | 
				
			||||||
 | 
					RUN apk add --no-cache openssh && \
 | 
				
			||||||
 | 
					  sed -i /etc/ssh/sshd_config -e s/'#Port.*'/'Port 2222'/ -e s/'AllowTcpForwarding.*'/'AllowTcpForwarding yes'/
 | 
				
			||||||
 | 
					RUN adduser -D -s /bin/ash beagle
 | 
				
			||||||
 | 
					ADD beagle.key /home/beagle/.ssh/authorized_keys
 | 
				
			||||||
 | 
					RUN passwd -u beagle && \
 | 
				
			||||||
 | 
					 chown -R beagle:beagle /home/beagle
 | 
				
			||||||
							
								
								
									
										1
									
								
								docker/ssh/beagle.key
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								docker/ssh/beagle.key
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
					@ -0,0 +1 @@
 | 
				
			||||||
 | 
					ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC5y7Ipbp3pjiG2XVolwrWn1W7xXWBER7UNd67h1coGhjkysieclFdL6ODxueqAoo5CEQJAhZJHh/X1vbY6Ux7AmdKQXqLKmk/B4rWgspF9wUCQe0E6Z9CGXDzthPzu1y/PEh8MGqEPZ5CSE6MSmXPVNCo7QBV5J1u872qxYUZwdqguQVCSfi2rlXPb9YbH7hPxiB6g1pKYyBrTnYimmFhQUmf5c9H0/mIEs45m2cro1ROeD+ywoQGcJp538qNa+cAjh8FrgediehHTspq/Lp1NXMWgX+DmsqS6i985lP6h7F0/zqv/ok0CZ+XoHVsa+7TiqRZ6KjL2IsIQtgirL0ux debian@beagleyellow
 | 
				
			||||||
							
								
								
									
										36
									
								
								ssh/deploy.yaml
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										36
									
								
								ssh/deploy.yaml
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
					@ -0,0 +1,36 @@
 | 
				
			||||||
 | 
					apiVersion: apps/v1
 | 
				
			||||||
 | 
					kind: Deployment
 | 
				
			||||||
 | 
					metadata:
 | 
				
			||||||
 | 
					  creationTimestamp: null
 | 
				
			||||||
 | 
					  labels:
 | 
				
			||||||
 | 
					    app: ssh
 | 
				
			||||||
 | 
					  name: ssh
 | 
				
			||||||
 | 
					spec:
 | 
				
			||||||
 | 
					  replicas: 1
 | 
				
			||||||
 | 
					  selector:
 | 
				
			||||||
 | 
					    matchLabels:
 | 
				
			||||||
 | 
					      app: ssh
 | 
				
			||||||
 | 
					  strategy: {}
 | 
				
			||||||
 | 
					  template:
 | 
				
			||||||
 | 
					    metadata:
 | 
				
			||||||
 | 
					      creationTimestamp: null
 | 
				
			||||||
 | 
					      labels:
 | 
				
			||||||
 | 
					        app: ssh
 | 
				
			||||||
 | 
					    spec:
 | 
				
			||||||
 | 
					      containers:
 | 
				
			||||||
 | 
					      - image: imartyn/ssh
 | 
				
			||||||
 | 
					        name: alpine
 | 
				
			||||||
 | 
					        command:
 | 
				
			||||||
 | 
					        - sh
 | 
				
			||||||
 | 
					        - -c
 | 
				
			||||||
 | 
					        - ssh-keygen -A; /usr/sbin/sshd -D -p 22
 | 
				
			||||||
 | 
					        ports:
 | 
				
			||||||
 | 
					        - containerPort: 22
 | 
				
			||||||
 | 
					          name: ssh
 | 
				
			||||||
 | 
					          protocol: TCP
 | 
				
			||||||
 | 
					          hostPort: 22
 | 
				
			||||||
 | 
					        - containerPort: 8096
 | 
				
			||||||
 | 
					          name: jelly
 | 
				
			||||||
 | 
					          protocol: TCP
 | 
				
			||||||
 | 
					        resources: {}
 | 
				
			||||||
 | 
					status: {}
 | 
				
			||||||
							
								
								
									
										13
									
								
								ssh/service-jelly.yaml
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										13
									
								
								ssh/service-jelly.yaml
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
					@ -0,0 +1,13 @@
 | 
				
			||||||
 | 
					apiVersion: v1
 | 
				
			||||||
 | 
					kind: Service
 | 
				
			||||||
 | 
					metadata:
 | 
				
			||||||
 | 
					  labels:
 | 
				
			||||||
 | 
					    app: ssh
 | 
				
			||||||
 | 
					  name: remote-jelly
 | 
				
			||||||
 | 
					  namespace: cluster-ingress
 | 
				
			||||||
 | 
					spec:
 | 
				
			||||||
 | 
					  ports:
 | 
				
			||||||
 | 
					  - port: 8096
 | 
				
			||||||
 | 
					  selector:
 | 
				
			||||||
 | 
					    app: ssh
 | 
				
			||||||
 | 
					  type: ClusterIP
 | 
				
			||||||
							
								
								
									
										13
									
								
								ssh/service-ssh.yaml
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										13
									
								
								ssh/service-ssh.yaml
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
					@ -0,0 +1,13 @@
 | 
				
			||||||
 | 
					apiVersion: v1
 | 
				
			||||||
 | 
					kind: Service
 | 
				
			||||||
 | 
					metadata:
 | 
				
			||||||
 | 
					  labels:
 | 
				
			||||||
 | 
					    app: ssh
 | 
				
			||||||
 | 
					  name: ssh
 | 
				
			||||||
 | 
					  namespace: cluster-ingress
 | 
				
			||||||
 | 
					spec:
 | 
				
			||||||
 | 
					  ports:
 | 
				
			||||||
 | 
					  - port: 22
 | 
				
			||||||
 | 
					  selector:
 | 
				
			||||||
 | 
					    app: ssh
 | 
				
			||||||
 | 
					  type: NodePort
 | 
				
			||||||
		Loading…
	
	Add table
		
		Reference in a new issue