Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.