apiVersion: apps/v1
kind: Deployment
metadata:
  name: gerritbot-deployment
spec:
  replicas: 1
  selector:
    matchLabels:
      app: gerritbot
  template:
    metadata:
      labels:
        app: gerritbot
      annotations:
        container.seccomp.security.alpha.kubernetes.io/gerritbot: docker/default
        container.apparmor.security.beta.kubernetes.io/gerritbot: runtime/default
    spec:
      containers:
      - name: gerritbot
        image: gcr.io/symbolic-datum-552/gerritbot:latest
        imagePullPolicy: Always
        command: ["/sbin/tini", "--", "/gerritbot", "-listen=:80", "-autocert-bucket=golang-gerritbot-autocert", "-gitcookies-file=/gitcookies"]
        ports:
        - containerPort: 80
        - containerPort: 443
        resources:
          requests:
            cpu: "1"
            memory: "4Gi"
          limits:
            memory: "6Gi"
