apiVersion: apps/v1
kind: Deployment
metadata:
  name: squaremcp-docs
  namespace: fetcherpay
spec:
  replicas: 1
  selector:
    matchLabels:
      app: squaremcp-docs
  template:
    metadata:
      labels:
        app: squaremcp-docs
    spec:
      containers:
        - name: squaremcp-docs
          image: localhost:32000/squaremcp-docs@sha256:adbc221aca3cae4ce42a48d30a69e1745601baa6e425a113f4ae78eed06a5b3a
          imagePullPolicy: Always
          ports:
            - containerPort: 80
          readinessProbe:
            httpGet:
              path: /
              port: 80
            initialDelaySeconds: 3
            periodSeconds: 10
---
apiVersion: v1
kind: Service
metadata:
  name: squaremcp-docs
  namespace: fetcherpay
spec:
  selector:
    app: squaremcp-docs
  ports:
    - protocol: TCP
      port: 80
      targetPort: 80
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  name: squaremcp-docs-ingress
  namespace: fetcherpay
  annotations:
    cert-manager.io/cluster-issuer: letsencrypt-prod
spec:
  ingressClassName: nginx
  rules:
    - host: docs.squaremcp.com
      http:
        paths:
          - path: /
            pathType: Prefix
            backend:
              service:
                name: squaremcp-docs
                port:
                  number: 80
  tls:
    - hosts:
        - docs.squaremcp.com
      secretName: squaremcp-docs-tls
