-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbastion-deployment.yml
65 lines (64 loc) · 1.48 KB
/
bastion-deployment.yml
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
64
apiVersion: apps/v1
kind: Deployment
metadata:
name: ssh-bastion
namespace: default
spec:
progressDeadlineSeconds: 600
replicas: 3
revisionHistoryLimit: 10
selector:
matchLabels:
app: ssh-bastion
strategy:
rollingUpdate:
maxSurge: 25%
maxUnavailable: 25%
type: RollingUpdate
template:
metadata:
annotations:
kubectl.kubernetes.io/restartedAt: "2020-09-12T12:59:32Z"
creationTimestamp: null
labels:
app: ssh-bastion
spec:
containers:
- args:
- -D
- -e
- -f
- /etc/ssh/sshd_config_custom
command:
- /usr/sbin/sshd
image: claudious96/ssh-bastion:latest
imagePullPolicy: Always
name: bastion
ports:
- containerPort: 2222
protocol: TCP
resources: {}
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
volumeMounts:
- mountPath: /home/bastion/.ssh
name: config-volume
dnsPolicy: ClusterFirst
restartPolicy: Always
schedulerName: default-scheduler
securityContext: {}
terminationGracePeriodSeconds: 30
volumes:
- name: config-volume
configMap:
name: auth-keys-bastion
defaultMode: 0444
---
apiVersion: v1
data:
authorized_keys: |
# Just a comment to fill in the configmap and start the pod
kind: ConfigMap
metadata:
creationTimestamp: null
name: auth-keys-bastion