mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-26 21:17:23 +00:00
Added upgrade story from manifest pod to ds
This commit is contained in:
parent
a52637f09f
commit
c00e57789d
@ -34,6 +34,8 @@ spec:
|
|||||||
- name: varlibdockercontainers
|
- name: varlibdockercontainers
|
||||||
mountPath: /var/lib/docker/containers
|
mountPath: /var/lib/docker/containers
|
||||||
readOnly: true
|
readOnly: true
|
||||||
|
nodeSelector:
|
||||||
|
alpha.kubernetes.io/fluentd-ds-ready: "true"
|
||||||
terminationGracePeriodSeconds: 30
|
terminationGracePeriodSeconds: 30
|
||||||
volumes:
|
volumes:
|
||||||
- name: varlog
|
- name: varlog
|
||||||
|
@ -42,6 +42,8 @@ spec:
|
|||||||
readOnly: true
|
readOnly: true
|
||||||
- name: libsystemddir
|
- name: libsystemddir
|
||||||
mountPath: /host/lib
|
mountPath: /host/lib
|
||||||
|
nodeSelector:
|
||||||
|
alpha.kubernetes.io/fluentd-ds-ready: "true"
|
||||||
terminationGracePeriodSeconds: 30
|
terminationGracePeriodSeconds: 30
|
||||||
volumes:
|
volumes:
|
||||||
- name: varlog
|
- name: varlog
|
||||||
|
@ -27,6 +27,12 @@ const (
|
|||||||
|
|
||||||
LabelOS = "beta.kubernetes.io/os"
|
LabelOS = "beta.kubernetes.io/os"
|
||||||
LabelArch = "beta.kubernetes.io/arch"
|
LabelArch = "beta.kubernetes.io/arch"
|
||||||
|
|
||||||
|
// Historically fluentd was a manifest pod the was migrated to DaemonSet.
|
||||||
|
// To avoid situation during cluster upgrade when there are two instances
|
||||||
|
// of fluentd running on a node, kubelet need to mark node on which
|
||||||
|
// fluentd in not running as a manifest pod with LabelFluentdDsReady.
|
||||||
|
LabelFluentdDsReady = "alpha.kubernetes.io/fluentd-ds-ready"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Role labels are applied to Nodes to mark their purpose. In particular, we
|
// Role labels are applied to Nodes to mark their purpose. In particular, we
|
||||||
|
@ -196,6 +196,7 @@ func (kl *Kubelet) initialNode() (*v1.Node, error) {
|
|||||||
metav1.LabelHostname: kl.hostname,
|
metav1.LabelHostname: kl.hostname,
|
||||||
metav1.LabelOS: goruntime.GOOS,
|
metav1.LabelOS: goruntime.GOOS,
|
||||||
metav1.LabelArch: goruntime.GOARCH,
|
metav1.LabelArch: goruntime.GOARCH,
|
||||||
|
metav1.LabelFluentdDsReady: "true",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
Spec: v1.NodeSpec{
|
Spec: v1.NodeSpec{
|
||||||
|
Loading…
Reference in New Issue
Block a user