-
Notifications
You must be signed in to change notification settings - Fork 0
/
deployment.yml
71 lines (71 loc) · 1.48 KB
/
deployment.yml
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
67
68
69
70
71
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
io.kompose.service: academy
name: academy
namespace: schnaq-academy
spec:
replicas: 1
selector:
matchLabels:
io.kompose.service: academy
strategy: { }
template:
metadata:
labels:
io.kompose.service: academy
spec:
imagePullSecrets:
- name: gitlab-cs
containers:
- image: gitlab.cs.uni-duesseldorf.de:5001/dialogo/projects/academy
name: academy
resources:
requests:
memory: "256Mi"
cpu: "0.5"
limits:
memory: "512Mi"
cpu: "1"
restartPolicy: Always
---
apiVersion: v1
kind: Service
metadata:
name: academy
namespace: schnaq-academy
spec:
type: LoadBalancer
ports:
- port: 80
targetPort: 80
protocol: TCP
selector:
io.kompose.service: academy
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: academy-ingress
namespace: schnaq-academy
annotations:
nginx.ingress.kubernetes.io/from-to-www-redirect: "true"
cert-manager.io/cluster-issuer: "letsencrypt-production"
spec:
tls:
- hosts:
- academy.schnaq.com
- academy.schnaq.de
secretName: schnaq-academy-com
rules:
- host: academy.schnaq.com
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: academy
port:
number: 80