Skip to content

Commit

Permalink
Add configurations for webserver002, including frontend and backend d…
Browse files Browse the repository at this point in the history
…eployments, services, and ingress rules
  • Loading branch information
EliasDeHondt committed Jan 14, 2025
1 parent 1816e32 commit a8cc593
Show file tree
Hide file tree
Showing 3 changed files with 90 additions and 1 deletion.
56 changes: 56 additions & 0 deletions Supercluster/Cluster01/WebServer002/Deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,59 @@
# @since 24/11/2024 #
############################
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: webserver002-frontend-deployment
namespace: webserver002
spec:
replicas: 3
selector:
matchLabels:
app: webserver002
template:
metadata:
labels:
app: webserver002
spec:
containers:
- name: webserver002-frontend-container
image: "ghcr.io/eliasdh-com/applevelupbe-frontend:latest"
ports:
- containerPort: 8080
resources:
requests:
memory: "64Mi"
cpu: "250m"
limits:
memory: "128Mi"
cpu: "500m"
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: webserver002-backend-deployment
namespace: webserver002
spec:
replicas: 3
selector:
matchLabels:
app: webserver002
template:
metadata:
labels:
app: webserver002
spec:
containers:
- name: webserver002-backend-container
image: "ghcr.io/eliasdh-com/applevelupbe-backend:latest"
ports:
- containerPort: 3000
resources:
requests:
memory: "128Mi"
cpu: "500m"
limits:
memory: "256Mi"
cpu: "1"
---
9 changes: 8 additions & 1 deletion Supercluster/Cluster01/WebServer002/Ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,14 @@ spec:
pathType: Prefix
backend:
service:
name: webserver002-service
name: webserver002-frontend-service
port:
number: 80
- path: /api
pathType: Prefix
backend:
service:
name: webserver002-backend-service
port:
number: 3000
---
26 changes: 26 additions & 0 deletions Supercluster/Cluster01/WebServer002/Service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,29 @@
# @since 24/11/2024 #
############################
---
apiVersion: v1
kind: Service
metadata:
name: webserver002-frontend-service
namespace: webserver002
spec:
selector:
app: webserver002
ports:
- protocol: TCP
port: 80
targetPort: 8080
---
apiVersion: v1
kind: Service
metadata:
name: webserver002-backend-service
namespace: webserver002
spec:
selector:
app: webserver002
ports:
- protocol: TCP
port: 3000
targetPort: 3000
---

0 comments on commit a8cc593

Please sign in to comment.