version: v1beta2
containers:
  - name: hello_world
    image: fedora
    command: ['/bin/sh', '-c', 'while true; do echo fedora world; sleep 1; done']
    workingDir:
    volumeMounts:
      - name: data
        mountPath: /data
        readOnly: true
    ports:
      - name: http_port
        containerPort: 80
        hostPort: 8081
        protocol: tcp
    env:
      - name: GOPATH
        value: /mnt
  - name: other_world
    image: ubuntu
    command: ['/bin/sh', '-c', 'while true; do echo ubuntu world; sleep 1; done']
    workingDir:
    volumeMounts:
      - name: data
        mountPath: /data
        readOnly: false
    ports:
      - name: http_port
        containerPort: 80
        hostPort: 8082
        protocol: tcp
    env:
      - name: GOPATH
        value: /mnt
volumes:
  - name: data