apiVersion: v1
kind: Service
metadata:
  name: kubia
  namespace: chp16-set1633
# we do not create pods here, only set up the ports for them
spec:
  ports:
  - port: 80 # accept connections on port 80
    targetPort: 8080 # match containerPort, which is 8080
  selector: # select pods with app=kubia label for this service 
    app: kubia-deploy
