mirror of
https://github.com/zoriya/snow.git
synced 2025-12-06 07:16:19 +00:00
Add /host to ssh debug pod
This commit is contained in:
48
debug.yaml
48
debug.yaml
@@ -23,23 +23,37 @@ spec:
|
|||||||
name: debug
|
name: debug
|
||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- name: debug
|
- name: debug
|
||||||
# image: nixery.dev/shell/nix/tmux/vim
|
# image: nixery.dev/shell/nix/tmux/vim
|
||||||
# command:
|
# command:
|
||||||
# - sleep
|
# - sleep
|
||||||
# - infinity
|
# - infinity
|
||||||
image: lscr.io/linuxserver/openssh-server:latest
|
image: lscr.io/linuxserver/openssh-server:latest
|
||||||
env:
|
env:
|
||||||
- name: PUBLIC_KEY_URL
|
- name: PUBLIC_KEY_URL
|
||||||
value: https://github.com/zoriya.keys
|
value: https://github.com/zoriya.keys
|
||||||
- name: SUDO_ACCESS
|
- name: SUDO_ACCESS
|
||||||
value: "true"
|
value: "true"
|
||||||
- name: USER_NAME
|
- name: USER_NAME
|
||||||
value: zoriya
|
value: zoriya
|
||||||
- name: LISTEN_PORT
|
- name: LISTEN_PORT
|
||||||
value: "22"
|
value: "22"
|
||||||
securityContext:
|
securityContext:
|
||||||
privileged: true
|
privileged: true
|
||||||
|
volumeMounts:
|
||||||
|
- mountPath: /dev
|
||||||
|
name: dev
|
||||||
|
- mountPath: /host
|
||||||
|
name: host
|
||||||
|
volumes:
|
||||||
|
- name: host
|
||||||
|
hostPath:
|
||||||
|
path: /
|
||||||
|
type: Directory
|
||||||
|
- name: dev
|
||||||
|
hostPath:
|
||||||
|
path: /dev
|
||||||
|
type: Directory
|
||||||
---
|
---
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Service
|
kind: Service
|
||||||
|
|||||||
Reference in New Issue
Block a user