k8s-redis-ha icon indicating copy to clipboard operation
k8s-redis-ha copied to clipboard

Cannot deploy

Open ray65536 opened this issue 6 years ago • 12 comments

minikube version: v0.27.0 OS - Ubuntu 16.04

Events:
  Type     Reason                 Age                 From               Message
  ----     ------                 ----                ----               -------
  Normal   Scheduled              58m                 default-scheduler  Successfully assigned redis-server-0 to minikube
  Normal   SuccessfulMountVolume  58m                 kubelet, minikube  MountVolume.SetUp succeeded for volume "opt"
  Normal   SuccessfulMountVolume  58m                 kubelet, minikube  MountVolume.SetUp succeeded for volume "redis-server-volume"
  Normal   SuccessfulMountVolume  58m                 kubelet, minikube  MountVolume.SetUp succeeded for volume "default-token-8bkfj"
  Normal   Pulling                57m                 kubelet, minikube  pulling image "redis:3.2"
  Normal   Pulled                 56m                 kubelet, minikube  Successfully pulled image "redis:3.2"
  Normal   Pulled                 55m (x4 over 56m)   kubelet, minikube  Container image "redis:3.2" already present on machine
  Normal   Created                55m (x5 over 56m)   kubelet, minikube  Created container
  Warning  Failed                 55m (x5 over 56m)   kubelet, minikube  Error: failed to start container "redis-server": Error response from daemon: OCI runtime create failed: container_linux.go:348: starting container process caused "exec: \"/opt/bin/k8s-redis-ha-server\": stat /opt/bin/k8s-redis-ha-server: no such file or directory": unknown
  Warning  BackOff                2m (x232 over 56m)  kubelet, minikube  Back-off restarting failed container

ray65536 avatar Jun 08 '18 06:06 ray65536

I get this too, a shame, I'll have to keep looking... Connecting to Kubernetes 1.9 cluster.

andyjeffries avatar Jun 18 '18 12:06 andyjeffries

I tried it a few different way including bypassing the run.sh and moving all the the contents there to the Dockerfile. Still no luck :-(

markjacksonfishing avatar Jun 30 '18 20:06 markjacksonfishing

Anyone get any progress with this?

MPJHorner avatar Jul 25 '18 09:07 MPJHorner

I personally moved on from this. I built my own and will be opening up my work to the public on Friday

markjacksonfishing avatar Jul 25 '18 12:07 markjacksonfishing

Does anyone get some luck about this issue? @markyjackson-taulia could you share your work? thx

fulvi0 avatar Oct 17 '18 01:10 fulvi0

@fulvi0 my work is here: https://github.com/draios/sysdigcloud-kubernetes

markjacksonfishing avatar Oct 17 '18 04:10 markjacksonfishing

Check this PR, it fixes this issue. https://github.com/tarosky/k8s-redis-ha/pull/23

reyou avatar Dec 31 '18 19:12 reyou

System-Version:

Kubernetes version: v1.13.1 (deployed with Juju on bare metal) OS - Ubuntu 18.04

What I did:

  • Downloaded "example"-directory
  • Executed "kubectl create -f /example"

This happens:

redis_error

Did I missed something?

FreundB avatar Jan 17 '19 18:01 FreundB

Check this https://github.com/tarosky/k8s-redis-ha/pull/23

reyou avatar Jan 17 '19 18:01 reyou

Also while I was experiencing with redis, a master pod with N amount of slaves, with persistent volume, and and redis-persistence enabled is almost high-available.

Even if master is gone, kubernetes just launches another one in split second, and redis master hooks back to persistent storage. All it happens under 3-5 seconds, and if you are OK with that, you will not even need that complex custom configuration of sentinel. And while master is down, you can still read from slaves.

reyou avatar Jan 17 '19 18:01 reyou

Using a sentinel is a good thing here

markjacksonfishing avatar Jan 17 '19 18:01 markjacksonfishing

Made my day! It works from the beginning.

Maybe I take a deeper look next time. I want to build multiple Redis-clusters in Kubernetes and learn how to use them. With this solution I can finally start my journey. I don't know about sentinel, but I'll see how to use it.

Cheers

FreundB avatar Jan 17 '19 19:01 FreundB