---
apiVersion: v1
kind: DeploymentConfig
metadata:
  labels:
    app: silverblue
    service: silverblue
  name: silverblue
spec:
  replicas: 2
  selector:
    app: silverblue
    deploymentconfig: silverblue
  strategy:
    resources: {}
  template:
    metadata:
      labels:
        app: silverblue
        deploymentconfig: silverblue
    spec:
      containers:
      - image: silverblue:latest
        name: silverblue
        ports:
        - containerPort: 8080
          protocol: TCP
        readinessProbe:
          timeoutSeconds: 1
          initialDelaySeconds: 5
          httpGet:
            path: /
            port: 8080
        livenessProbe:
          timeoutSeconds: 1
          initialDelaySeconds: 30
          httpGet:
            path: /
            port: 8080

  triggers:
  - type: ConfigChange
  - type: ImageChange
    imageChangeParams:
      automatic: true
      containerNames:
      - silverblue
      from:
        kind: ImageStreamTag
        name: silverblue:latest
