Skip to content

Instantly share code, notes, and snippets.

@shankarshastri
Last active January 29, 2020 14:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shankarshastri/3ce83bd8922a4e6d0c6add49bf30c7eb to your computer and use it in GitHub Desktop.
Save shankarshastri/3ce83bd8922a4e6d0c6add49bf30c7eb to your computer and use it in GitHub Desktop.
Redis And Redis Insight
apiVersion: v1
kind: Service
metadata:
name: redis-service
spec:
type: LoadBalancer
selector:
app: redis
ports:
- name: redis
protocol: TCP
port: 6379
targetPort: 6379
- name: redis-insight
protocol: TCP
port: 8001
targetPort: 8001
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: redis-deployment
spec:
selector:
matchLabels:
app: redis
replicas: 1
template:
metadata:
labels:
app: redis
spec:
containers:
- name: redis
image: redislabs/redismod
ports:
- containerPort: 6379
protocol: TCP
- name: redis-insight
image: redislabs/redisinsight
imagePullPolicy: Always
ports:
- containerPort: 8001
protocol: TCP
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment