2017-08-28 02:20:29 +02:00
|
|
|
apiVersion: extensions/v1beta1
|
|
|
|
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
|
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
app: container-linux-update-agent
|
|
|
|
spec:
|
|
|
|
containers:
|
|
|
|
- name: update-agent
|
2017-10-20 09:40:17 +02:00
|
|
|
image: quay.io/coreos/container-linux-update-operator:v0.4.0
|
2017-08-28 02:20:29 +02:00
|
|
|
command:
|
|
|
|
- "/bin/update-agent"
|
|
|
|
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
|
|
|
|
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
|
|
|
|
tolerations:
|
|
|
|
- key: node-role.kubernetes.io/master
|
|
|
|
operator: Exists
|
|
|
|
effect: NoSchedule
|
|
|
|
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
|