---
apiVersion: v1
kind: DeploymentConfig
metadata:
  name: websites
  labels:
    app: websites
    service: websites
spec:
  replicas: 1
  selector:
    app: websites
    service: websites
  template:
    metadata:
      labels:
        app: websites
        service: websites
    spec:
      containers:
      - name: websites
        image: registry/websites:latest
        ports:
        - containerPort: 8080
        volumeMounts:
        readinessProbe:
          timeoutSeconds: 5
          initialDelaySeconds: 60
          httpGet:
            path: /
            port: 8080
            httpHeaders:
            - name: Host
              value: getfedora.org
        livenessProbe:
          timeoutSeconds: 5
          initialDelaySeconds: 60
          httpGet:
            path: /
            port: 8080
            httpHeaders:
            - name: Host
              value: getfedora.org
        resources:
      volumes:
  triggers:
  - type: ImageChange
    imageChangeParams:
      automatic: true
      containerNames:
      - "websites"
      from:
        kind: ImageStreamTag
        name: websites:latest
