2023-06-19 23:57:55 +10:00
|
|
|
apiVersion: v1
|
|
|
|
kind: Service
|
|
|
|
metadata:
|
|
|
|
name: hw-service
|
|
|
|
namespace: vdk2ch
|
|
|
|
spec:
|
2023-06-22 00:23:02 +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:24:17 +10:00
|
|
|
- port: 80
|
2023-06-20 00:03:12 +10:00
|
|
|
targetPort: 80
|
2023-06-22 00:24:17 +10:00
|
|
|
nodePort: 30001
|
2023-06-22 00:45:48 +10:00
|
|
|
|
|
|
|
|
|
|
|
# - protocol: TCP
|
|
|
|
# port: 8080
|
|
|
|
# targetPort: 8080
|
|
|
|
# nodePort: 32129
|
2023-06-22 00:17:34 +10:00
|
|
|
#name: http
|
|
|
|
#protocol: TCP
|
|
|
|
|
|
|
|
|
|
|
|
#nodePort: 30001
|