Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/ContainerCraft/Kargo into m…
Browse files Browse the repository at this point in the history
…etal
  • Loading branch information
usrbinkat authored Sep 9, 2024
2 parents 5c03d88 + a7e54c5 commit 64e8eae
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,6 @@
"terminal.integrated.fontFamily": "FiraMono Nerd Font Mono",
"terminal.integrated.commandsToSkipShell": [],
"terminal.integrated.scrollbar.alwaysConsumeMouseWheel": true,
"terminal.integrated.shell.linux": "/usr/bin/fish",
"vs-kubernetes.vs-kubernetes.namespace": "*",
"vs-kubernetes.vs-kubernetes.outputFormat": "yaml",
"vs-kubernetes.vs-kubernetes.helm-path": "/usr/local/bin/helm",
Expand Down Expand Up @@ -220,5 +219,6 @@
"zoma.vscode-auto-open-workspace": {
"enableAutoOpenIfSingleWorkspace": false,
"enableAutoOpenAlwaysFirst": false
}
},
"runme.terminal.rows": 20
}
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,9 @@ Deploy an Ubuntu Virtual Machine on the platform using Kubevirt.
> **Note:** Run this step manually via integrated terminal.
```bash {"excludeFromRunAll":"true","id":"01J5VC1KTJBR22WEDNT2EWEW9Q","name":"vm"}
# Purge old known host fingerprints
task ssh-clean

# Enable the VM instance
pulumi config set --path vm.enabled true

Expand All @@ -114,7 +117,7 @@ ssh -p 30590 -i ~/.ssh/id_rsa -o StrictHostKeyChecking=no kc2@localhost screenfe

Use `virtctl` to access the VM via SSH without a NodePort service.

```bash {"excludeFromRunAll":"true","id":"01J5VC1KTJBR22WEDNT6VNC5EK","name":"virtctl-ssh"}
```bash {"background":"true","excludeFromRunAll":"true","id":"01J5VC1KTJBR22WEDNT6VNC5EK","name":"virtctl-ssh"}
# SSH using virtctl
virtctl ssh kc2@ubuntu
```
Expand All @@ -123,7 +126,7 @@ virtctl ssh kc2@ubuntu

Use `virtctl` to access the serial console of the VM.

```bash {"excludeFromRunAll":"true","id":"01J5VC1KTJBR22WEDNT7BDRMAV","name":"virtctl-console"}
```bash {"background":"true","excludeFromRunAll":"true","id":"01J5VC1KTJBR22WEDNT7BDRMAV","name":"virtctl-console"}
# Serial console access
virtctl console ubuntu
```
Expand Down
9 changes: 8 additions & 1 deletion Taskfile.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -86,13 +86,20 @@ tasks:
- task: iac-cancel
- task: iac-clean

ssh-clean:
desc: "Clean up all local SSH known hosts."
cmds:
- ssh-keygen -f "/home/vscode/.ssh/known_hosts" -R "[127.0.0.1]:30590" 2>/dev/null || true
- ssh-keygen -f "/home/vscode/.ssh/known_hosts" -R "[localhost]:30590" 2>/dev/null || true
- ssh-keygen -f "/home/vscode/.ssh/kubevirt_known_hosts" -R "vmi/ubuntu.default" 2>/dev/null || true

clean-all:
desc: "Clean up all local Kargo resources."
deps:
- kubernetes-clean
- ssh-clean
- clean
cmds:
- ssh-keygen -f "/home/vscode/.ssh/known_hosts" -R "[127.0.0.1]:30590" 2>/dev/null || true
- rm -rf .talos/manifest/* .kube/config .ssh/known_hosts 2>/dev/null || true
- rm ${HOME}/.pulumi ${HOME}/.kube ${HOME}/.talos 2>/dev/null || true

Expand Down

0 comments on commit 64e8eae

Please sign in to comment.