-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdeploy.yaml.example
57 lines (57 loc) · 1.03 KB
/
deploy.yaml.example
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
apiVersion: v1
kind: ServiceAccount
metadata:
name: node-reaper
annotations:
eks.amazonaws.com/role-arn: arn:aws:iam::AWS_ACCOUNT_ID:role/IAM_ROLE_NAME
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: node-reaper
labels:
app: node-reaper
spec:
replicas: 1
selector:
matchLabels:
app: node-reaper
template:
metadata:
labels:
app: node-reaper
spec:
serviceAccountName: node-reaper
containers:
- name: node-reaper
image: sgdan/node-reaper:latest
env:
- name: CORS_ENABLED
value: "false"
---
apiVersion: v1
kind: Service
metadata:
name: node-reaper
spec:
ports:
- port: 8080
protocol: TCP
targetPort: 8080
selector:
app: node-reaper
---
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
annotations:
name: node-reaper-ingress
spec:
rules:
- host: HOST
http:
paths:
- backend:
serviceName: node-reaper
servicePort: 8080
path: /