Skip to content

Instantly share code, notes, and snippets.

@gowatana
Last active April 9, 2023 08:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gowatana/e62235033ed32a4fedfdca712e310cc1 to your computer and use it in GitHub Desktop.
Save gowatana/e62235033ed32a4fedfdca712e310cc1 to your computer and use it in GitHub Desktop.
apiVersion: v1
kind: Pod
metadata:
name: tkc-01-jumpbox-a
spec:
volumes:
- name: ssh-key
secret:
secretName: tkc-01-ssh
containers:
- image: photon:3.0
name: jumpbox
volumeMounts:
- mountPath: "/root/ssh"
name: ssh-key
readOnly: true
command:
- /bin/bash
- -c
- |
yum install -y openssh-server
mkdir /root/.ssh
cp /root/ssh/ssh-privatekey /root/.ssh/id_rsa
chmod 600 /root/.ssh/id_rsa
while true; do sleep 30; done
resources:
requests:
memory: 2Gi
@gowatana
Copy link
Author

gowatana commented Apr 9, 2023

下記の投稿むけ。

vSphere with Tnazu の TKC 仮想マシンに SSH 接続してみる。(Jumpbox VM 編)
https://vm.gowatana.jp/entry/2023/04/07/091750

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment