apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: redis-master
spec:
replicas: 1
template:
labels:
app: redis
role: master
tier: backend
containers:
- name: master
image: redis
ports:
- containerPort: 6379