apiVersion: apps/v1
kind: Deployment
metadata:
  name: certbot
  namespace: nginx-ingress
spec:
  replicas: 1
  selector:
    matchLabels:
      app: certbot
  template:
    metadata:
      labels:
        app: certbot
    spec:
      containers:
      - name: certbot
        image: certbot/certbot
        command:
        - /bin/sh
        - -c
        args:
        - sleep 1d
        resources:
          requests:
            cpu: 100m
            memory: 200Mi
        ports:
        - containerPort: 80
---
apiVersion: v1
kind: Service
metadata:
  name: certbot
  namespace: nginx-ingress
spec:
  ports:
  - port: 80
    targetPort: 80
  selector:
    app: certbot
