-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathk8s.yaml
More file actions
56 lines (56 loc) · 972 Bytes
/
k8s.yaml
File metadata and controls
56 lines (56 loc) · 972 Bytes
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
---
apiVersion: apps/v1
kind: Deployment
metadata: &metadata
name: blog
labels: &label
app: blog
spec:
selector:
matchLabels: *label
template:
metadata: *metadata
spec:
containers:
- name: nginx
image: gitea.tymur999.com/tymur999/blog:latest
ports:
- containerPort: 8000
name: http
---
apiVersion: v1
kind: Service
metadata:
name: blog
labels: &labels
app: blog
spec:
selector: *labels
ports:
- port: 8000
protocol: TCP
targetPort: http
name: http
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: blog
labels:
app: blog
spec:
ingressClassName: traefik
tls:
- hosts:
- tymur999.com
rules:
- host: tymur999.com
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: blog
port:
name: http