-
Notifications
You must be signed in to change notification settings - Fork 3
/
manifest.yaml
85 lines (85 loc) · 1.86 KB
/
manifest.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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
apiVersion: apps/v1
kind: Deployment
metadata:
name: pycitysim-doc-frontend
namespace: web
labels:
app: pycitysim-doc-frontend
spec:
replicas: 1
selector:
matchLabels:
app: pycitysim-doc-frontend
strategy:
type: RollingUpdate
template:
metadata:
labels:
app: pycitysim-doc-frontend
spec:
automountServiceAccountToken: false
imagePullSecrets:
- name: docker-pull
containers:
- name: pycitysim-doc-frontend
image: registry.fiblab.net/sim/pycitysim:latest
imagePullPolicy: Always
ports:
- name: http
containerPort: 80
protocol: TCP
securityContext:
capabilities:
drop: ["NET_ADMIN", "SYS_ADMIN", "NET_RAW"]
readinessProbe:
tcpSocket:
port: 80
initialDelaySeconds: 5
periodSeconds: 10
livenessProbe:
tcpSocket:
port: 80
initialDelaySeconds: 15
periodSeconds: 20
resources:
requests:
cpu: 0.01m
memory: 100Mi
limits:
memory: 100Mi
---
apiVersion: v1
kind: Service
metadata:
name: pycitysim-doc-frontend
namespace: web
spec:
selector:
app: pycitysim-doc-frontend
ports:
- protocol: TCP
port: 80
targetPort: 80
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: pycitysim-doc-frontend
namespace: web
spec:
ingressClassName: nginx
rules:
- host: pycitysim.sim.fiblab.net
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: pycitysim-doc-frontend
port:
number: 80
tls:
- hosts:
- pycitysim.sim.fiblab.net
secretName: fiblab-tls