diff --git a/apps/services/sshct.yaml b/apps/services/sshct.yaml index 1406e47..d3d878d 100644 --- a/apps/services/sshct.yaml +++ b/apps/services/sshct.yaml @@ -15,7 +15,7 @@ spec: labels: app: sshct spec: - hostname: sshct + hostNetwork: true volumes: - name: home hostPath: @@ -27,35 +27,20 @@ spec: type: Socket containers: - name: sshct - image: ghcr.io/amkartashov/sshct:v3.7.1 + 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 - ports: - - containerPort: 22 - name: ssh volumeMounts: - mountPath: /home name: home - mountPath: /var/run/docker.sock name: dockersock ---- -kind: Service -apiVersion: v1 -metadata: - name: sshct -spec: - selector: - app: sshct - externalTrafficPolicy: Local - ports: - - name: ssh - protocol: TCP - port: 22 - targetPort: ssh - nodePort: 30810 - type: NodePort