Skip to content

Commit 594361e

Browse files
committed
fixed the redis issue
1 parent 171b8cb commit 594361e

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

guestbook-go/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
FROM golang:1.10.0
1616
RUN go get github.com/codegangsta/negroni \
1717
github.com/gorilla/mux \
18-
github.com/xyproto/simpleredis
18+
github.com/xyproto/simpleredis/v2
1919
WORKDIR /app
2020
ADD ./main.go .
2121
RUN CGO_ENABLED=0 GOOS=linux go build -o main .

guestbook-go/main.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import (
2424

2525
"github.com/codegangsta/negroni"
2626
"github.com/gorilla/mux"
27-
"github.com/xyproto/simpleredis"
27+
"github.com/xyproto/simpleredis/v2"
2828
)
2929

3030
var (

guestbook-go/redis-master-controller.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ spec:
1818
spec:
1919
containers:
2020
- name: redis-master
21-
image: registry.k8s.io/redis:e2e
21+
image: redis
2222
ports:
2323
- name: redis-server
2424
containerPort: 6379

guestbook-go/redis-replica-controller.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ spec:
1818
spec:
1919
containers:
2020
- name: redis-replica
21-
image: registry.k8s.io/redis-slave:v2
21+
image: k8s.gcr.io/redis-slave:v2
2222
ports:
2323
- name: redis-server
2424
containerPort: 6379

0 commit comments

Comments
 (0)