-
-
Save gowatana/e62235033ed32a4fedfdca712e310cc1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
下記の投稿むけ。
vSphere with Tnazu の TKC 仮想マシンに SSH 接続してみる。(Jumpbox VM 編)
https://vm.gowatana.jp/entry/2023/04/07/091750