-
-
Save gowatana/8d1dc1121bc7853dd74546f102c19cc0 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-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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
下記の投稿むけ。
vSphere with Tnazu の TKC 仮想マシンに SSH 接続してみる。(vSphere Pod 編)
https://vm.gowatana.jp/entry/2023/04/09/164359