Skip to content
This repository has been archived by the owner on Mar 28, 2020. It is now read-only.

[WIP] *: Add initial PersistentVolume feature #1349

Closed
wants to merge 1 commit into from

Commits on Aug 7, 2017

  1. *: Add initial PersistentVolume feature

    this patch adds initial persistent volume feature for etcd data.
    
    When the usePV option is enabled in the etcd cluster spec every
    created pod will get a related persistent volume claim and the pod
    restart policy will be set to RestartAlways.
    
    This initial patch only covers the case where a pod crashes (or a node
    restart before the related pod is evicted by the k8s node
    controller). When using a persistent volume, instead of deleting the pod
    and creating a new one, the pod will be restarted by k8s.
    
    A future patch will change the reconcile logic to also handle cases
    where one or more pods are deleted (manually or by k8s) recreating the
    same pod using the same pvc.
    
    The persistent volume claim will use the same pv provisioner defined for the
    backup pvc.
    
    The etcd data pvc will be garbage collected like the other cluster
    resources.
    sgotti committed Aug 7, 2017
    Configuration menu
    Copy the full SHA
    2067953 View commit details
    Browse the repository at this point in the history