apiVersion: v1
kind: ReplicationController
metadata:
  name: caddy-controller
spec:
  replicas: 2
  selector:
    app: web
  template:
    metadata:
      labels:
        app: web
    spec:
      containers:
        - name: caddy-frontend
          image: abiosoft/caddy
          ports:
            - containerPort: 2015
            - containerPort: 80
            - containerPort: 443
          resources:
            limits:
              memory: 40Mi
