File tree Expand file tree Collapse file tree 7 files changed +45
-8
lines changed
kubernetes/base/quickpizza Expand file tree Collapse file tree 7 files changed +45
-8
lines changed Original file line number Diff line number Diff line change 1+
2+ # service.name: 'catalog'
3+ # service.component: 'catalog', 'admin', 'users' (defined in app code)
14---
25apiVersion : apps/v1
36kind : Deployment
47metadata :
8+ # unique name for this deployment resource
59 name : quickpizza-catalog
610 labels : &catalogLabels
11+ # application name: groups all related resources
712 app.k8s.io/name : quickpizza
13+ # component type: defines the role of this deployment
814 app.kubernetes.io/component : service
15+ # instance id: used for service discovery and telemetry (service.name/service_name attrs)
916 app.kubernetes.io/instance : catalog
1017spec :
1118 replicas : 1
Original file line number Diff line number Diff line change 1+
2+ # service.name: 'config'
3+ # service.component: 'config' (defined in app code)
14---
25apiVersion : apps/v1
36kind : Deployment
47metadata :
8+ # unique name for this deployment resource
59 name : quickpizza-config
610 labels : &configLabels
11+ # application name: groups all related resources
712 app.k8s.io/name : quickpizza
13+ # component type: defines the role of this deployment
814 app.kubernetes.io/component : service
15+ # instance id: used for service discovery and telemetry (service.name/service_name attrs)
916 app.kubernetes.io/instance : config
1017spec :
1118 replicas : 1
Original file line number Diff line number Diff line change 1+
2+ # service.name: 'copy'
3+ # service.component: 'copy' (defined in app code)
14---
25apiVersion : apps/v1
36kind : Deployment
47metadata :
8+ # unique name for this deployment resource
59 name : quickpizza-copy
610 labels : ©Labels
11+ # application name: groups all related resources
712 app.k8s.io/name : quickpizza
13+ # component type: defines the role of this deployment
814 app.kubernetes.io/component : service
15+ # instance id: used for service discovery and telemetry (service.name/service_name attrs)
916 app.kubernetes.io/instance : copy
1017spec :
1118 replicas : 1
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ resources:
55 - catalog.yaml
66 - config.yaml
77 - copy.yaml
8- - frontend-gateway .yaml
8+ - public-api .yaml
99 - recommendations.yaml
1010 - ws.yaml
1111
Original file line number Diff line number Diff line change 1+
2+ # service.name: 'public-api'
3+ # service.component: 'frontend' and 'gateway' (defined in app code)
14---
25apiVersion : apps/v1
36kind : Deployment
47metadata :
58 # unique name for this deployment resource
6- name : quickpizza-frontend
7- labels : &frontendLabels
9+ name : quickpizza-public-api
10+ labels : &publicAPILabels
811 # application name: groups all related resources
912 app.k8s.io/name : quickpizza
1013 # component type: defines the role of this deployment
1114 app.kubernetes.io/component : service
1215 # instance id: used for service discovery and telemetry (service.name/service_name attrs)
13- app.kubernetes.io/instance : frontend-gateway
16+ app.kubernetes.io/instance : public-api
1417spec :
1518 replicas : 1
1619 selector :
17- matchLabels : *frontendLabels
20+ matchLabels : *publicAPILabels
1821 template :
1922 metadata :
20- labels : *frontendLabels
23+ labels : *publicAPILabels
2124 spec :
2225 restartPolicy : Always
2326 containers :
@@ -48,12 +51,12 @@ spec:
4851apiVersion : v1
4952kind : Service
5053metadata :
51- name : quickpizza-frontend
54+ name : quickpizza-public-api
5255spec :
5356 type : LoadBalancer
5457 selector :
5558 app.k8s.io/name : quickpizza
56- app.kubernetes.io/instance : frontend-gateway
59+ app.kubernetes.io/instance : public-api
5760 ports :
5861 - protocol : TCP
5962 port : 3333
Original file line number Diff line number Diff line change 1+
2+ # service.name: 'recommendations'
3+ # service.component: 'recommendations' (defined in app code)
14---
25apiVersion : apps/v1
36kind : Deployment
47metadata :
8+ # unique name for this deployment resource
59 name : quickpizza-recommendations
610 labels : &recommendationsLabels
11+ # application name: groups all related resources
712 app.k8s.io/name : quickpizza
13+ # component type: defines the role of this deployment
814 app.kubernetes.io/component : service
15+ # instance id: used for service discovery and telemetry (service.name/service_name attrs)
916 app.kubernetes.io/instance : recommendations
1017spec :
1118 replicas : 1
Original file line number Diff line number Diff line change 1+ # service.name: 'ws'
2+ # service.component: 'ws' (defined in app code)
13---
24apiVersion : apps/v1
35kind : Deployment
46metadata :
7+ # unique name for this deployment resource
58 name : quickpizza-ws
69 labels : &wsLabels
10+ # application name: groups all related resources
711 app.k8s.io/name : quickpizza
12+ # component type: defines the role of this deployment
813 app.kubernetes.io/component : service
14+ # instance id: used for service discovery and telemetry (service.name/service_name attrs)
915 app.kubernetes.io/instance : ws
1016spec :
1117 replicas : 1
You can’t perform that action at this time.
0 commit comments