-
Notifications
You must be signed in to change notification settings - Fork 30
PersistentVolume for mysql-data #92
Comments
Glad you got it sorted. Most Kubernetes deployments now use dynamic provisioning and this post to provision PVs. If the YAML file had a PV in it, it becomes less portable so it is preferred to leave that out and either statically create the PV or use dynamic provisioning to create it. |
@jimmidyson Thanks. IMHO either it would have to be documented in the - apiVersion: "v1"
kind: "PersistentVolumeClaim"
metadata:
labels:
provider: "fabric8"
project: "zipkin-mysql"
version: "0.1.5"
group: "io.fabric8.zipkin"
name: "mysql-data"
annotations:
volume.alpha.kubernetes.io/storage-class: default
spec:
accessModes:
- "ReadWriteOnce"
resources:
requests:
storage: "100Mi" Thoughts? |
I'm having a similar issue with OpenShift, however because the PVC is still pending, it doesn't seem as though there is a YAML available for me to edit, or any option to create one. I'm very new to OpenShift, so does anyone have any suggestions? Thanks! |
I'm having the same issue on
|
@simongui What does |
I got it to work. I had to create a persistent volume before deploying Zipkin. mysql-data.yml
I'm new to Kubernetes but I'm assuming this isn't a good volume to create because it's pointed to |
Following as I'm having the same problem to deploy in OpenShift/CDK |
I was able to get it working
Here is the YAML https://gist.github.com/naveensrinivasan/58ef741faa69f18fafb2c3e0df95d62f |
What did you change to make this work @naveensrinivasan? I tried to add this to the
|
Did you have a look at the Yaml in the gist? |
Yeah, the main thing I see different is what I pasted. Was there anything more? I'm also having difficulty deploying this version of the YAML from your gist. It seems sometimes all the pods come up except the Zipkin one. Almost like it's trying to connect to dependent services and fails before they come up. |
What is the error from the pod logs?
…On Sun, Apr 2, 2017 at 4:27 PM Simon Guindon ***@***.***> wrote:
Yeah, the main thing I see different is what I pasted. Was there anything
more? I'm also having difficulty deploying this version of the YAML from
your gist. It seems sometimes all the pods come up except the Zipkin one.
Almost like it's trying to connect to dependent services and fails before
they come up.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#92 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAKimaLthDQt4yekbgmLA5yeYbZgQZ0iks5rsAS5gaJpZM4MUoJS>
.
|
|
Oh weird, after 30-60mins I refreshed and it finally shows up as running. That's a really long time. |
Scratch that, it's still not running.
|
Here is what I did to delete/create a new pvc
|
To clarify, the problem issues for me were that Manually creating a volume with that name, or removing the volumeName before creating the resource should work, depending on usage of automatic PV provisioners. |
Hey guys, I have followed your suggestions but with no luck...the
I am creating a fresh PVC with AWS EBS right after deploying everything. Any ideas? |
Ok, apparently on k8s there is this active issue with running mysql docker-library/mysql#186. The solution is to add the following args to the
|
Ok, apparently on k8s there is this active issue with running mysql
docker-library/mysql#186
<docker-library/mysql#186>. The solution is to
add the following args to the zipkin-mysql Pod:
Thanks for following up
|
I think the small change proposed in #118 would save a lot of confusion. For example, a minishift user will automatically have PVs that are appropriate for the template, but they won't bind because they're not named |
I had to specify the storageClassName to get the PVC to bind to the PV
|
I was trying to run the
zipkin-starter-0.1.5-kubernetes.yml
in minikube and ran into an issue where the PVC was stuck in the pending mode.That is when I realized the yml file didn't have an entry for the PersistentVolume which was causing the PVC to be stuck forever.
When I created an entry for the PersistentVolume things have started working.
The text was updated successfully, but these errors were encountered: