Comments (4)
How about using kubenix submodule for grouping resources into different namespaces? You should be able to set a default namespace per submodule instance. I can create an example of how to do this tomorrow.
from kubenix.
Yeah, that could work! Still learning the ins and outs of (sub-)modules so would definitely appreciate an example 👍
from kubenix.
Usage is here: https://github.com/matejc/k8s-cluster/blob/dcf29d8e6a94d4ce2fce7250e92a66f6afc501d0/flake.nix#L44
This whole block can be duplicated with different key and eg: namespace
Then set the namespace and other stuff like so: https://github.com/matejc/k8s-cluster/blob/dcf29d8e6a94d4ce2fce7250e92a66f6afc501d0/modules/jitsi.nix#L54
from kubenix.
Thanks @matejc! For some reason I'd missed your comment here.
Will take a look at your config (along with the docs MR Adrian submitted) and give it a go. I'll leave this issue open for now but will close it if I don't run into any trouble.
from kubenix.
Related Issues (20)
- Can't evaluate `.#generate-k8s`: `invalid regular expression` HOT 3
- the order of `initContainers` is not preserved
- reevaluate CLI design HOT 10
- Example Deployment in docs does not work HOT 2
- document some deployment options
- Trouble with custom resources within helm charts HOT 5
- Remove assumption that custom resources have a spec field HOT 1
- Validate custom resources without having to manually define modules for them HOT 3
- Provide namespaced module by default HOT 1
- Search box in docs not working HOT 1
- ConfigMap data keys with leading underscore get removed
- kubeconfig: unbound variable HOT 5
- Deprecated: kubectl apply will no longer prune non-namespaced resources by default HOT 1
- Unable to remove the last defined resource with bulit-in deploy tool
- Generated kubernetes module requires `protocol` in `Container.ports` which is not required by spec HOT 2
- Helm `lookup`s are not executed HOT 2
- Kubenix-managed namespaces HOT 10
- error: undefined variable 'system' when trying to initialise example with nix v2.21.0
- kubenix script has no shebang, leading to "Exec format error" HOT 2
- Vals errors should abort kubectl apply
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kubenix.