java/java-hello-world/kubernetes-manifests/hello.service.yaml (12 lines of code) (raw):

apiVersion: v1 kind: Service metadata: name: java-hello-world-external spec: type: LoadBalancer selector: app: java-hello-world ports: - name: http port: 80 targetPort: 8080