-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDeployment.yaml
55 lines (55 loc) · 1.03 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
apiVersion: apps/v1
kind: Deployment
metadata:
name: tlwe2021-nodejs
spec:
selector:
matchLabels:
app: tlwe2021-nodejs
template:
metadata:
labels:
app: tlwe2021-nodejs
spec:
containers:
- name: tlwe2021-nodejs
image: ghcr.io/thenativeweb/tlwe2021-nodejs:latest
env:
- name: NODE_ENV
value: production
ports:
- name: http
containerPort: 8080
imagePullSecrets:
- name: ghcr
automountServiceAccountToken: false
---
kind: Service
apiVersion: v1
metadata:
name: tlwe2021-nodejs
spec:
ports:
- name: http
port: 80
targetPort: http
selector:
app: tlwe2021-nodejs
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: tlwe2021-nodejs
spec:
ingressClassName: nginx
rules:
- host: tlwe2021-nodejs.thenativeweb.io
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: tlwe2021-nodejs
port:
name: http