-
Notifications
You must be signed in to change notification settings - Fork 0
/
deployment.yaml
77 lines (71 loc) · 1.3 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
apiVersion: v1
kind: Namespace
metadata:
name: fachrin
labels:
name: fachrin
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: web
namespace: fachrin
labels:
app: fachrin-web
spec:
replicas: 1
selector:
matchLabels:
app: fachrin-web
template:
metadata:
labels:
app: fachrin-web
spec:
serviceAccountName: k3s-fachrin-sa
containers:
- name: web
image: registry-intl.ap-southeast-5.aliyuncs.com/fachrin/fachrin
imagePullPolicy: Always
ports:
- containerPort: 9000
env:
- name: build_date
value: '{{build_date}}'
---
apiVersion: v1
kind: Service
metadata:
name: web
namespace: fachrin
spec:
ports:
- port: 9000
targetPort: 9000
selector:
app: fachrin-web
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: web
namespace: fachrin
annotations:
cert-manager.io/cluster-issuer: "letsencrypt-universal"
spec:
ingressClassName: nginx
tls:
- hosts:
- fachr.in
secretName: updated-fachrin-webpage-tls
rules:
- host: fachr.in
http:
paths:
- pathType: Prefix
path: "/"
backend:
service:
name: web
port:
number: 9000