{"id":13757102,"url":"https://github.com/chanwit/vkignite","last_synced_at":"2025-03-18T18:32:34.959Z","repository":{"id":64302484,"uuid":"197219832","full_name":"chanwit/vkignite","owner":"chanwit","description":null,"archived":false,"fork":false,"pushed_at":"2019-08-04T15:15:28.000Z","size":21,"stargazers_count":31,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-10-11T00:31:18.087Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/chanwit.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-07-16T15:26:01.000Z","updated_at":"2023-07-04T16:45:16.000Z","dependencies_parsed_at":"2023-01-15T09:45:21.971Z","dependency_job_id":null,"html_url":"https://github.com/chanwit/vkignite","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chanwit%2Fvkignite","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chanwit%2Fvkignite/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chanwit%2Fvkignite/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chanwit%2Fvkignite/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chanwit","download_url":"https://codeload.github.com/chanwit/vkignite/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":221715795,"owners_count":16868620,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-03T12:00:22.160Z","updated_at":"2024-10-27T18:13:53.770Z","avatar_url":"https://github.com/chanwit.png","language":"Go","funding_links":[],"categories":["Uncategorized"],"sub_categories":["Uncategorized"],"readme":"# vkignite\n\n[![asciicast](https://asciinema.org/a/260804.svg)](https://asciinema.org/a/260804)\n\n## Prepare K8s\n\nHow to run Kubernetes with Ignite support:\n\n`$ docker-compose -f vkignite.yaml up`\n\nWait until `kubeconfig.yaml` is written into the current dir.\n\n`$ export KUBECONFIG=$PWD/kubeconfig.yaml`\n\nRun get nodes and you'll see:\n\n```\n$ kubectl get nodes\nNAME     STATUS   ROLES   AGE     VERSION\nignite   Ready    agent   5h12m   v1.14.3-ignite-f5516fe-dev\n```\n\n## Define a Virtual Machine\nApply the Custom Resource Definition to Kubernetes to allow VM creation via `kubectl`.\n\n```\n$ kubectl apply -f crd/vm_crd.yaml\n```\nThen open an editor to define a VM with the above CRD.\n\n```\napiVersion: chanwit.github.com/v1alpha1\nkind: VirtualMachine\nmetadata:\n  name: my-vm\nspec:\n  kernel: weaveworks/ignite-kernel:4.19.47\n  image: weaveworks/ignite-ubuntu:latest\n  cpus: 1\n  memory: 512M\n  diskSize: 1GB\n```\nsave it as `examples/my-vm.yaml`.\nThe `VirtualMachine` CRD is the simplified counter-part of Ignite's `v1alpha1` config.\n\n## Provision the VM\n\nWe then could be able to create a VM by:\n```\n$ kubectl apply -f examples/my-vm.yaml\n```\n\nTo see that the VM is already provisioned:\n```\n$ kubectl get vm,pod\nNAME                                      CPUS   MEMORY   SIZE   STATE\nvirtualmachine.chanwit.github.com/my-vm   1      512M     1GB    Running\n\nNAME        READY   STATUS    RESTARTS   AGE\npod/my-vm   1/1     Running   0          12m\n```\n\nThen you now will be able to use `sudo ignite ssh default__my-vm` to get into the VM.\nThe VM name is in the `{namespace}__{name}` pattern.\n\nTo delete the VM,\n```\n$ kubectl delete vm my-vm\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchanwit%2Fvkignite","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchanwit%2Fvkignite","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchanwit%2Fvkignite/lists"}