Create service.yaml
This commit is contained in:
committed by
GitHub
parent
e3b7f3f14c
commit
859227248b
14
jenkins-demo/service.yaml
Normal file
14
jenkins-demo/service.yaml
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: solar-system
|
||||||
|
name: solar-system-serevice
|
||||||
|
spec:
|
||||||
|
ports:
|
||||||
|
- port: 3000
|
||||||
|
protocol: TCP
|
||||||
|
targetPort: 3000
|
||||||
|
selector:
|
||||||
|
app: solar-system
|
||||||
|
type: NodePort
|
||||||
Reference in New Issue
Block a user