c0e29c622c
update yaml to current deployment manifest defaults and try for more pairity between kube-deploy.yml and k8s-specifications
30 lines
510 B
YAML
30 lines
510 B
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
labels:
|
|
app: redis
|
|
name: redis
|
|
namespace: vote
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: redis
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: redis
|
|
spec:
|
|
containers:
|
|
- image: redis:alpine
|
|
name: redis
|
|
ports:
|
|
- containerPort: 6379
|
|
name: redis
|
|
volumeMounts:
|
|
- mountPath: /data
|
|
name: redis-data
|
|
volumes:
|
|
- name: redis-data
|
|
emptyDir: {}
|