| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147 |
- apiVersion: v1
- kind: ServiceAccount
- metadata:
- name: kilo
- namespace: kube-system
- ---
- apiVersion: rbac.authorization.k8s.io/v1
- kind: ClusterRole
- metadata:
- name: kilo
- rules:
- - apiGroups:
- - ""
- resources:
- - nodes
- verbs:
- - list
- - patch
- - watch
- - apiGroups:
- - kilo.squat.ai
- resources:
- - peers
- verbs:
- - list
- - watch
- - apiGroups:
- - apiextensions.k8s.io
- resources:
- - customresourcedefinitions
- verbs:
- - get
- ---
- 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
- ---
- apiVersion: apps/v1
- kind: DaemonSet
- metadata:
- name: kilo
- namespace: kube-system
- labels:
- app.kubernetes.io/name: kilo
- app.kubernetes.io/part-of: kilo
- spec:
- selector:
- matchLabels:
- app.kubernetes.io/name: kilo
- app.kubernetes.io/part-of: kilo
- template:
- metadata:
- labels:
- app.kubernetes.io/name: kilo
- app.kubernetes.io/part-of: kilo
- spec:
- serviceAccountName: kilo
- hostNetwork: true
- containers:
- - name: wireguard
- image: ghcr.io/masipcat/wireguard-go-docker:0.0.20230223
- args:
- - wireguard-go=true
- - --foreground
- - kilo0
- securityContext:
- privileged: true
- volumeMounts:
- - name: wireguard
- mountPath: /var/run/wireguard
- readOnly: false
- - name: kilo
- image: squat/kilo:0.7.0
- args:
- - --kubeconfig=/etc/kubernetes/kubeconfig
- - --hostname=$(NODE_NAME)
- - --create-interface=false
- - --interface=kilo0
- - --cni=false
- - --compatibility=flannel
- - --local=false
- - --internal-cidr=$(NODE_IP)/32
- env:
- - name: NODE_NAME
- valueFrom:
- fieldRef:
- fieldPath: spec.nodeName
- - name: NODE_IP
- valueFrom:
- fieldRef:
- fieldPath: status.hostIP
- ports:
- - containerPort: 1107
- name: metrics
- securityContext:
- privileged: true
- volumeMounts:
- - name: cni-conf-dir
- mountPath: /etc/cni/net.d
- - name: kilo-dir
- mountPath: /var/lib/kilo
- - name: lib-modules
- mountPath: /lib/modules
- readOnly: true
- - name: xtables-lock
- mountPath: /run/xtables.lock
- readOnly: false
- - name: wireguard
- mountPath: /var/run/wireguard
- readOnly: false
- tolerations:
- - operator: Exists
- volumes:
- - name: cni-bin-dir
- hostPath:
- path: /opt/cni/bin
- - name: cni-conf-dir
- hostPath:
- path: /etc/cni/net.d
- - name: kilo-dir
- hostPath:
- path: /var/lib/kilo
- - name: kubeconfig
- configMap:
- name: kube-proxy
- items:
- - key: kubeconfig.conf
- path: kubeconfig
- - name: lib-modules
- hostPath:
- path: /lib/modules
- - name: xtables-lock
- hostPath:
- path: /run/xtables.lock
- type: FileOrCreate
- - name: wireguard
- hostPath:
- path: /var/run/wireguard
|