forked from hswaw/hscloud
personal/q3k/factorio: fix deploy selectors
Change-Id: Id116da7d2486f2a2a5206fe1f8b79283a545c4d2
This commit is contained in:
parent
59786c5dfa
commit
6e985c4530
1 changed files with 7 additions and 2 deletions
|
@ -35,7 +35,7 @@ local kube = import "../../../../kube/kube.libsonnet";
|
|||
metadata:: {
|
||||
namespace: cfg.namespace,
|
||||
labels: {
|
||||
"app.kubernetes.io/name": cfg.appName,
|
||||
"app.kubernetes.io/name": factorio.makeName("factorio"),
|
||||
"app.kubernetes.io/managed-by": "kubecfg",
|
||||
"app.kubernetes.io/component": "factorio",
|
||||
},
|
||||
|
@ -101,7 +101,12 @@ local kube = import "../../../../kube/kube.libsonnet";
|
|||
},
|
||||
},
|
||||
svc: kube.Service(factorio.makeName("factorio")) {
|
||||
metadata+: factorio.metadata,
|
||||
metadata+: factorio.metadata {
|
||||
// hack - have to keep existing naming scheme otherwise we'd lose addresses
|
||||
labels: {
|
||||
"app.kubernetes.io/name": cfg.appName,
|
||||
},
|
||||
},
|
||||
target_pod:: factorio.deployment.spec.template,
|
||||
spec+: {
|
||||
ports: [
|
||||
|
|
Loading…
Reference in a new issue