Skip to content

Instantly share code, notes, and snippets.

@Juno119
Forked from v-kelkar/redis-enterprise5.yaml
Created September 29, 2019 01:56
Show Gist options
  • Save Juno119/8b8abeb7b8719f4e7b706a92dc91a0cd to your computer and use it in GitHub Desktop.
Save Juno119/8b8abeb7b8719f4e7b706a92dc91a0cd 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