github.com/verrazzano/verrazzano@v1.7.1/examples/hello-helidon/hello-helidon-comp-service-template.yaml (about) 1 # Copyright (c) 2023, Oracle and/or its affiliates. 2 # Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl. 3 apiVersion: core.oam.dev/v1alpha2 4 kind: Component 5 metadata: 6 name: hello-helidon-component 7 spec: 8 workload: 9 apiVersion: oam.verrazzano.io/v1alpha1 10 kind: VerrazzanoHelidonWorkload 11 metadata: 12 name: hello-helidon-workload 13 labels: 14 app: hello-helidon 15 version: v1 16 spec: 17 deploymentTemplate: 18 metadata: 19 name: hello-helidon-deployment 20 podSpec: 21 containers: 22 - name: hello-helidon-container 23 image: "ghcr.io/verrazzano/example-helidon-greet-app-v1:1.0.0-1-20230126194830-31cd41f" 24 ports: 25 - containerPort: 8081 26 name: http 27 env: 28 - name: SERVER_PORT 29 value: "8081" 30 serviceTemplate: 31 metadata: 32 name: hello-helidon-custom-service 33 serviceSpec: 34 ports: 35 - name: http-hello-helidon 36 protocol: TCP 37 port: 8082 38 targetPort: 8081