k8s/http: add namespace
continuous-integration/drone/push Build is failing Details

This commit is contained in:
Cadey Ratio 2020-01-23 23:55:38 +00:00
parent b42e20a96c
commit ee6bbe7fca
3 changed files with 6 additions and 1 deletions

View File

@ -44,7 +44,10 @@ let spec =
let deployment =
λ(config : Config.Type)
→ kubernetes.Deployment::{
, metadata = kubernetes.ObjectMeta::{ name = config.name }
, metadata = kubernetes.ObjectMeta::{
, name = config.name
, namespace = "apps"
}
, spec = Some (spec config)
}

View File

@ -22,6 +22,7 @@ let metadata
, name = config.name
, labels = [ kv "app" config.name ]
, annotations = annotations config
, namespace = "apps"
}
let tls

View File

@ -35,6 +35,7 @@ let service
= λ(config : Config.Type)
→ kubernetes.Service::{
, metadata = kubernetes.ObjectMeta::{
, namespace = "apps"
, name = config.name
, labels = [ kv "app" config.name ]
, annotations = annotations config