mirror of
https://github.com/puppetmaster/typhoon.git
synced 2024-12-27 08:49:33 +01:00
2c10d24113
* Deployments now belong to the apps/v1 API group * DaemonSets now belong to the apps/v1 API group * RBAC types now belong to the rbac.authorization.k8s.io/v1 API group
60 lines
1.5 KiB
YAML
60 lines
1.5 KiB
YAML
apiVersion: apps/v1
|
|
kind: DaemonSet
|
|
metadata:
|
|
name: container-linux-update-agent
|
|
namespace: reboot-coordinator
|
|
spec:
|
|
updateStrategy:
|
|
type: RollingUpdate
|
|
rollingUpdate:
|
|
maxUnavailable: 1
|
|
selector:
|
|
matchLabels:
|
|
app: container-linux-update-agent
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: container-linux-update-agent
|
|
spec:
|
|
containers:
|
|
- name: update-agent
|
|
image: quay.io/coreos/container-linux-update-operator:v0.6.0
|
|
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
|