Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RFE: support env and volumeMounts in HabitatSpec #181

Closed
1 of 2 tasks
jeremymv2 opened this issue Feb 6, 2018 · 3 comments
Closed
1 of 2 tasks

RFE: support env and volumeMounts in HabitatSpec #181

jeremymv2 opened this issue Feb 6, 2018 · 3 comments
Assignees

Comments

@jeremymv2
Copy link

jeremymv2 commented Feb 6, 2018

This is a request for two enhancements:

  • It would be nice to be able to support habitat clusters with persistent disk requirements, such that volumeMounts could be defined and taken into account when the Deployment is created in kubernetes. This would enable users to create rings with services that mount a filesystem backed datastore allowing dependent services to query the ring for such things as the db service's ip/port.
  • Additionally, being able to pass supervisor configuration via HAB_SVC_NAME environment variables to the containers would, I believe, be more straightforward and transparent then utilizing base64encoded toml implemented as a Secret. [done in Add Env key #184]
@asymmetric asymmetric self-assigned this Feb 7, 2018
@asymmetric
Copy link
Contributor

Hi @jeremymv2!

We're investigating approaches to provide persistent storage. One approach is to use StatefulSets instead of Deployments, and add support for volumeMounts in the Habitat object.

Another approach we're exploring is to relegate persistence to services outside the cluster: a stateful service running outside Kubernetes forming a ring with a stateless one inside it.

Your usecase is helpful in that it allows us to gauge interest and needs, so please feel free to add other details if they come to mind.

The environment variables part is easier to figure out/implement, I've added it to my to-do list!

@jeremymv2
Copy link
Author

jeremymv2 commented Feb 7, 2018

@asymmetric for a use-case, this is something I'd love to be able to migrate to the CRD habitat-operator approach.

https://github.com/jeremymv2/launch-chef-in-kubernetes/blob/master/chef-server-pod.yml

Stateful (backend): elasticsearch, postgresql
Stateless (frontend): all the other services

@jeremymv2
Copy link
Author

@asymmetric the challenge is that my Chef Server use-case above has a mix of stateful/stateless services that all need to join a habitat ring.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants