-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdeployment.yaml
83 lines (81 loc) · 1.89 KB
/
deployment.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
apiVersion: v1
kind: Service
metadata:
name: mcashchain-wiki-service
labels:
app.kubernetes.io/name: mcashchain-wiki-service
spec:
type: ClusterIP
ports:
- port: 80
targetPort: http
protocol: TCP
name: http
selector:
app.kubernetes.io/name: mcashchain-wiki-service
---
apiVersion: apps/v1beta2
kind: Deployment
metadata:
name: mcashchain-wiki-service
labels:
app.kubernetes.io/name: mcashchain-wiki-service
spec:
replicas: 1
selector:
matchLabels:
app.kubernetes.io/name: mcashchain-wiki-service
template:
metadata:
labels:
app.kubernetes.io/name: mcashchain-wiki-service
spec:
containers:
- name: mcashchain-wiki
image: "mcash/mcashchain-wiki:latest"
imagePullPolicy: Always
ports:
- name: http
containerPort: 80
protocol: TCP
livenessProbe:
httpGet:
path: /
port: http
readinessProbe:
httpGet:
path: /
port: http
env:
resources:
limits:
memory: 20Mi
requests:
cpu: 50m
memory: 20Mi
---
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: mcashchain-wiki
labels:
app.kubernetes.io/name: mcashchain-wiki
annotations:
certmanager.k8s.io/cluster-issuer: letsencrypt-prod
kubernetes.io/ingress.class: nginx
kubernetes.io/tls-acme: "true"
nginx.ingress.kubernetes.io/proxy-body-size: 50m
nginx/client_max_body_size: 50m
spec:
tls:
- hosts:
- "developer.mcash.network"
secretName: developer-mcash-network-tls
rules:
- host: "developer.mcash.network"
http:
paths:
- path: /
backend:
serviceName: "mcashchain-wiki-service"
servicePort: http