mirror of
https://github.com/dhall-lang/dhall-kubernetes.git
synced 2024-08-15 00:40:41 +03:00
Fixes https://github.com/dhall-lang/dhall-kubernetes/issues/191 … by no longer mistakenly preferring `v1` or `v2beta{1,2}` over all other versions
30 lines
945 B
Plaintext
30 lines
945 B
Plaintext
let kubernetes =
|
|
../package.dhall
|
|
sha256:263ee915ef545f2d771fdcd5cfa4fbb7f62772a861b5c197f998e5b71219112c
|
|
|
|
let deployment =
|
|
kubernetes.Deployment::{
|
|
, metadata = kubernetes.ObjectMeta::{ name = Some "nginx" }
|
|
, spec = Some kubernetes.DeploymentSpec::{
|
|
, selector = kubernetes.LabelSelector::{
|
|
, matchLabels = Some (toMap { name = "nginx" })
|
|
}
|
|
, replicas = Some 2
|
|
, template = kubernetes.PodTemplateSpec::{
|
|
, metadata = Some kubernetes.ObjectMeta::{ name = Some "nginx" }
|
|
, spec = Some kubernetes.PodSpec::{
|
|
, containers =
|
|
[ kubernetes.Container::{
|
|
, name = "nginx"
|
|
, image = Some "nginx:1.15.3"
|
|
, ports = Some
|
|
[ kubernetes.ContainerPort::{ containerPort = 80 } ]
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
in deployment
|