2018-02-11 08:51:55 +01:00
|
|
|
apiVersion: apps/v1
|
2017-08-28 02:20:29 +02:00
|
|
|
kind: DaemonSet
|
|
|
|
metadata:
|
|
|
|
name: container-linux-update-agent
|
2017-10-15 04:35:06 +02:00
|
|
|
namespace: reboot-coordinator
|
2017-08-28 02:20:29 +02:00
|
|
|
spec:
|
|
|
|
updateStrategy:
|
|
|
|
type: RollingUpdate
|
|
|
|
rollingUpdate:
|
|
|
|
maxUnavailable: 1
|
2018-02-11 08:51:55 +01:00
|
|
|
selector:
|
|
|
|
matchLabels:
|
2019-10-14 08:53:38 +02:00
|
|
|
name: container-linux-update-agent
|
2017-08-28 02:20:29 +02:00
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
labels:
|
2019-10-14 08:53:38 +02:00
|
|
|
name: container-linux-update-agent
|
2018-10-16 08:24:27 +02:00
|
|
|
annotations:
|
|
|
|
seccomp.security.alpha.kubernetes.io/pod: 'docker/default'
|
2017-08-28 02:20:29 +02:00
|
|
|
spec:
|
|
|
|
tolerations:
|
2019-03-20 08:15:08 +01:00
|
|
|
- key: node-role.kubernetes.io/master
|
|
|
|
operator: Exists
|
|
|
|
effect: NoSchedule
|
|
|
|
containers:
|
|
|
|
- name: update-agent
|
|
|
|
image: quay.io/coreos/container-linux-update-operator:v0.7.0
|
|
|
|
command:
|
|
|
|
- "/bin/update-agent"
|
|
|
|
env:
|
|
|
|
# read by update-agent as the node name to manage reboots for
|
|
|
|
- name: UPDATE_AGENT_NODE
|
|
|
|
valueFrom:
|
|
|
|
fieldRef:
|
|
|
|
fieldPath: spec.nodeName
|
|
|
|
- name: POD_NAMESPACE
|
|
|
|
valueFrom:
|
|
|
|
fieldRef:
|
|
|
|
fieldPath: metadata.namespace
|
|
|
|
resources:
|
|
|
|
requests:
|
|
|
|
cpu: 10m
|
|
|
|
memory: 20Mi
|
|
|
|
limits:
|
|
|
|
cpu: 20m
|
|
|
|
memory: 40Mi
|
|
|
|
volumeMounts:
|
|
|
|
- mountPath: /var/run/dbus
|
|
|
|
name: var-run-dbus
|
|
|
|
- mountPath: /etc/coreos
|
|
|
|
name: etc-coreos
|
|
|
|
- mountPath: /usr/share/coreos
|
|
|
|
name: usr-share-coreos
|
|
|
|
- mountPath: /etc/os-release
|
|
|
|
name: etc-os-release
|
2017-08-28 02:20:29 +02:00
|
|
|
volumes:
|
|
|
|
- name: var-run-dbus
|
|
|
|
hostPath:
|
|
|
|
path: /var/run/dbus
|
|
|
|
- name: etc-coreos
|
|
|
|
hostPath:
|
|
|
|
path: /etc/coreos
|
|
|
|
- name: usr-share-coreos
|
|
|
|
hostPath:
|
|
|
|
path: /usr/share/coreos
|
|
|
|
- name: etc-os-release
|
|
|
|
hostPath:
|
|
|
|
path: /etc/os-release
|