apiVersion: apps.openshift.io/v1
kind: DeploymentConfig
metadata:
  name: web
  labels:
    app: ipsilon-website
spec:
  replicas: 1
  selector:
    app: ipsilon-website
    deploymentconfig: web
  strategy:
    type: Rolling
    activeDeadlineSeconds: 21600
    rollingParams:
      intervalSeconds: 1
      maxSurge: 25%
      maxUnavailable: 25%
      timeoutSeconds: 600
      updatePeriodSeconds: 1
  template:
    metadata:
      creationTimestamp: null
      labels:
        app: ipsilon-website
        deploymentconfig: web
    spec:
      containers:
        - name: ipsilon-website
          imagePullPolicy: Always
          ports:
            - containerPort: 8080
              #protocol: TCP
          readinessProbe:
            timeoutSeconds: 5
            initialDelaySeconds: 30
            httpGet:
              path: /
              port: 8080
          livenessProbe:
            timeoutSeconds: 5
            initialDelaySeconds: 30
            httpGet:
              path: /
              port: 8080
          #resources: {}
          #terminationMessagePath: /dev/termination-log
          #terminationMessagePolicy: File
  triggers:
    - type: ConfigChange
    - type: ImageChange
      imageChangeParams:
        automatic: true
        containerNames:
          - ipsilon-website
        from:
          kind: ImageStreamTag
          name: ipsilon-website:latest
