---
apiVersion: apps.openshift.io/v1
kind: DeploymentConfig
metadata:
  labels:
    io.kompose.service: myservice
  name: myservice
spec:
  replicas: 1
  selector:
    io.kompose.service: myservice
  template:
    metadata:
      labels:
        io.kompose.service: myservice
    spec:
      containers:
        - args:
            - curl
            - :///
          env:
            - name: DOMAIN
              value: google.com
            - name: PROTOCOL
              value: https
          image: ' '
          name: myservice
      restartPolicy: Always
  test: false
  triggers:
    - type: ConfigChange
    - imageChangeParams:
        automatic: true
        containerNames:
          - myservice
        from:
          kind: ImageStreamTag
          name: myservice:latest
      type: ImageChange

---
apiVersion: image.openshift.io/v1
kind: ImageStream
metadata:
  labels:
    io.kompose.service: myservice
  name: myservice
spec:
  lookupPolicy:
    local: false
  tags:
    - from:
        kind: DockerImage
        name: alpine
      name: latest
      referencePolicy:
        type: ""

