@@ -325,7 +325,10 @@ func (c *Controller) createOrUpdateDeployment(ctx context.Context, application *
325
325
podTemplateSpecObject := coreV1.PodTemplateSpec {
326
326
ObjectMeta : metav1.ObjectMeta {
327
327
Labels : map [string ]string {
328
- "microservice" : name ,
328
+ "app" : name ,
329
+ "app.kubernetes.io/instance" : name ,
330
+ "app.kubernetes.io/part-of" : name ,
331
+ "app.kubernetes.io/managed-by" : c .name ,
329
332
},
330
333
},
331
334
@@ -365,6 +368,7 @@ func (c *Controller) createOrUpdateDeployment(ctx context.Context, application *
365
368
Namespace : namespace ,
366
369
Labels : map [string ]string {
367
370
"app" : name ,
371
+ "app.kubernetes.io/instance" : name ,
368
372
"app.kubernetes.io/part-of" : name ,
369
373
"app.kubernetes.io/managed-by" : c .name ,
370
374
},
@@ -389,7 +393,7 @@ func (c *Controller) createOrUpdateDeployment(ctx context.Context, application *
389
393
390
394
Selector : & metav1.LabelSelector {
391
395
MatchLabels : map [string ]string {
392
- "microservice " : name ,
396
+ "app " : name ,
393
397
},
394
398
},
395
399
@@ -425,6 +429,8 @@ func (c *Controller) createOrUpdateHpa(ctx context.Context, application *v1alpha
425
429
Name : name ,
426
430
Namespace : namespace ,
427
431
Labels : map [string ]string {
432
+ "app" : name ,
433
+ "app.kubernetes.io/instance" : name ,
428
434
"app.kubernetes.io/part-of" : name ,
429
435
"app.kubernetes.io/managed-by" : c .name ,
430
436
},
@@ -498,14 +504,16 @@ func (c *Controller) createOrUpdateService(ctx context.Context, application *v1a
498
504
Name : name ,
499
505
Namespace : namespace ,
500
506
Labels : map [string ]string {
507
+ "app" : name ,
508
+ "app.kubernetes.io/instance" : name ,
501
509
"app.kubernetes.io/part-of" : name ,
502
510
"app.kubernetes.io/managed-by" : c .name ,
503
511
},
504
512
},
505
513
506
514
Spec : coreV1.ServiceSpec {
507
515
Selector : map [string ]string {
508
- "microservice " : name ,
516
+ "app " : name ,
509
517
},
510
518
511
519
Ports : servicePorts ,
0 commit comments