apiVersion: apps/v1
kind: Deployment
metadata:
  labels:
    app: branding
  name: branding
  namespace: openshift-azure-branding
spec:
  replicas: 2
  selector:
    matchLabels:
      app: branding
  strategy:
    rollingUpdate:
      maxSurge: 0
      maxUnavailable: 1
  template:
    metadata:
      labels:
        app: branding
    spec:
      affinity:
        podAntiAffinity:
          requiredDuringSchedulingIgnoredDuringExecution:
          - labelSelector:
              matchExpressions:
              - key: app
                operator: In
                values:
                - openshift-azure-branding
            topologyKey: kubernetes.io/hostname
      containers:
      - image: '*** GENERATED ***'
        name: branding
        ports:
        - containerPort: 8080
        resources:
          limits:
            cpu: 200m
            memory: 200Mi
          requests:
            cpu: 10m
            memory: 25Mi
        volumeMounts:
        - mountPath: /opt/rh/httpd24/root/var/www/html
          name: branding
          readOnly: true
      nodeSelector:
        node-role.kubernetes.io/infra: "true"
      volumes:
      - configMap:
          name: branding
        name: branding
