2019-05-13 23:01:53 +00:00
|
|
|
apiVersion: v1
|
|
|
|
kind: ServiceAccount
|
|
|
|
metadata:
|
|
|
|
name: kilo
|
|
|
|
namespace: kube-system
|
|
|
|
---
|
2019-07-16 21:37:57 +00:00
|
|
|
apiVersion: rbac.authorization.k8s.io/v1
|
2019-05-13 23:01:53 +00:00
|
|
|
kind: ClusterRole
|
|
|
|
metadata:
|
|
|
|
name: kilo
|
|
|
|
rules:
|
|
|
|
- apiGroups:
|
|
|
|
- ""
|
|
|
|
resources:
|
|
|
|
- nodes
|
|
|
|
verbs:
|
|
|
|
- list
|
|
|
|
- patch
|
|
|
|
- watch
|
|
|
|
- apiGroups:
|
|
|
|
- kilo.squat.ai
|
|
|
|
resources:
|
|
|
|
- peers
|
|
|
|
verbs:
|
|
|
|
- list
|
|
|
|
- update
|
|
|
|
- watch
|
|
|
|
- apiGroups:
|
|
|
|
- apiextensions.k8s.io
|
|
|
|
resources:
|
|
|
|
- customresourcedefinitions
|
|
|
|
verbs:
|
|
|
|
- create
|
|
|
|
---
|
|
|
|
apiVersion: rbac.authorization.k8s.io/v1
|
|
|
|
kind: ClusterRoleBinding
|
|
|
|
metadata:
|
|
|
|
name: kilo
|
|
|
|
roleRef:
|
|
|
|
apiGroup: rbac.authorization.k8s.io
|
|
|
|
kind: ClusterRole
|
|
|
|
name: kilo
|
|
|
|
subjects:
|
|
|
|
- kind: ServiceAccount
|
|
|
|
name: kilo
|
|
|
|
namespace: kube-system
|
|
|
|
---
|
2019-07-16 21:37:57 +00:00
|
|
|
apiVersion: apps/v1
|
2019-05-13 23:01:53 +00:00
|
|
|
kind: DaemonSet
|
|
|
|
metadata:
|
|
|
|
name: kilo
|
|
|
|
namespace: kube-system
|
|
|
|
labels:
|
|
|
|
app.kubernetes.io/name: kilo
|
|
|
|
spec:
|
2019-08-01 14:50:59 +00:00
|
|
|
selector:
|
|
|
|
matchLabels:
|
|
|
|
app.kubernetes.io/name: kilo
|
2019-05-13 23:01:53 +00:00
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
app.kubernetes.io/name: kilo
|
|
|
|
spec:
|
|
|
|
serviceAccountName: kilo
|
|
|
|
hostNetwork: true
|
|
|
|
containers:
|
|
|
|
- name: kilo
|
|
|
|
image: squat/kilo
|
|
|
|
args:
|
|
|
|
- --kubeconfig=/etc/kubernetes/kubeconfig
|
2019-05-17 20:29:49 +00:00
|
|
|
- --hostname=$(NODE_NAME)
|
2019-05-13 23:01:53 +00:00
|
|
|
- --cni=false
|
|
|
|
- --compatibility=flannel
|
|
|
|
- --local=false
|
2019-05-17 20:29:49 +00:00
|
|
|
env:
|
|
|
|
- name: NODE_NAME
|
|
|
|
valueFrom:
|
|
|
|
fieldRef:
|
|
|
|
fieldPath: spec.nodeName
|
2019-05-13 23:01:53 +00:00
|
|
|
securityContext:
|
|
|
|
privileged: true
|
|
|
|
volumeMounts:
|
|
|
|
- name: kilo-dir
|
|
|
|
mountPath: /var/lib/kilo
|
|
|
|
- name: kubeconfig
|
|
|
|
mountPath: /etc/kubernetes
|
|
|
|
readOnly: true
|
|
|
|
tolerations:
|
|
|
|
- effect: NoSchedule
|
|
|
|
operator: Exists
|
|
|
|
- effect: NoExecute
|
|
|
|
operator: Exists
|
|
|
|
volumes:
|
|
|
|
- name: kilo-dir
|
|
|
|
hostPath:
|
|
|
|
path: /var/lib/kilo
|
|
|
|
- name: kubeconfig
|
|
|
|
configMap:
|
|
|
|
name: kubeconfig-in-cluster
|