forked from gravelfreeman/freescript
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathopenssh-server.yaml
63 lines (62 loc) · 1.24 KB
/
openssh-server.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
apiVersion: apps/v1
kind: Deployment
metadata:
name: openssh-server
labels:
app: openssh-server
spec:
replicas: 1
selector:
matchLabels:
app: openssh-server
template:
metadata:
labels:
app: openssh-server
spec:
containers:
- name: openssh-server
image: lscr.io/linuxserver/openssh-server:latest
ports:
- containerPort: 2222
env:
- name: PUID
value: "568"
- name: PGID
value: "568"
- name: TZ
value: "America/Montreal"
- name: SUDO_ACCESS
value: "true"
- name: PASSWORD_ACCESS
value: "true"
- name: USER_PASSWORD
value: "apps"
- name: USER_NAME
value: "apps"
volumeMounts:
- name: config
mountPath: /config
- name: ${pvc}
mountPath: /config/mounted-pvc
volumes:
- name: config
emptyDir: {}
- name: ${pvc}
persistentVolumeClaim:
claimName: ${pvc}
---
apiVersion: v1
kind: Service
metadata:
name: openssh-service
labels:
app: openssh-server
spec:
type: NodePort
selector:
app: openssh-server
ports:
- protocol: TCP
port: 2222
targetPort: 2222