55 lines
1.2 KiB
YAML
55 lines
1.2 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
labels:
|
|
app: fyldessh
|
|
name: fyldessh
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: fyldessh
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: fyldessh
|
|
spec:
|
|
containers:
|
|
- command:
|
|
- ssh
|
|
- nas
|
|
image: kroniak/ssh-client
|
|
name: ssh-client
|
|
resources: {}
|
|
volumeMounts:
|
|
- mountPath: /ssh-keys/bounce
|
|
name: ssh-key-bounce
|
|
- mountPath: /ssh-keys/nas
|
|
name: ssh-key-nas
|
|
- mountPath: /root/.ssh/config
|
|
name: ssh-config
|
|
subPath: config
|
|
livenessProbe:
|
|
tcpSocket:
|
|
port: 22
|
|
initialDelaySeconds: 15
|
|
periodSeconds: 10
|
|
readinessProbe:
|
|
httpGet:
|
|
path: /manifest.json
|
|
port: 8123
|
|
initialDelaySeconds: 15
|
|
periodSeconds: 10
|
|
restartPolicy: Always
|
|
volumes:
|
|
- name: ssh-key-bounce
|
|
secret:
|
|
defaultMode: 256
|
|
secretName: ssh-key-bounce
|
|
- name: ssh-key-nas
|
|
secret:
|
|
defaultMode: 256
|
|
secretName: ssh-key-nas
|
|
- name: ssh-config
|
|
configMap:
|
|
name: ssh-config
|