Location for Fabric8 App Settings

30 views
Skip to first unread message

Venkat K

unread,
Sep 7, 2016, 9:06:40 AM9/7/16
to fabric8
Dear all:

Could you please share where the App settings are store? I was assuming it is in Gogs and read somewhere I can be stored in Github but not clear. 

Warm Regards,
Venkat.

Christian Posta

unread,
Sep 7, 2016, 9:27:10 AM9/7/16
to Venkat K, fabric8
Do you mean configuration files for your app?




--
You received this message because you are subscribed to the Google Groups "fabric8" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fabric8+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Christian Posta
twitter: @christianposta

James Strachan

unread,
Sep 7, 2016, 9:58:38 AM9/7/16
to Venkat K, fabric8
which App were you thinking of in particular? Your own app or one of the fabric8 apps? FWIW the fabric8 apps often have their own ConfigMap where they can be configured post-install

--
You received this message because you are subscribed to the Google Groups "fabric8" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fabric8+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
James
-------
Red Hat

Twitter: @jstrachan
Email: james.s...@gmail.com
Blog: https://medium.com/@jstrachan/

open source microservices platform

K Venkatasubramaniyan

unread,
Sep 7, 2016, 10:25:46 AM9/7/16
to James Strachan, fabric8
It is our app James. For example when the pod is restarted all the Apps we have created are gone from Fabric8 console (as expected they are still running in the cluster)

On Wed, 7 Sep 2016 at 19:28 James Strachan <james.s...@gmail.com> wrote:
which App were you thinking of in particular? Your own app or one of the fabric8 apps? FWIW the fabric8 apps often have their own ConfigMap where they can be configured post-install

On 7 September 2016 at 14:06, Venkat K <venkat.su...@gmail.com> wrote:
Dear all:

Could you please share where the App settings are store? I was assuming it is in Gogs and read somewhere I can be stored in Github but not clear. 

Warm Regards,
Venkat.

--
You received this message because you are subscribed to the Google Groups "fabric8" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fabric8+u...@googlegroups.com.

James Strachan

unread,
Sep 7, 2016, 10:48:00 AM9/7/16
to K Venkatasubramaniyan, fabric8
On 7 September 2016 at 15:25, K Venkatasubramaniyan <venkat.su...@gmail.com> wrote:
It is our app James. For example when the pod is restarted all the Apps we have created are gone from Fabric8 console (as expected they are still running in the cluster)

which pod are you talking about here? The app you create is one or more pods.

FWIW we recently added persistence to gogs, nexus & jenkins so that if any of those pods are restarted the apps you've created stay there:


 

On Wed, 7 Sep 2016 at 19:28 James Strachan <james.s...@gmail.com> wrote:
which App were you thinking of in particular? Your own app or one of the fabric8 apps? FWIW the fabric8 apps often have their own ConfigMap where they can be configured post-install

On 7 September 2016 at 14:06, Venkat K <venkat.su...@gmail.com> wrote:
Dear all:

Could you please share where the App settings are store? I was assuming it is in Gogs and read somewhere I can be stored in Github but not clear. 

Warm Regards,
Venkat.

--
You received this message because you are subscribed to the Google Groups "fabric8" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fabric8+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--
James
-------
Red Hat

Twitter: @jstrachan
Email: james.s...@gmail.com
Blog: https://medium.com/@jstrachan/

open source microservices platform

Venkat K

unread,
Sep 9, 2016, 2:41:10 PM9/9/16
to fabric8, venkat.su...@gmail.com
Thank you James for the response and the new PVC stuff. 

I am still a bit confused though. We create things like Teams, namespaces for environments and apps in the Fabric8 console. It is not clear where are those things persisted. When I had to restart the docker in minions for the insecure registry these things disappeared. I thought it is in gogs but I did not find any repo there when I signed in as gogsadmin.


On Wednesday, 7 September 2016 20:18:00 UTC+5:30, James Strachan wrote:
On 7 September 2016 at 15:25, K Venkatasubramaniyan <venkat.su...@gmail.com> wrote:
It is our app James. For example when the pod is restarted all the Apps we have created are gone from Fabric8 console (as expected they are still running in the cluster)

which pod are you talking about here? The app you create is one or more pods.

FWIW we recently added persistence to gogs, nexus & jenkins so that if any of those pods are restarted the apps you've created stay there:


 
On Wed, 7 Sep 2016 at 19:28 James Strachan <james.s...@gmail.com> wrote:
which App were you thinking of in particular? Your own app or one of the fabric8 apps? FWIW the fabric8 apps often have their own ConfigMap where they can be configured post-install

On 7 September 2016 at 14:06, Venkat K <venkat.su...@gmail.com> wrote:
Dear all:

Could you please share where the App settings are store? I was assuming it is in Gogs and read somewhere I can be stored in Github but not clear. 

Warm Regards,
Venkat.

--
You received this message because you are subscribed to the Google Groups "fabric8" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fabric8+u...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--
James
-------
Red Hat

Twitter: @jstrachan
Email: james.s...@gmail.com
Blog: https://medium.com/@jstrachan/

open source microservices platform

James Strachan

unread,
Sep 9, 2016, 3:12:58 PM9/9/16
to Venkat K, fabric8
On 9 September 2016 at 19:41, Venkat K <venkat.su...@gmail.com> wrote:
Thank you James for the response and the new PVC stuff. 

I am still a bit confused though. We create things like Teams, namespaces for environments and apps in the Fabric8 console. It is not clear where are those things persisted.

Ah sorry about that. We need a nice docs page describing this in more detail.

So 

* a Team is a kubernetes Namespace where fabric8 runs along with your development tools (gogs, nexus, jenkins etc). Then in a ConfigMap in there called 'fabric8-environments' we define the environments. 

* an Environment is just another kubernetes Namespace where the Apps you develop run (or any other Apps you wanna run - such as Hystrix dashboard or whatever).

* when you create an App it creates a git repository in gogs (the git hosting server). If you prefer you can create projects in any git repository (e.g. github or Stash or whatever) and import them.

* when you associate an App with a Jenkins Pipeline it adds that pipeline (a Jenkinsfile) into your git source code; it also creates a Jenkins job for your project All the persistence for your app is in the git repository (and the Jenkinsfile has the configuration of the CD Pipeline).

 
When I had to restart the docker in minions for the insecure registry these things disappeared. I thought it is in gogs but I did not find any repo there when I signed in as gogsadmin.


We're you using the PVC stuff for gogs? That shoud ensure that all the data for gogs, nexus and jenkins is stored in a Persistent Volume. With Kubernetes you can choose different PV implementations. If you try out fabric8 with minikube or minishift it uses 'hostPath' volumes which are just directories in the VM (in /data/).

 
To unsubscribe from this group and stop receiving emails from it, send an email to fabric8+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

K Venkatasubramaniyan

unread,
Sep 9, 2016, 3:21:06 PM9/9/16
to James Strachan, fabric8
Thank you. And really sorry if I am asking stupid question. 

1. When we import rather than create a new App on gogs repo, how does it keep track of app list so that it shows in the fabric8 console? 
2. How does the mapping to Jenkins Job to an app listed in the Fabric8 console? 

I was assuming the list of apps and mapping is stored somewhere by Fabric8.

James Strachan

unread,
Sep 9, 2016, 3:58:35 PM9/9/16
to K Venkatasubramaniyan, fabric8
On 9 September 2016 at 20:21, K Venkatasubramaniyan <venkat.su...@gmail.com> wrote:
Thank you. And really sorry if I am asking stupid question. 

No question is stupid; if something's not totally clear its our fault for not having good enough docs - or making the software simple enough! :) Please keep the questions coming!

 
1. When we import rather than create a new App on gogs repo, how does it keep track of app list so that it shows in the fabric8 console? 

Good question ;)

On OpenShift there is a resource called 'BuildConfig' which we use to keep track of what apps exist either in gogs or elsewhere. So on openshift you can type:

   oc get buildconfigs

to see them.


Right now on kubernetes we have a little microservice called jenkinshift which implements a similar REST API to openshift's BuildConfig API but it delegates down to Jenkins to decide what apps exist. So the App List is kinda like the list of builds in Jenkins on kubernetes. 

Longer term when using vanilla Kubernetes we're hoping to move to either Third Party Resources or Api Groups (which support resource extension kindas - as there's no 'App' resource in kubernetes). Or we could use ConfigMaps I suppose.

 
 
2. How does the mapping to Jenkins Job to an app listed in the Fabric8 console? 

In OpenShift the BuildConfig is annotated with the gogs repository and jenkins build; it also stores the git URL and stuff too. On kubernetes, the console gets a similar BuildConfig but its created from the Jenkins Job
 

I was assuming the list of apps and mapping is stored somewhere by Fabric8.

Yeah; due to portability between kubernetes and openshift its slightly complex ;) - eventually it'd be nice to just store all this stuff in kubernetes resources really.

K Venkatasubramaniyan

unread,
Sep 9, 2016, 4:03:12 PM9/9/16
to James Strachan, fabric8
Thank you Again James. So if Jenkins persistence is setup, it will make pretty much entire Fabric8 persistence work in Kubernetes.
Reply all
Reply to author
Forward
0 new messages