24 lines
367 B
YAML
24 lines
367 B
YAML
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: hw-service
|
|
namespace: vdk2ch
|
|
spec:
|
|
type: NodePort
|
|
selector:
|
|
app: helloworld
|
|
ports:
|
|
- port: 80
|
|
targetPort: 80
|
|
nodePort: 30001
|
|
|
|
|
|
# - protocol: TCP
|
|
# port: 8080
|
|
# targetPort: 8080
|
|
# nodePort: 32129
|
|
#name: http
|
|
#protocol: TCP
|
|
|
|
|
|
#nodePort: 30001 |