This repository has been archived by the owner on Dec 11, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
deploy.tmpl
81 lines (81 loc) · 1.59 KB
/
deploy.tmpl
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: clickbaiter
namespace: production
labels:
app: clickbaiter
commit: "asd"
spec:
selector:
matchLabels:
app: clickbaiter
replicas: 2
revisionHistoryLimit: 3
strategy:
rollingUpdate:
maxSurge: 3
maxUnavailable: 1
template:
metadata:
labels:
app: clickbaiter
spec:
containers:
- name: clickbaiter
image: quay.io/cbrgm/clickbaiter
imagePullPolicy: Always
env:
- name: HTTP_ADDR
value: ':8080'
- name: COMMIT_HASH
value: "asd"
ports:
- containerPort: 8080
resources:
requests:
cpu: 100m
memory: 64Mi
---
apiVersion: v1
kind: Service
metadata:
name: clickbaiter
namespace: production
labels:
app: clickbaiter
spec:
type: ClusterIP
selector:
app: clickbaiter
ports:
- name: http
protocol: TCP
port: 8080
targetPort: 8080
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: clickbaiter-ingress
namespace: production
annotations:
kubernetes.io/ingress.class: nginx
nginx.ingress.kubernetes.io/from-to-www-redirect: "true"
cert-manager.io/cluster-issuer: letsencrypt-prod
spec:
tls:
- hosts:
- clickbait.cbrgm.net
secretName: clickbaiter-tls
rules:
- host: clickbait.cbrgm.net
http:
paths:
- pathType: Prefix
path: /
backend:
service:
name: clickbaiter
port:
number: 8080