forked from kernelpayments/kube-google-iam
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdeployment.yaml
59 lines (59 loc) · 1.2 KB
/
deployment.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
54
55
56
57
58
59
apiVersion: v1
kind: ServiceAccount
metadata:
name: kube-google-iam
namespace: kube-system
---
kind: ClusterRole
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: kube-google-iam
namespace: kube-system
rules:
- apiGroups: [""]
resources:
- namespaces
- pods
verbs:
- get
- list
- watch
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: kube-google-iam
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: kube-google-iam
subjects:
- kind: ServiceAccount
name: kube-google-iam
namespace: kube-system
---
apiVersion: extensions/v1beta1
kind: DaemonSet
metadata:
name: kube-google-iam
namespace: kube-system
labels:
app: kube-google-iam
spec:
template:
metadata:
labels:
app: kube-google-iam
spec:
serviceAccountName: kube-google-iam
hostNetwork: true
tolerations:
# Allow the pod to run on the master.
- key: node-role.kubernetes.io/master
effect: NoSchedule
containers:
- name: kube-google-iam
image: gcr.io/kernelpayments/kube-google-iam
args:
- "--verbose"
imagePullPolicy: Always