mirror of
https://github.com/amkartashov/gf-k8s.git
synced 2026-01-10 17:39:43 +00:00
46 lines
973 B
YAML
46 lines
973 B
YAML
---
|
|
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: sshct
|
|
labels:
|
|
app: sshct
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: sshct
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: sshct
|
|
spec:
|
|
hostNetwork: true
|
|
volumes:
|
|
- name: home
|
|
hostPath:
|
|
path: /home
|
|
type: DirectoryOrCreate
|
|
- name: dockersock
|
|
hostPath:
|
|
path: /var/run/docker.sock
|
|
type: Socket
|
|
containers:
|
|
- name: sshct
|
|
securityContext:
|
|
privileged: true
|
|
image: ghcr.io/amkartashov/sshct:v3.8.0
|
|
imagePullPolicy: IfNotPresent
|
|
env:
|
|
- name: CT_SSH_PORT
|
|
value: "30810"
|
|
#- name: CTUSERPWD
|
|
# valueFrom:
|
|
# secretKeyRef:
|
|
# name: sshct
|
|
# key: password
|
|
volumeMounts:
|
|
- mountPath: /home
|
|
name: home
|
|
- mountPath: /var/run/docker.sock
|
|
name: dockersock
|