Deployment YAML improvements

This commit is contained in:
Adam Harrison
2017-10-24 13:52:04 +01:00
parent e2d777aedf
commit 4eb3146077
+7 -6
View File
@@ -1,8 +1,8 @@
apiVersion: extensions/v1beta1
kind: DaemonSet
metadata:
name: kured
namespace: kube-system
name: kured # Must match `--ds-name`
namespace: kube-system # Must match `--ds-namespace`
spec:
template:
metadata:
@@ -11,12 +11,12 @@ spec:
spec:
containers:
- name: kured
image: weaveworks/kured
image: quay.io/weaveworks/kured
imagePullPolicy: IfNotPresent
command:
- /usr/bin/kured
# args:
# - --alert-filter-regexp=^(BenignAlert|AnotherBenignAlert)$
# - --alert-filter-regexp=^RebootRequired$
# - --ds-name=kube-system
# - --ds-namespace=kured
# - --lock-annotation=weave.works/kured-node-lock
@@ -24,6 +24,9 @@ spec:
# - --prometheus-url=http://prometheus.monitoring.svc.cluster.local
# - --reboot-sentinel=/var/run/reboot-required
# - --slack-hook-url=https://hooks.slack.com/...
# - --slack-username=prod
#
# NO USER SERVICEABLE PARTS BEYOND THIS POINT
env:
# Pass in the name of the node on which this pod is scheduled
# for use with drain/uncordon operations and lock acquisition
@@ -31,8 +34,6 @@ spec:
valueFrom:
fieldRef:
fieldPath: spec.nodeName
securityContext:
privileged: true
volumeMounts:
# Needed for two purposes:
# * Testing for the existence of /var/run/reboot-required