nais / naisd

nais deployment daemon
https://nais.io
MIT License
27 stars 10 forks source link

support for container lifecycle hooks in nais.yaml #62

Closed dagframstad closed 6 years ago

dagframstad commented 6 years ago

Make it possible to add lifecycle hooks, like this:


      postStart:
        exec:
          command:
            - "touch"
            - "/var/log/lifecycle/post-start"
      preStop:
        httpGet:
          path: "/abort"
          port: 8080
gtcno commented 6 years ago

I am thinking:

lifecycle: //Optional. Defaults to none preStop: httpGet: path: "/stop"

audunstrand commented 6 years ago

man trenger vel bare

preStop:
   path:"/stop"

siden vi bare godtar http

gtcno commented 6 years ago

Yes. At the cost of ease if we were to include support for exec and/or multiple ports in the future.

gtcno commented 6 years ago

To keep it as simple as possible:

Added field preStopHookPath to nais.yaml.