-
Notifications
You must be signed in to change notification settings - Fork 0
/
tag-der-technik.k8s.yaml
66 lines (64 loc) · 1.33 KB
/
tag-der-technik.k8s.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
apiVersion: apps/v1
kind: Deployment
metadata:
name: tag-der-technik
namespace: webisservices
spec:
selector:
matchLabels:
app: tag-der-technik
replicas: 1
template:
metadata:
labels:
app: tag-der-technik
spec:
containers:
- name: tag-der-technik
image: ghcr.io/webis-de/seminar-tag-der-technik:latest
imagePullPolicy: Always
resources:
requests:
cpu: 3
memory: 2Gi
limits:
cpu: 4
memory: 3Gi
ports:
- containerPort: 8080
hostPort: 80
name: ui-internal
---
apiVersion: v1
kind: Service
metadata:
name: tag-der-technik
namespace: webisservices
spec:
selector:
app: tag-der-technik
ports:
- port: 80
protocol: TCP
targetPort: ui-internal
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: tag-der-technik
namespace: webisservices
annotations:
nginx.ingress.kubernetes.io/backend-protocol: "HTTP"
spec:
ingressClassName: "nginx-external"
rules:
- host: tdt01.web.webis.de
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: tag-der-technik
port:
name: ui-internal