mirror of
https://github.com/dhall-lang/dhall-kubernetes.git
synced 2024-11-03 21:05:47 +03:00
7af2ab5345
* Also update to the latest version of `dhall` * Also fix `./scripts/generate.sh` to generate the `schemas*` files
34 lines
1.1 KiB
Plaintext
34 lines
1.1 KiB
Plaintext
let kubernetes =
|
|
../schemas.dhall sha256:9704063d1e2d17050cb18afae199a24f4cd1264e6c8e696ca94781309e213785
|
|
|
|
let deployment =
|
|
kubernetes.Deployment::{
|
|
, metadata = kubernetes.ObjectMeta::{ name = "nginx" }
|
|
, spec =
|
|
Some
|
|
kubernetes.DeploymentSpec::{
|
|
, replicas = Some 2
|
|
, template =
|
|
kubernetes.PodTemplateSpec::{
|
|
, metadata = kubernetes.ObjectMeta::{ name = "nginx" }
|
|
, spec =
|
|
Some
|
|
kubernetes.PodSpec::{
|
|
, containers =
|
|
[ kubernetes.Container::{
|
|
, name = "nginx"
|
|
, image = Some "nginx:1.15.3"
|
|
, ports =
|
|
[ kubernetes.ContainerPort::{
|
|
, containerPort = 80
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
in deployment
|