Skip to content

Instantly share code, notes, and snippets.

@v-kelkar
Last active September 29, 2019 01:56
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save v-kelkar/6dd938ec8aa9e26cb39edcb7420683e9 to your computer and use it in GitHub Desktop.
Redis Enterprise Kubernetes Services & Deployments
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: redis5
spec:
replicas: 3
template:
metadata:
labels:
app: redis5
spec:
containers:
- name: redis5
image: redislabs/redis:5.0.0-31
ports:
- containerPort: 8001
- containerPort: 8443
- containerPort: 9443
securityContext:
capabilities:
add:
- SYS_RESOURCE
---
apiVersion: v1
kind: Service
metadata:
name: redis5
labels:
app: redis5
spec:
ports:
- port: 8001
targetPort: 8001
protocol: TCP
name: sentinal
- port: 8443
targetPort: 8443
protocol: TCP
name: ui
- port: 9443
targetPort: 9443
protocol: TCP
name: api
selector:
app: redis5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment