-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmanifest.yaml
53 lines (53 loc) · 1.05 KB
/
manifest.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
53
---
apiVersion: v1
kind: Namespace
metadata:
name: test-in-cluster-config
---
apiVersion: v1
kind: ServiceAccount
metadata:
name: in-cluster-config-serviceaccount
namespace: test-in-cluster-config
---
kind: Role
apiVersion: rbac.authorization.k8s.io/v1
metadata:
namespace: test-in-cluster-config
name: list-pods
rules:
- apiGroups: [""]
resources: ["pods"]
verbs: ["list"]
---
kind: RoleBinding
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: list-pods
namespace: test-in-cluster-config
subjects:
- kind: ServiceAccount
name: in-cluster-config-serviceaccount
apiGroup: ""
roleRef:
kind: Role
name: list-pods
apiGroup: ""
---
apiVersion: v1
kind: Pod
metadata:
name: list-pods
namespace: test-in-cluster-config
spec:
containers:
- image: zubron/k8s-in-cluster-config:v0.0.3
imagePullPolicy: IfNotPresent
name: list-pods
env:
- name: POD_NAMESPACE
valueFrom:
fieldRef:
fieldPath: metadata.namespace
restartPolicy: Never
serviceAccountName: in-cluster-config-serviceaccount