mirror of
https://github.com/TECHNOFAB11/kubenix.git
synced 2025-12-12 16:10:05 +01:00
first commit
This commit is contained in:
commit
cbf84e25a5
22 changed files with 131008 additions and 0 deletions
23
examples/simple/configuration.nix
Normal file
23
examples/simple/configuration.nix
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
{
|
||||
kubernetes.resources.deployments.nginx = {
|
||||
metadata.labels.app = "nginx";
|
||||
spec = {
|
||||
replicas = 3;
|
||||
selector.matchLabels.app = "nginx";
|
||||
template = {
|
||||
metadata.labels.app = "nginx";
|
||||
spec.containers.nginx = {
|
||||
name = "nginx";
|
||||
image = "nginx:1.7.9";
|
||||
ports."80" = {};
|
||||
resources.requests.cpu = "100m";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
kubernetes.resources.services.nginx = {
|
||||
spec.selector.app = "nginx";
|
||||
spec.ports."80".targetPort = 80;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue