-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathstwo-web-stark-deployment.yaml
58 lines (58 loc) · 1.17 KB
/
stwo-web-stark-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
apiVersion: apps/v1
kind: Deployment
metadata:
name: stwo-web-stark
namespace: stwo-web-stark
spec:
selector:
matchLabels:
app: stwo-web-stark
replicas: 1
template:
metadata:
labels:
app: stwo-web-stark
spec:
containers:
- name: stwo-web-stark
image: registry.internal.iosis.tech/stwo-web-stark
ports:
- containerPort: 3000
---
apiVersion: v1
kind: Service
metadata:
name: stwo-web-stark-service
namespace: stwo-web-stark
spec:
selector:
app: stwo-web-stark
ports:
- protocol: TCP
port: 80
targetPort: 3000
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: stwo-web-stark-ingress
namespace: stwo-web-stark
annotations:
nginx.ingress.kubernetes.io/proxy-body-size: "0"
spec:
ingressClassName: nginx-ingress-prod
tls:
- hosts:
- demo.stwo.iosis.tech
secretName: stwo-web-stark-tls
rules:
- host: demo.stwo.iosis.tech
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: stwo-web-stark-service
port:
number: 80