-
Notifications
You must be signed in to change notification settings - Fork 14
/
deployment.yml
51 lines (51 loc) · 987 Bytes
/
deployment.yml
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
apiVersion: apps/v1
kind: Deployment
metadata:
name: resume
spec:
selector:
matchLabels:
app: resume
replicas: 1
template:
metadata:
labels:
app: resume
spec:
containers:
- name: resume
image: sh4d1/resume
ports:
- containerPort: 80
name: resume-port
---
apiVersion: v1
kind: Service
metadata:
name: resume
labels:
apps: resume
spec:
selector:
app: resume
ports:
- protocol: TCP
port: 80
targetPort: resume-port
name: web
---
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: resume
annotations:
kubernetes.io/ingress.class: traefik
spec:
rules:
- host: "res.ptrk.io"
http:
paths:
- path: /
backend:
serviceName: resume
servicePort: web