apiVersion: apps/v1
kind: Deployment
metadata:
  name: testapp-route-v1
spec:
  replicas: 1
  selector:
    matchLabels:
      appver: testapp-route-v1
  template:
    metadata:
      annotations:
        sidecar.istio.io/inject: "true"
      labels:
        app: testapp-route
        ver: v1
        appver: testapp-route-v1
    spec:
      containers:
      - name: http
        image: quay.io/noseka1/openshift-toolbox:full
        command:
        - /bin/sh
        args:
        - -c
        - 'echo testapp-route-v1 > index.html &&
           python3 -m http.server 8080'
        # The container port must be declared, otherwise Istio won't
        # forward the traffic to the container correctly!
        ports:
        - containerPort: 8080
