[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: Pod-based Lifecycle Hook



Looks like https://github.com/openshift/origin/issues/4711 (a bit).
Except I'm talking about a EmptyDir volume, I don't see why I would add it the new "volumes" key.
Anyway, I tried this:

strategy:
  resources: {}
  rollingParams:
    intervalSeconds: 1
    maxSurge: 2
    maxUnavailable: 0
    pre:
      execNewPod:
        command:
        - /usr/local/bundle/bin/rake
        - assets:precompile
        containerName: rails
        volumes:
        - assets
      failurePolicy: Abort
    timeoutSeconds: 600
    updatePeriodSeconds: 1
  type: Rolling


"assets" being the name of my EmptyDir volume, and it's still failing, the volume is empty in the new pods :(


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]