https://github.com/duologic/vcluster-libsonnet
Jsonnet library for vcluster.
https://github.com/duologic/vcluster-libsonnet
jsonnet jsonnet-lib
Last synced: about 1 year ago
JSON representation
Jsonnet library for vcluster.
- Host: GitHub
- URL: https://github.com/duologic/vcluster-libsonnet
- Owner: Duologic
- Created: 2021-05-20T07:20:18.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2021-05-22T20:17:06.000Z (about 5 years ago)
- Last Synced: 2025-01-27T10:43:28.949Z (over 1 year ago)
- Topics: jsonnet, jsonnet-lib
- Language: Jsonnet
- Homepage:
- Size: 3.91 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# vcluster jsonnet library
Jsonnet library for [vcluster](https://github.com/loft-sh/vcluster) based on their [kubectl
manifests](https://github.com/loft-sh/vcluster/#2-create-a-vcluster).
## Usage
Install it with jsonnet-bundler:
```console
jb install github.com/duologic/vcluster-libsonnet
```
Import into your jsonnet:
```jsonnet
// environments/default/main.jsonnet
local vcluster = import 'github.com/duologic/vcluster-libsonnet/vcluster/main.libsonnet';
{
vcluster:
vcluster(
name='vcluster',
namespace='my-vcluster-ns',
service_cidr='10.96.0.0/12', # Important: make sure this matches with the Service CIDR of the host cluster.
),
}
```