-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathk8s-daemonset.yaml
63 lines (63 loc) · 1.74 KB
/
k8s-daemonset.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
60
61
62
63
apiVersion: extensions/v1beta1
kind: DaemonSet
metadata:
name: saassigner
namespace: kube-system
labels:
application: saassigner
spec:
selector:
matchLabels:
application: saassigner
updateStrategy:
type: RollingUpdate
template:
metadata:
labels:
application: saassigner
spec:
priorityClassName: system-node-critical
tolerations:
- operator: Exists
effect: NoSchedule
- operator: Exists
effect: NoExecute
hostNetwork: true
containers:
- image: imduffy15/k8s-gke-service-account-assigner
name: saassigner
args:
- --verbose
- "--debug=true"
- "--iptables=true"
- "--host-ip=$(HOST_IP)"
- "--node=$(NODE_NAME)"
- "--default-service-account=default"
- "--default-scopes=https://www.googleapis.com/auth/devstorage.read_write,https://www.googleapis.com/auth/logging.write,https://www.googleapis.com/auth/monitoring,https://www.googleapis.com/auth/servicecontrol,https://www.googleapis.com/auth/service.management.readonly,https://www.googleapis.com/auth/trace.append"
env:
- name: HOST_IP
valueFrom:
fieldRef:
fieldPath: status.podIP
- name: NODE_NAME
valueFrom:
fieldRef:
fieldPath: spec.nodeName
ports:
- containerPort: 8181
hostPort: 8181
name: http
securityContext:
privileged: true
readinessProbe:
httpGet:
path: /healthz
port: 8181
timeoutSeconds: 3
resources:
limits:
cpu: 100m
memory: 100Mi
requests:
cpu: 25m
memory: 25Mi