k8s/manifests/02-services/hw-service.yaml

15 lines
237 B
YAML
Raw Normal View History

2023-06-19 23:57:55 +10:00
apiVersion: v1
kind: Service
metadata:
name: hw-service
namespace: vdk2ch
spec:
2023-06-20 00:03:12 +10:00
type: NodePort
2023-06-19 23:57:55 +10:00
selector:
2023-06-20 00:11:50 +10:00
app: helloworld
2023-06-19 23:57:55 +10:00
ports:
2023-06-20 00:17:25 +10:00
- name: http
protocol: TCP
2023-06-19 23:57:55 +10:00
port: 80
2023-06-20 00:03:12 +10:00
targetPort: 80
2023-06-20 00:04:29 +10:00
nodePort: 30001