Skip to content

Commit

Permalink
add yaml definition of Kubernetes ressources
Browse files Browse the repository at this point in the history
  • Loading branch information
ili16 committed Dec 25, 2023
1 parent 4eb4edf commit 086ba44
Show file tree
Hide file tree
Showing 7 changed files with 130 additions and 0 deletions.
14 changes: 14 additions & 0 deletions Kubernetes/modernizer/modernizer-backend-pod.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
apiVersion: v1
kind: Pod
metadata:
name: modernizer-backend
labels:
app: modernizer-backend
spec:
containers:
- image: registry.tech4comp.dbis.rwth-aachen.de/rwthacis/modernizer:latest
command:
- "./main"
imagePullPolicy: Always
name: modernizer-backend
restartPolicy: Always
25 changes: 25 additions & 0 deletions Kubernetes/modernizer/modernizer-ingress.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
kind: Ingress
apiVersion: networking.k8s.io/v1
metadata:
name: modernizer-ingress2
namespace: ba-kovacevic
spec:
tls:
- hosts:
- modernizer.milki-psy.dbis.rwth-aachen.de
secretName: nginx-tls
rules:
- host: modernizer.milki-psy.dbis.rwth-aachen.de
http:
paths:
- path: /(.*)
pathType: Prefix
backend:
service:
name: modernizer-service
port:
number: 443
status:
loadBalancer:
ingress:
- ip: 137.226.232.176
17 changes: 17 additions & 0 deletions Kubernetes/modernizer/modernizer-service.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---

# nginx-service.yaml

apiVersion: v1
kind: Service
metadata:
name: modernizer-service
spec:
selector:
app: nginx
ports:
- name: https
protocol: TCP
port: 443
targetPort: 80 # Expose port 443
type: ClusterIP
19 changes: 19 additions & 0 deletions Kubernetes/ollama/ollama-chatbot-deployment.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# ollama-chatbot-deployment.yaml

apiVersion: apps/v1
kind: Deployment
metadata:
name: ollama-chatbot-deployment
spec:
replicas: 1
selector:
matchLabels:
app: ollama-chatbot
template:
metadata:
labels:
app: ollama-chatbot
spec:
containers:
- name: ollama-chatbot
image: ghcr.io/ivanfioravanti/chatbot-ollama:main
24 changes: 24 additions & 0 deletions Kubernetes/ollama/ollama-deployment.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# ollama-deployment.yaml

apiVersion: apps/v1
kind: Deployment
metadata:
name: ollama-deployment
spec:
replicas: 1
selector:
matchLabels:
app: ollama
template:
metadata:
labels:
app: ollama
spec:
containers:
- name: ollama
image: ollama/ollama
resources:
limits:
nvidia.com/gpu: "1"
ports:
- containerPort: 11434
16 changes: 16 additions & 0 deletions Kubernetes/ollama/ollama-service.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---

# ollama-service.yaml

apiVersion: v1
kind: Service
metadata:
name: ollama-service
spec:
selector:
app: ollama
ports:
- protocol: TCP
port: 443
targetPort: 11434
type: ClusterIP
15 changes: 15 additions & 0 deletions Kubernetes/ubuntu.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
apiVersion: v1
kind: Pod
metadata:
name: ubuntu
labels:
app: ubuntu
spec:
containers:
- image: ubuntu
command:
- "sleep"
- "604800"
imagePullPolicy: IfNotPresent
name: ubuntu
restartPolicy: Always

0 comments on commit 086ba44

Please sign in to comment.