29 lines
510 B
YAML
29 lines
510 B
YAML
|
apiVersion: apps/v1
|
||
|
kind: Deployment
|
||
|
metadata:
|
||
|
name: redis
|
||
|
labels:
|
||
|
app.kubernetes.io/name: redis
|
||
|
spec:
|
||
|
replicas: 1
|
||
|
selector:
|
||
|
matchLabels:
|
||
|
app.kubernetes.io/name: redis
|
||
|
template:
|
||
|
metadata:
|
||
|
labels:
|
||
|
app.kubernetes.io/name: redis
|
||
|
spec:
|
||
|
containers:
|
||
|
- name: default
|
||
|
image: redis:latest
|
||
|
imagePullPolicy: Always
|
||
|
ports:
|
||
|
- containerPort: 6379
|
||
|
args:
|
||
|
- "--save"
|
||
|
- ""
|
||
|
- "--appendonly"
|
||
|
- "no"
|
||
|
|