Skip to content

Commit 9950565

Browse files
committed
Add new Kubernetes service and deployment configurations for orders, products, identities, and notifications; remove outdated service definitions
1 parent 23de798 commit 9950565

19 files changed

+76
-319
lines changed

src/apps/k8s/helm/azure-pipelines/manifests/deployment-webapi.yml

Lines changed: 0 additions & 153 deletions
This file was deleted.

src/apps/k8s/helm/azure-pipelines/manifests/deployment-worker.yml

Lines changed: 0 additions & 41 deletions
This file was deleted.

src/apps/k8s/helm/azure-pipelines/manifests/service.yml

Lines changed: 0 additions & 20 deletions
This file was deleted.

src/apps/k8s/helm/gnxchart/templates/apigateway.yml renamed to src/apps/k8s/helm/gnxchart/templates/apigateway-deployment.yaml

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
# apigateway.yml
1+
# apigateway-deployment.yaml
22
apiVersion: apps/v1
33
kind: Deployment
4-
# apigateway-deployment.yml
54
metadata:
65
namespace: gnx-apps-ns
76
name: apigateway
@@ -66,19 +65,3 @@ spec:
6665
limits:
6766
cpu: 200m
6867
memory: 400Mi
69-
70-
---
71-
# apigateway-service.yml
72-
apiVersion: v1
73-
kind: Service
74-
metadata:
75-
namespace: gnx-apps-ns
76-
name: apigateway-svc
77-
spec:
78-
selector:
79-
app: apigateway # Select pods with this label
80-
ports:
81-
- protocol: TCP
82-
port: 80 # Port the service exposes
83-
targetPort: 8080 # Port the container exposes
84-
type: ClusterIP # Expose the service internally
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# apigateway-service.yaml
2+
apiVersion: v1
3+
kind: Service
4+
metadata:
5+
namespace: gnx-apps-ns
6+
name: apigateway-svc
7+
spec:
8+
selector:
9+
app: apigateway # Select pods with this label
10+
ports:
11+
- protocol: TCP
12+
port: 80 # Port the service exposes
13+
targetPort: 8080 # Port the container exposes
14+
type: ClusterIP # Expose the service internally

src/apps/k8s/identities.yml renamed to src/apps/k8s/helm/gnxchart/templates/identities-deployment.yaml

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
# identities.yml
1+
# identities-deployment.yaml
22
apiVersion: apps/v1
33
kind: Deployment
4-
# identities-deployment.yml
54
metadata:
65
namespace: gnx-apps-ns
76
name: identities
@@ -57,19 +56,3 @@ spec:
5756
limits:
5857
cpu: 200m
5958
memory: 400Mi
60-
61-
---
62-
# identities-service.yml
63-
apiVersion: v1
64-
kind: Service
65-
metadata:
66-
namespace: gnx-apps-ns
67-
name: identities-svc
68-
spec:
69-
selector:
70-
app: identities # Select pods with this label
71-
ports:
72-
- protocol: TCP
73-
port: 80 # Port the service exposes
74-
targetPort: 8080 # Port the container exposes
75-
type: ClusterIP # Expose the service internally
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# identities-service.yaml
2+
apiVersion: v1
3+
kind: Service
4+
metadata:
5+
namespace: gnx-apps-ns
6+
name: identities-svc
7+
spec:
8+
selector:
9+
app: identities # Select pods with this label
10+
ports:
11+
- protocol: TCP
12+
port: 80 # Port the service exposes
13+
targetPort: 8080 # Port the container exposes
14+
type: ClusterIP # Expose the service internally

src/apps/k8s/notifications.yml renamed to src/apps/k8s/helm/gnxchart/templates/notifications-deployment.yaml

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
# notifications.yml
1+
# notifications-deployment.yaml
22
apiVersion: apps/v1
33
kind: Deployment
4-
# notifications-deployment.yml
54
metadata:
65
namespace: gnx-apps-ns
76
name: notifications
@@ -57,19 +56,3 @@ spec:
5756
limits:
5857
cpu: 100m
5958
memory: 200Mi
60-
61-
---
62-
# notifications-service.yml
63-
apiVersion: v1
64-
kind: Service
65-
metadata:
66-
namespace: gnx-apps-ns
67-
name: notifications-svc
68-
spec:
69-
selector:
70-
app: notifications # Select pods with this label
71-
ports:
72-
- protocol: TCP
73-
port: 80 # Port the service exposes
74-
targetPort: 8080 # Port the container exposes
75-
type: ClusterIP # Expose the service internally
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# notifications-service.yaml
2+
apiVersion: v1
3+
kind: Service
4+
metadata:
5+
namespace: gnx-apps-ns
6+
name: notifications-svc
7+
spec:
8+
selector:
9+
app: notifications # Select pods with this label
10+
ports:
11+
- protocol: TCP
12+
port: 80 # Port the service exposes
13+
targetPort: 8080 # Port the container exposes
14+
type: ClusterIP # Expose the service internally

src/apps/k8s/orders.yml renamed to src/apps/k8s/helm/gnxchart/templates/orders-deployment.yml

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
# orders.yml
1+
# orders-deployment.yaml
22
apiVersion: apps/v1
33
kind: Deployment
4-
# orders-deployment.yml
54
metadata:
65
namespace: gnx-apps-ns
76
name: orders
@@ -59,19 +58,3 @@ spec:
5958
limits:
6059
cpu: 100m
6160
memory: 200Mi
62-
63-
---
64-
# orders-service.yml
65-
apiVersion: v1
66-
kind: Service
67-
metadata:
68-
namespace: gnx-apps-ns
69-
name: orders-svc
70-
spec:
71-
selector:
72-
app: orders # Select pods with this label
73-
ports:
74-
- protocol: TCP
75-
port: 80 # Port the service exposes
76-
targetPort: 8080 # Port the container exposes
77-
type: ClusterIP # Expose the service internally

0 commit comments

Comments
 (0)