Skip to content

Commit

Permalink
Merge pull request #2 from yuriihavrylko/feature/kube
Browse files Browse the repository at this point in the history
L2H2T3: Kubernetes config implementatation
  • Loading branch information
yuriihavrylko authored Jan 3, 2024
2 parents 0c2117b + bf916b0 commit dce806c
Show file tree
Hide file tree
Showing 6 changed files with 59 additions and 0 deletions.
17 changes: 17 additions & 0 deletions deployment/deployment.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: deployments-app-web
spec:
replicas: 2
selector:
matchLabels:
app: deployments-app-web
template:
metadata:
labels:
app: deployments-app-web
spec:
containers:
- name: app-web
image: yuriihavrylko/prjctr:latest
12 changes: 12 additions & 0 deletions deployment/job.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
apiVersion: batch/v1
kind: Job
metadata:
name: job-app
spec:
parallelism: 5
template:
spec:
restartPolicy: Never
containers:
- image: yuriihavrylko/prjctr:latest
name: job-app
8 changes: 8 additions & 0 deletions deployment/pod-app.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
kind: Pod
apiVersion: v1
metadata:
name: pod-app-ml
spec:
containers:
- name: web-app
image: yuriihavrylko/prjctr:latest
8 changes: 8 additions & 0 deletions deployment/pod-job.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
kind: Pod
apiVersion: v1
metadata:
name: pod-job-ml
spec:
containers:
- name: job-app
image: yuriihavrylko/job:latest
12 changes: 12 additions & 0 deletions deployment/service.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
apiVersion: v1
kind: Service
metadata:
name: deployments-app-web
labels:
app: deployments-app-web
spec:
ports:
- port: 8080
protocol: TCP
selector:
app: deployments-app-web
2 changes: 2 additions & 0 deletions job/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
FROM python:3.12-slim
CMD python -c "import time; time.sleep(10); print(f'F1 = {0.95}')"

0 comments on commit dce806c

Please sign in to comment.