mirror of
https://github.com/TECHNOFAB11/kubenix.git
synced 2025-12-12 16:10:05 +01:00
11 lines
333 B
Markdown
11 lines
333 B
Markdown
As a more complete example, let's define some high-level variables and then split our module out into another file as we start to grow.
|
|
|
|
{{< source "default.nix" >}}
|
|
|
|
Now we create a module which does a few related things:
|
|
|
|
- create a `Deployment`
|
|
- mount a `ConfigMap` into its pod
|
|
- define a `Service`
|
|
|
|
{{< source "module.nix" >}}
|