Skip to content

Instantly share code, notes, and snippets.

@gowatana
Created April 9, 2023 07:25
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/8d1dc1121bc7853dd74546f102c19cc0 to your computer and use it in GitHub Desktop.
Save gowatana/8d1dc1121bc7853dd74546f102c19cc0 to your computer and use it in GitHub Desktop.
apiVersion: v1
kind: Pod
metadata:
name: tkc-01-jumpbox-b
spec:
volumes:
- name: ssh-key
secret:
secretName: tkc-01-ssh
containers:
- image: ghcr.io/gowatana/centos7:latest
name: jumpbox
volumeMounts:
- mountPath: "/root/ssh"
name: ssh-key
readOnly: true
command:
- /bin/bash
- -c
- |
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 接続してみる。(vSphere Pod 編)
https://vm.gowatana.jp/entry/2023/04/09/164359

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