Add slug label in more places
This makes it clearer which deploy/service/pod belong together
This commit is contained in:
parent
0231f3ff46
commit
00ddfc00b8
1 changed files with 8 additions and 4 deletions
|
@ -13,7 +13,8 @@ function (slug, sha) {
|
||||||
"kind": "Service",
|
"kind": "Service",
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"labels": {
|
"labels": {
|
||||||
"app": "symposion-app"
|
"app": "symposion-app",
|
||||||
|
"slug": slug
|
||||||
},
|
},
|
||||||
"name": app,
|
"name": app,
|
||||||
"namespace": namespace
|
"namespace": namespace
|
||||||
|
@ -27,7 +28,8 @@ function (slug, sha) {
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"selector": {
|
"selector": {
|
||||||
"app": "symposion-app"
|
"app": "symposion-app",
|
||||||
|
"slug": slug
|
||||||
},
|
},
|
||||||
"sessionAffinity": "None",
|
"sessionAffinity": "None",
|
||||||
"type": "ClusterIP"
|
"type": "ClusterIP"
|
||||||
|
@ -38,7 +40,8 @@ function (slug, sha) {
|
||||||
"kind": "Deployment",
|
"kind": "Deployment",
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"labels": {
|
"labels": {
|
||||||
"app": "symposion-app"
|
"app": "symposion-app",
|
||||||
|
"slug": slug,
|
||||||
},
|
},
|
||||||
"name": app,
|
"name": app,
|
||||||
"namespace": namespace
|
"namespace": namespace
|
||||||
|
@ -48,7 +51,8 @@ function (slug, sha) {
|
||||||
"revisionHistoryLimit": 1,
|
"revisionHistoryLimit": 1,
|
||||||
"selector": {
|
"selector": {
|
||||||
"matchLabels": {
|
"matchLabels": {
|
||||||
"app": "symposion-app"
|
"app": "symposion-app",
|
||||||
|
"slug": slug
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"strategy": {
|
"strategy": {
|
||||||
|
|
Loading…
Reference in a new issue