apiVersion: v1 kind: Service # Arbitrary Metadata block. Must have a name. metadata: name: kvm-windows #labels: #name: my-service spec: # Optionally, have a type. Valid options are ExternalName, ClusterIP, NodePort, and LoadBalancer #type: NodePort # # Selector finds the target pod this service routes to. selector: name: kvm-test-windows ports: - port: 5901 # service name for this port, must be a DNS label. name: spice # targetPort can be a name or a number on the pod that we're targeting targetPort: 5901 protocol: TCP # If 'type: NodePort', which port to expose on all machines #nodePort: 32378