homelab/archive/2022.07.bxl-k3s-pi/utils/storage/redis/app.yaml

43 lines
670 B
YAML
Raw Normal View History

2023-04-16 15:04:06 +02:00
apiVersion: v1
kind: Service
metadata:
name: redis
namespace: storage
spec:
type: ClusterIP
clusterIP: None
selector:
app: redis
ports:
- name: redis
port: 6379
protocol: TCP
---
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: redis
namespace: storage
labels:
app: redis
annotations:
reloader.stakater.com/auto: "true"
spec:
selector:
matchLabels:
app: redis
replicas: 1
serviceName: redis
updateStrategy:
type: RollingUpdate
template:
metadata:
labels:
app: redis
spec:
containers:
- name: redis
image: redis:latest
imagePullPolicy: IfNotPresent