Skip to content

Commit 5338dfd

Browse files
committed
Rename frontend-gateway to public-api service name
1 parent b0244db commit 5338dfd

File tree

7 files changed

+45
-8
lines changed

7 files changed

+45
-8
lines changed

kubernetes/base/quickpizza/catalog.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,18 @@
1+
2+
# service.name: 'catalog'
3+
# service.component: 'catalog', 'admin', 'users' (defined in app code)
14
---
25
apiVersion: apps/v1
36
kind: Deployment
47
metadata:
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
1017
spec:
1118
replicas: 1

kubernetes/base/quickpizza/config.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,18 @@
1+
2+
# service.name: 'config'
3+
# service.component: 'config' (defined in app code)
14
---
25
apiVersion: apps/v1
36
kind: Deployment
47
metadata:
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
1017
spec:
1118
replicas: 1

kubernetes/base/quickpizza/copy.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,18 @@
1+
2+
# service.name: 'copy'
3+
# service.component: 'copy' (defined in app code)
14
---
25
apiVersion: apps/v1
36
kind: Deployment
47
metadata:
8+
# unique name for this deployment resource
59
name: quickpizza-copy
610
labels: &copyLabels
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
1017
spec:
1118
replicas: 1

kubernetes/base/quickpizza/kustomization.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

kubernetes/base/quickpizza/frontend-gateway.yaml renamed to kubernetes/base/quickpizza/public-api.yaml

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,26 @@
1+
2+
# service.name: 'public-api'
3+
# service.component: 'frontend' and 'gateway' (defined in app code)
14
---
25
apiVersion: apps/v1
36
kind: Deployment
47
metadata:
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
1417
spec:
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:
4851
apiVersion: v1
4952
kind: Service
5053
metadata:
51-
name: quickpizza-frontend
54+
name: quickpizza-public-api
5255
spec:
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

kubernetes/base/quickpizza/recommendations.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,18 @@
1+
2+
# service.name: 'recommendations'
3+
# service.component: 'recommendations' (defined in app code)
14
---
25
apiVersion: apps/v1
36
kind: Deployment
47
metadata:
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
1017
spec:
1118
replicas: 1

kubernetes/base/quickpizza/ws.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,17 @@
1+
# service.name: 'ws'
2+
# service.component: 'ws' (defined in app code)
13
---
24
apiVersion: apps/v1
35
kind: Deployment
46
metadata:
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
1016
spec:
1117
replicas: 1

0 commit comments

Comments
 (0)