# nginx-loadbalancer.yaml
apiVersion: v1
kind: Service
metadata:
  name: nginx-service
  labels:
    app: webservice
spec:
  type: LoadBalancer
  ports:
  - port: 80
    protocol: TCP
  selector:
    app: webservice
