apiVersion: v1
kind: Pod
metadata:
  name: hello
  labels:
    app: echo-server
spec:
  containers:
  - name: echo
    image: k8s.gcr.io/echoserver:1.10
    ports:
    - name: web
      containerPort: 8080
---
apiVersion: v1
kind: Pod
metadata:
  name: hello2
  labels:
    app: echo-server
spec:
  containers:
  - name: echo
    image: k8s.gcr.io/echoserver:1.10
    ports:
    - name: web
      containerPort: 8080
---
apiVersion: v1
kind: Service
metadata:
  name: hello-service
  labels:
    app: echo-server
spec:
  type: LoadBalancer
  ports:
  - port: 8080
    targetPort: 8080
    protocol: TCP
  selector:
    app: echo-server