---
apiVersion: apps/v1
kind: StatefulSet
metadata:
  name: litecoin
  namespace: litecoin
spec:
  selector:
    matchLabels:
      app: litecoin
  serviceName: litecoin-svc
  replicas: 1
  template:
    metadata:
      labels:
        app: litecoin
    spec:
      containers:
        - name: litecoin
          image: leb4r/litecoin:0.18.1
          imagePullPolicy: IfNotPresent
          ports:
            - name: rpc
              containerPort: 9333
              protocol: TCP
          resources:
            limits:
              cpu: "4"
              memory: 8Gi
            requests:
              cpu: 50m
              memory: 256Mi
      volumes:
        - name: litecoin-data
          persistentVolumeClaim:
            claimName: litecoin-pvc
