Skip to content
This repository has been archived by the owner on Jan 19, 2018. It is now read-only.

We need an implementation of Nulecule's Storage Requirements #62

Closed
veillard opened this issue May 13, 2015 · 5 comments
Closed

We need an implementation of Nulecule's Storage Requirements #62

veillard opened this issue May 13, 2015 · 5 comments

Comments

@veillard
Copy link
Contributor

Needed for all those examples around databases etc ...
Spec v2 is at
https://github.com/projectatomic/nulecule/tree/master/spec/0.0.2#storage-requirements-object

@goern goern added the feature label May 13, 2015
@goern goern added this to the Red Hat Summit 2015 milestone May 13, 2015
@goern goern added the prio:mid label May 27, 2015
@goern goern added prio:high and removed prio:mid labels Jun 4, 2015
@vpavlin
Copy link
Contributor

vpavlin commented Aug 6, 2015

Looking at https://github.com/projectatomic/nulecule/tree/master/spec#storageRequirementsObject I am not sure how do we translate this to a real storage. Any more detailed explanation on how to implement this feature?

@goern
Copy link
Contributor

goern commented Aug 6, 2015

storageRequirements correspond to Persistent Storage in Kubernetes two steps need to be performed:

  1. the application packager has a storage requirement, this must be translated to a persistant storage claim object to be deployed to kubernetes or openshift3
  2. the deployment guy needs to provision storage (within kube or openshift) without this, 0. will lead to a blocked deployment of the application

step 1. is implemented either as a) part of answers.conf or b) a kube config that is dropped in the correct artifacts directory.

I would vote for a) which also means that we need to generate a PersistentVolume object and deploy it during atomic run.

AFAIK there is no need to respect any sequence of deployment.

@goern goern modified the milestones: CDK 2 beta-2, CDK 2 beta-3 Aug 18, 2015
@goern goern modified the milestones: CDK 2 GA, CDK 2 beta-3 Sep 17, 2015
@goern goern changed the title We need an implementation of stable storage We need an implementation of Nulecule's Storage Requirements Nov 2, 2015
@kanarip
Copy link

kanarip commented Nov 4, 2015

OpenShift specifies an attribute "volumeMounts" to a container, which seems very much like what we need.

Edit: Separately, a volume.yaml seems to be used for the claim and the dimensions of the storage.

@goern
Copy link
Contributor

goern commented Nov 4, 2015

ja, OpenShift (more precisely Kubernetes) has a two fold concept:

  1. there is a Persistent Volume Claim, that claim is issued by the application and can be generated out of a Nulecule file by atomicapp's openshift provider
  2. that claim must be satisfied by a Persistent Volume, which is configured/provisioned by the platform administrator

Both must match, so a claim for 512Mi will be satisfied by a volume of 512Mi...

Further info: https://github.com/kubernetes/kubernetes/blob/release-1.0/docs/design/persistent-storage.md

@dustymabe
Copy link
Contributor

We just merged persistent storage for kubernetes in #460. Closing.

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

No branches or pull requests

6 participants