Add slug label in more places

This makes it clearer which deploy/service/pod belong together
This commit is contained in:
James Polley 2018-06-24 23:19:19 +10:00
parent 0231f3ff46
commit 00ddfc00b8

View file

@ -13,7 +13,8 @@ function (slug, sha) {
"kind": "Service",
"metadata": {
"labels": {
"app": "symposion-app"
"app": "symposion-app",
"slug": slug
},
"name": app,
"namespace": namespace
@ -27,7 +28,8 @@ function (slug, sha) {
}
],
"selector": {
"app": "symposion-app"
"app": "symposion-app",
"slug": slug
},
"sessionAffinity": "None",
"type": "ClusterIP"
@ -38,7 +40,8 @@ function (slug, sha) {
"kind": "Deployment",
"metadata": {
"labels": {
"app": "symposion-app"
"app": "symposion-app",
"slug": slug,
},
"name": app,
"namespace": namespace
@ -48,7 +51,8 @@ function (slug, sha) {
"revisionHistoryLimit": 1,
"selector": {
"matchLabels": {
"app": "symposion-app"
"app": "symposion-app",
"slug": slug
}
},
"strategy": {