76 lines
1.9 KiB
YAML
76 lines
1.9 KiB
YAML
apiVersion: apps/v1
|
|
kind: DaemonSet
|
|
metadata:
|
|
name: whereabouts
|
|
namespace: kube-system
|
|
labels:
|
|
tier: node
|
|
app: whereabouts
|
|
spec:
|
|
selector:
|
|
matchLabels:
|
|
name: whereabouts
|
|
updateStrategy:
|
|
type: RollingUpdate
|
|
template:
|
|
metadata:
|
|
labels:
|
|
tier: node
|
|
app: whereabouts
|
|
name: whereabouts
|
|
spec:
|
|
hostNetwork: true
|
|
serviceAccountName: whereabouts
|
|
tolerations:
|
|
- operator: Exists
|
|
effect: NoSchedule
|
|
containers:
|
|
- name: whereabouts
|
|
command: [ "/bin/sh" ]
|
|
args:
|
|
- -c
|
|
- |
|
|
SLEEP=false source /install-cni.sh
|
|
/token-watcher.sh &
|
|
/ip-control-loop -log-level debug
|
|
image: ghcr.io/k8snetworkplumbingwg/whereabouts:v0.9.2
|
|
env:
|
|
- name: NODENAME
|
|
valueFrom:
|
|
fieldRef:
|
|
apiVersion: v1
|
|
fieldPath: spec.nodeName
|
|
- name: WHEREABOUTS_NAMESPACE
|
|
valueFrom:
|
|
fieldRef:
|
|
fieldPath: metadata.namespace
|
|
resources:
|
|
requests:
|
|
cpu: "100m"
|
|
memory: "100Mi"
|
|
limits:
|
|
cpu: "300m"
|
|
memory: "200Mi"
|
|
securityContext:
|
|
privileged: true
|
|
volumeMounts:
|
|
- name: cnibin
|
|
mountPath: /host/opt/cni/bin
|
|
- name: cni-net-dir
|
|
mountPath: /host/etc/cni/net.d
|
|
- name: cron-scheduler-configmap
|
|
mountPath: /cron-schedule
|
|
volumes:
|
|
- name: cnibin
|
|
hostPath:
|
|
path: /opt/cni/bin
|
|
- name: cni-net-dir
|
|
hostPath:
|
|
path: /etc/cni/net.d
|
|
- name: cron-scheduler-configmap
|
|
configMap:
|
|
name: "whereabouts-config"
|
|
defaultMode: 0744
|
|
items:
|
|
- key: "cron-expression"
|
|
path: "config" |