apiVersion: v1
kind: Service
metadata:
  name: o11y-stub
spec:
  selector:
    app.kubernetes.io/name: o11y-stub
  ports:
    - name: http
      port: 9090
      targetPort: http
---
apiVersion: apps/v1
kind: Deployment
metadata:
  name: o11y-stub
spec:
  replicas: 1
  selector:
    matchLabels:
      app.kubernetes.io/name: o11y-stub
  template:
    metadata:
      labels:
        app.kubernetes.io/name: o11y-stub
    spec:
      containers:
        - name: o11y-stub
          image: cp9.local/o11y-stub:placeholder
          ports:
            - name: http
              containerPort: 9090
          readinessProbe:
            httpGet:
              path: /healthz
              port: http
            periodSeconds: 2
            failureThreshold: 30
