---
apiVersion: apps/v1
kind: StatefulSet
metadata:
  name: sharded-redis-statefulset
  namespace: ops
spec:
  serviceName: sharded-redis-service
  replicas: 3
  selector:
    matchLabels:
      app: sharded-redis
  template:
    metadata:
      labels:
        app: sharded-redis
    spec:
      terminationGracePeriodSeconds: 10
      containers:
      - name: redis
        image: redis
        ports:
        - name: redis
          containerPort: 6379
