mirror of
https://github.com/dhall-lang/dhall-kubernetes.git
synced 2024-11-03 21:05:47 +03:00
29 lines
761 B
Plaintext
29 lines
761 B
Plaintext
let Prelude =
|
|
../Prelude.dhall sha256:10db3c919c25e9046833df897a8ffe2701dc390fa0893d958c3430524be5a43e
|
|
|
|
let kubernetes =
|
|
../package.dhall sha256:d541487f153cee9890ebe4145bae8899e91cd81e2f4a5b65b06dfc325fb1ae7e
|
|
|
|
let spec =
|
|
{ selector = Some (toMap { app = "nginx" })
|
|
, type = Some "NodePort"
|
|
, ports = Some
|
|
[ kubernetes.ServicePort::{
|
|
, targetPort = Some (kubernetes.IntOrString.Int 80)
|
|
, port = 80
|
|
}
|
|
]
|
|
}
|
|
|
|
let service
|
|
: kubernetes.Service.Type
|
|
= kubernetes.Service::{
|
|
, metadata = kubernetes.ObjectMeta::{
|
|
, name = Some "nginx"
|
|
, labels = Some (toMap { app = "nginx" })
|
|
}
|
|
, spec = Some kubernetes.ServiceSpec::spec
|
|
}
|
|
|
|
in service
|