Skip to content

Commit

Permalink
HW#17
Browse files Browse the repository at this point in the history
  • Loading branch information
wursta committed Jun 19, 2024
1 parent 1f37916 commit 547bfb0
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 0 deletions.
22 changes: 22 additions & 0 deletions hw12_13_14_15_calendar/deployments/kube/deployment.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: calendar-api-deployment
namespace: calendar-app
labels:
app: calendar-api
spec:
selector:
matchLabels:
app: calendar-api
replicas: 1
template:
metadata:
labels:
app: calendar-api
spec:
containers:
- name: calendar-api
image: calendar:develop
ports:
- containerPort: 80
18 changes: 18 additions & 0 deletions hw12_13_14_15_calendar/deployments/kube/ingress.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: ingress
namespace: calendar-app
spec:
ingressClassName: nginx
rules:
- host: calendar-app.local
http:
paths:
- pathType: Prefix
path: "/"
backend:
service:
name: calendar-api-service
port:
number: 80
12 changes: 12 additions & 0 deletions hw12_13_14_15_calendar/deployments/kube/service.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
apiVersion: v1
kind: Service
metadata:
name: calendar-api-service
namespace: calendar-app
spec:
selector:
app: calendar-api
ports:
- protocol: TCP
port: 80
targetPort: 80

0 comments on commit 547bfb0

Please sign in to comment.