{"id":18690484,"url":"https://github.com/kvaps/deckhouse-in-deckhouse","last_synced_at":"2025-10-30T14:42:12.932Z","repository":{"id":80915924,"uuid":"604288817","full_name":"kvaps/Deckhouse-in-Deckhouse","owner":"kvaps","description":"Run Deckhouse in Deckhouse using virtualization module","archived":false,"fork":false,"pushed_at":"2023-03-12T18:47:26.000Z","size":9,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-19T12:39:09.129Z","etag":null,"topics":["deckhouse","kubernetes","virtualization"],"latest_commit_sha":null,"homepage":"","language":"Jsonnet","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kvaps.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-02-20T18:31:58.000Z","updated_at":"2023-08-28T20:21:01.000Z","dependencies_parsed_at":null,"dependency_job_id":"76ef950e-d617-4f1e-bce6-bd11c716dbd1","html_url":"https://github.com/kvaps/Deckhouse-in-Deckhouse","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kvaps%2FDeckhouse-in-Deckhouse","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kvaps%2FDeckhouse-in-Deckhouse/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kvaps%2FDeckhouse-in-Deckhouse/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kvaps%2FDeckhouse-in-Deckhouse/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kvaps","download_url":"https://codeload.github.com/kvaps/Deckhouse-in-Deckhouse/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kvaps%2FDeckhouse-in-Deckhouse/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259123889,"owners_count":22808876,"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":["deckhouse","kubernetes","virtualization"],"created_at":"2024-11-07T10:47:42.752Z","updated_at":"2025-10-30T14:42:12.835Z","avatar_url":"https://github.com/kvaps.png","language":"Jsonnet","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Deckhouse-in-Deckhouse\n\nRun Deckhouse in Deckhouse using virtualization module\n\n## Quick Start\n\n### Preparation\n\n[Setup Deckhouse](https://deckhouse.io/gs/bm/step2.html) with [cni-cilium], enable [virtualization] and [linstor] modules:\n\n[cni-cilium]: https://deckhouse.io/documentation/latest/modules/021-cni-cilium/\n[virtualization]: https://deckhouse.io/documentation/latest/modules/490-virtualization/\n[linstor]: https://deckhouse.io/documentation/latest/modules/041-linstor/\n\n```yaml\n---\napiVersion: deckhouse.io/v1alpha1\nkind: ModuleConfig\nmetadata:\n  name: cni-cilium\nspec:\n  enabled: true\n  settings:\n    # Choose one:\n    # - without network encapsulation (direct routes):\n    #     createNodeRoutes: true\n    # - with network encapsulation (vxlan tunnel):\n    #     tunnelMode: VXLAN\n  version: 1\n---\napiVersion: deckhouse.io/v1alpha1\nkind: ModuleConfig\nmetadata:\n  name: virtualization\nspec:\n  enabled: true\n  settings:\n    vmCIDRs:\n    - 10.10.10.0/24\n  version: 1\n---\napiVersion: deckhouse.io/v1alpha1\nkind: ModuleConfig\nmetadata:\n  name: linstor\nspec:\n  enabled: true\n  version: 1\n```\n\nConfigure storage-pools as referenced in [linstor module configuration](https://deckhouse.io/documentation/latest/modules/041-linstor/configuration.html)\n\n### Usage\n\nSetup jsonnet (version v0.18.0 is required):\n\n```bash\n# From repository of your OS\nbrew install jsonnet\n# From github (alternative go version)\ncurl -sSL https://github.com/google/go-jsonnet/releases/download/v0.19.1/go-jsonnet_0.19.1_Linux_x86_64.tar.gz | tar -C /usr/local/bin/ -xzvf- jsonnet jsonnetfmt\n```\n\nClone this repo:\n\n```bash\ngit clone https://github.com/kvaps/Deckhouse-in-Deckhouse\n```\n\nExample cluster is described in [`example.jsonnet`](example.jsonnet) file.\n\nIt consists of:\n- 3 masters\n- 2 system\n- 1 frontend\n- 2 worker nodes  \n\nAdditionaly one bootstrap vm will be used for first time cluster initiation. It can be removed after first master is bootstrapped.\n\nFeel free to make your own copy and update any settings in it.  \nRefer jsonnet documentation to see [examples](https://jsonnet.org/), and [standard library](https://jsonnet.org/ref/stdlib.html)\n\nRun following commands to render the information:\n```bash\n# List all virtual machines going to be deployed\njsonnet example.jsonnet | jq .vms\n\n# List all node groups going to be added in new cluster\njsonnet example.jsonnet | jq .ngs\n\n# Print deckhouse config file\njsonnet example.jsonnet | jq -r .config\n\n# Print bootstrap commands which includes everything above\njsonnet example.jsonnet | jq -r .script\n```\n\nSSH on some node of your cluster, with passing trough your ssh-agent (for passwordless authentication)\n\n```bash\nssh -A user@10.22.33.44\n```\nand run those commands\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkvaps%2Fdeckhouse-in-deckhouse","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkvaps%2Fdeckhouse-in-deckhouse","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkvaps%2Fdeckhouse-in-deckhouse/lists"}