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

Support running kubernetes from OpenShift template #131

Open
aweiteka opened this issue May 27, 2015 · 5 comments
Open

Support running kubernetes from OpenShift template #131

aweiteka opened this issue May 27, 2015 · 5 comments

Comments

@aweiteka
Copy link
Contributor

Extend kubernetes provider so it could run an unaltered OpenShift template via inherit.

...
  - artifacts: 
      openshift: 
        - file:path/to/template.json
      kubernetes:
        inherit: openshift
...
@aweiteka aweiteka added this to the Red Hat Summit 2015 milestone May 27, 2015
@vpavlin
Copy link
Contributor

vpavlin commented Jun 4, 2015

This is a bit problematic - we can do that for simple templates like [1], but it would mean to reimplement generators [2].

Michal Fojtik suggested to use openshift running in Docker container and doing a call like:

cat foo.template | sudo docker exec -it openshift-origin bash -c "osc process -f -"

if osc is not available.

[1] https://github.com/openshift/origin/blob/master/examples/zookeeper/template.json#L362
[2] https://github.com/openshift/origin/blob/master/examples/sample-app/application-template-stibuild.json#L407
[3] https://github.com/openshift/origin/blob/master/pkg/template/generator/expressionvalue.go

@aweiteka
Copy link
Contributor Author

aweiteka commented Jun 4, 2015

Thoughts/summary:

  • We should define generator functions in the Nulecule spec. Not sure how that would be implemented but here's an issue: Add support for dynamic functions nulecule#97
  • We cannot use osc CLI without an OpenShift server. This defeats the purpose of app portability.
  • I think we should support basic openshift templates for now basically pulling out any kube content. It's not clear which params should be exposed since they're in the Nulecule file and openshift template. Using this example template kubectl create ... any data structure that is of "Kind" DeploymentConfig and Service.

@aweiteka
Copy link
Contributor Author

@goern is this part of our CDK GA milestone story? I vote 'no' since we have not pulled this in as a primary user story.

@goern
Copy link
Contributor

goern commented Jul 29, 2015

I see some feature misfit for that, referring to vpavlins comment and dont really see that this is part of the story...

@aweiteka aweiteka self-assigned this Aug 4, 2015
@goern
Copy link
Contributor

goern commented Aug 4, 2015

prerequisite: an OpenShift environment that is capable of processing the template inherited with the Atomic App.

@aweiteka aweiteka removed their assignment Aug 8, 2015
@goern goern modified the milestones: CDK 2 beta-2, CDK 2 beta-3 Aug 18, 2015
@aweiteka aweiteka modified the milestones: CDK 2.1, CDK 2 beta-3 Sep 29, 2015
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

4 participants