Skip to content

Instantly share code, notes, and snippets.

@josejuansanchez
Created December 1, 2021 21:46
Show Gist options
  • Save josejuansanchez/f24c6402c696a577ebaf87d019fdcae1 to your computer and use it in GitHub Desktop.
Save josejuansanchez/f24c6402c696a577ebaf87d019fdcae1 to your computer and use it in GitHub Desktop.
apiVersion: apps/v1
kind: Deployment
metadata:
name: redis
labels:
app: redis
tier: backend
spec:
replicas: 1
selector:
matchLabels:
app: redis
tier: backend
template:
metadata:
labels:
app: redis
tier: backend
spec:
volumes:
- name: volumen-redis
persistentVolumeClaim:
claimName: pvc-redis
containers:
- name: contenedor-redis
image: redis
command: ["redis-server"]
args: ["--appendonly", "yes"]
ports:
- name: redis-server
containerPort: 6379
volumeMounts:
- mountPath: "/data"
name: volumen-redis
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment