mirror of
https://github.com/dhall-lang/dhall-kubernetes.git
synced 2024-11-03 21:05:47 +03:00
2b6210de20
Includes changes from https://github.com/dhall-lang/dhall-haskell/pull/2126 and https://github.com/dhall-lang/dhall-haskell/pull/2137.
29 lines
939 B
Plaintext
29 lines
939 B
Plaintext
let kubernetes =
|
|
../package.dhall sha256:3ae2db78413714b7f7c5b2b3d92c78599a2be8e5371f567593eb0b3170c57656
|
|
|
|
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
|