apiVersion: apps/v1
kind: StatefulSet
metadata:
  name: testapp
spec:
  serviceName: frontend
  selector:
    matchLabels:
      app: testapp
  replicas: 1
  template:
    metadata:
      labels:
        app: testapp
    spec:
      containers:
      - name: testapp
        image: registry.access.redhat.com/ubi8/ruby-27:latest
        command:
        - /bin/sleep
        args:
        - infinity
