-
Notifications
You must be signed in to change notification settings - Fork 9
/
kubernetes.yaml
81 lines (81 loc) · 1.58 KB
/
kubernetes.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
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: twitter2rss
spec:
replicas: 1
revisionHistoryLimit: 1
strategy:
type: RollingUpdate
selector:
matchLabels:
app: twitter2rss
template:
metadata:
labels:
app: twitter2rss
spec:
containers:
- image: n0madic/twitter2rss
imagePullPolicy: Always
name: twitter2rss
livenessProbe:
tcpSocket:
port: 8000
initialDelaySeconds: 5
periodSeconds: 30
env:
- name: TZ
value: "Europe/Kiev"
- name: CACHE_TTL
value: "60m"
- name: RATE_LIMIT
value: "4-H"
- name: RATE_LIMIT_HEADER
value: "CF-Connecting-IP"
resources:
requests:
memory: "128Mi"
cpu: "500m"
limits:
memory: "256Mi"
cpu: "1"
automountServiceAccountToken: false
---
apiVersion: v1
kind: Service
metadata:
name: twitter2rss
spec:
type: ClusterIP
selector:
app: twitter2rss
ports:
- protocol: TCP
port: 80
targetPort: 8000
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: twitter2rss
annotations:
kubernetes.io/ingress.class: nginx
kubernetes.io/tls-acme: "true"
spec:
rules:
- host: twitter2rss.nomadic.name
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: twitter2rss
port:
number: 80
tls:
- hosts:
- twitter2rss.nomadic.name
secretName: tls-twitter2rss.nomadic.name