-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfrontend.yml
45 lines (45 loc) · 853 Bytes
/
frontend.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
apiVersion: apps/v1
kind: Deployment
metadata:
name: frontend
namespace: engineering
labels:
app: frontend
spec:
replicas: 2
template:
metadata:
name: frontend
labels:
app: frontend
environment: test
tier: frontend
department: engineering
spec:
containers:
- name: frontend
image: milanobrenovic/kubernetes:frontend-v1
resources:
limits:
memory: "128Mi"
cpu: "500m"
ports:
- containerPort: 80
imagePullPolicy: Always
restartPolicy: Always
selector:
matchLabels:
app: frontend
---
apiVersion: v1
kind: Service
metadata:
name: frontend
namespace: engineering
spec:
selector:
app: frontend
ports:
- port: 80
targetPort: 80
type: LoadBalancer