fixed the redis issue

This commit is contained in:
bansalji02 2024-05-10 17:17:15 +05:30
parent 171b8cb775
commit 594361ef87
4 changed files with 4 additions and 4 deletions

View File

@ -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 .

View File

@ -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 (

View File

@ -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

View File

@ -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