---
apiVersion: apps/v1
kind: Deployment
metadata:
  name: caddypod
spec:
  selector:
    matchLabels:
      app: caddypod
  replicas: 1
  template:
    metadata:
      labels:
        app: caddypod
    spec:
      containers:
      - name: caddypod
        image: abiosoft/caddy
        command: ["/bin/sh", "-ec", "/usr/bin/caddy -version; /usr/bin/caddy -plugins; /usr/bin/caddy -port 80 -http-port 80"]
        imagePullPolicy: IfNotPresent
        ports:
        - containerPort: 80
        - containerPort: 443
