Skip to content

Daemonset for updating all nodes #23

Open
@laurijssen

Description

@laurijssen

In case of large clusters updating the cifs script becomes tedious, I have created a daemonset for this. Its very basic but it updates cifs script on every host every 2 hours. Maybe include it in repository and update it to make the install procedure a container itself?

apiVersion: apps/v1
kind: DaemonSet
metadata:
name: fstab-cifs-updater
namespace: default
labels:
k8s-app: fstab-cifs-updater
spec:
selector:
matchLabels:
name: fstab-cifs-updater
template:
metadata:
labels:
name: fstab-cifs-updater
spec:
containers:
- name: fstab-cifs-updater
image: alpine
command: ["/bin/sh", "-c"]
args: ["apk add curl ; mkdir /flex/fstabcifs ; while true; do curl -o /flex/fstabcifs/cifs https://github.com/fstab/cifs/blob/master/cifs ; chmod a+x /flex/fstab~cifs/cifs ; sleep 7200; done"]
volumeMounts:
- name: flexvolume
mountPath: /flex
terminationGracePeriodSeconds: 30
volumes:
- name: flexvolume
hostPath:
path: /usr/libexec/kubernetes/kubelet-plugins/volume/exec

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions