forked from mreferre/eksutils
-
Notifications
You must be signed in to change notification settings - Fork 0
/
eksutils-pod.yaml
52 lines (52 loc) · 1.11 KB
/
eksutils-pod.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
# This creates service-account Admin in the cluster
# If you need, you can check for irsa-sa.yaml for example instruction to have a IRSA service-account with AWS policies
apiVersion: v1
kind: ServiceAccount
metadata:
name: eksutils-admin
namespace: default
---
apiVersion: rbac.authorization.k8s.io/v1beta1
kind: ClusterRoleBinding
metadata:
name: eksutils-admin
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: cluster-admin
subjects:
- kind: ServiceAccount
name: eksutils-admin
namespace: default
---
apiVersion: v1
kind: Pod
metadata:
name: eksutils-pod
namespace: default
labels:
app: toolbox
spec:
containers:
- name: eksutils
image: allamand/eksutils:latest
command:
- tail
- -f
- /dev/null
ports:
- containerPort: 8080
name: http
protocol: TCP
resources:
requests:
cpu: 300m
memory: 512Mi
enableServiceLinks: true
restartPolicy: Always
schedulerName: default-scheduler
securityContext:
fsGroup: 1000
runAsUser: 1000
serviceAccount: default
serviceAccountName: eksutils-admin