fixed the redis issue
This commit is contained in:
parent
171b8cb775
commit
594361ef87
|
@ -15,7 +15,7 @@
|
||||||
FROM golang:1.10.0
|
FROM golang:1.10.0
|
||||||
RUN go get github.com/codegangsta/negroni \
|
RUN go get github.com/codegangsta/negroni \
|
||||||
github.com/gorilla/mux \
|
github.com/gorilla/mux \
|
||||||
github.com/xyproto/simpleredis
|
github.com/xyproto/simpleredis/v2
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
ADD ./main.go .
|
ADD ./main.go .
|
||||||
RUN CGO_ENABLED=0 GOOS=linux go build -o main .
|
RUN CGO_ENABLED=0 GOOS=linux go build -o main .
|
||||||
|
|
|
@ -24,7 +24,7 @@ import (
|
||||||
|
|
||||||
"github.com/codegangsta/negroni"
|
"github.com/codegangsta/negroni"
|
||||||
"github.com/gorilla/mux"
|
"github.com/gorilla/mux"
|
||||||
"github.com/xyproto/simpleredis"
|
"github.com/xyproto/simpleredis/v2"
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
|
|
@ -18,7 +18,7 @@ spec:
|
||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- name: redis-master
|
- name: redis-master
|
||||||
image: registry.k8s.io/redis:e2e
|
image: redis
|
||||||
ports:
|
ports:
|
||||||
- name: redis-server
|
- name: redis-server
|
||||||
containerPort: 6379
|
containerPort: 6379
|
||||||
|
|
|
@ -18,7 +18,7 @@ spec:
|
||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- name: redis-replica
|
- name: redis-replica
|
||||||
image: registry.k8s.io/redis-slave:v2
|
image: k8s.gcr.io/redis-slave:v2
|
||||||
ports:
|
ports:
|
||||||
- name: redis-server
|
- name: redis-server
|
||||||
containerPort: 6379
|
containerPort: 6379
|
||||||
|
|
Loading…
Reference in New Issue