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

17 lines
256 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-22 00:17:34 +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-22 00:17:34 +10:00
- port: 6666
2023-06-20 00:03:12 +10:00
targetPort: 80
2023-06-22 00:17:34 +10:00
#name: http
#protocol: TCP
#nodePort: 30001