hawtio / hawtio-kubernetes

hawtio plugin for working with kubernetes
Apache License 2.0
24 stars 14 forks source link

Run... UI doesn't support PersistentVolumeClaim kinds #130

Closed jstrachan closed 7 years ago

jstrachan commented 7 years ago

e.g. the gogs + nexus + jenkins apps now include those

gashcrumb commented 7 years ago

So it's the 404 you get when you try and run one of those then?

jstrachan commented 7 years ago

I managed to run the template OK, its just no PVC seemd to get created. I guess that code that applies the objects in a Template just doesn't use the right URI for the POST maybe.

Lemme attach some sample kubernetes + openshift catalog yaml to demonstrate...

jstrachan commented 7 years ago

Here's my local build of the app-catalog for kubernetes and openshift; which on kubernetes makes the configmaps (named catalog-foo) and on openshift it makes templates.

https://gist.github.com/jstrachan/38e949c5277ea255f94629a0758d7835

To try install these on top of a regular install of fabric8 run one of these commands:

kubectl delete configmap -lkind=catalog
oc delete template --all

then one of these (depending on platform)

kubectl apply -f https://gist.githubusercontent.com/jstrachan/38e949c5277ea255f94629a0758d7835/raw/fd04b01c913b50c1828d6c9b86bde5d67a4679c0/app-catalog-kubernetes.yml
oc apply -f https://gist.githubusercontent.com/jstrachan/38e949c5277ea255f94629a0758d7835/raw/fd04b01c913b50c1828d6c9b86bde5d67a4679c0/app-catalog-openshift.yml
jstrachan commented 7 years ago

BTW its gogs, nexus and jenkins which have PVCs inside them. You could test it out by deleting gogs D/DC and its PVC, then re-running the app from one of these templates from the console and seeing if the PVC get recreated

gashcrumb commented 7 years ago

Yeah, just gave it a go into a different namespace for just gogs, the POST for the PVC gets a 404, so just working on figuring out the right URL to use :-)

jstrachan commented 7 years ago

yeah :) Think its a regular kubernetes v1 entity btw - wonder if the code is assuming openshift?

gashcrumb commented 7 years ago

This should be all set once we get a new hawtio-kubernetes release out...

jstrachan commented 7 years ago

thanks!