gorush/k8s/gorush-redis-deployment.yaml

25 lines
403 B
YAML
Raw Permalink Normal View History

apiVersion: apps/v1
2017-06-07 14:11:05 +00:00
kind: Deployment
metadata:
name: redis
namespace: gorush
2017-06-07 14:11:05 +00:00
spec:
selector:
matchLabels:
app: redis
role: master
tier: backend
2017-06-07 14:11:05 +00:00
replicas: 1
template:
metadata:
labels:
app: redis
role: master
tier: backend
spec:
containers:
- name: master
image: redis
ports:
- containerPort: 6379