cloudnet-compose/k8s-specifications/redis-deployment.yaml

30 lines
510 B
YAML
Raw Permalink Normal View History

apiVersion: apps/v1
2018-03-05 12:57:48 +01:00
kind: Deployment
metadata:
labels:
app: redis
2018-03-05 12:57:48 +01:00
name: redis
namespace: vote
2018-03-05 12:57:48 +01:00
spec:
replicas: 1
selector:
matchLabels:
app: redis
2018-03-05 12:57:48 +01:00
template:
metadata:
labels:
app: redis
spec:
containers:
- image: redis:alpine
name: redis
ports:
- containerPort: 6379
name: redis
2018-03-05 12:57:48 +01:00
volumeMounts:
- mountPath: /data
name: redis-data
volumes:
- name: redis-data
emptyDir: {}