mirror of
https://github.com/stefanprodan/podinfo.git
synced 2026-03-04 02:50:20 +00:00
node port and cluster ip services
This commit is contained in:
15
deploy/podinfo-svc-clusterip.yaml
Normal file
15
deploy/podinfo-svc-clusterip.yaml
Normal file
@@ -0,0 +1,15 @@
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: podinfo-clusterip
|
||||
labels:
|
||||
app: podinfo
|
||||
spec:
|
||||
type: ClusterIP
|
||||
ports:
|
||||
- port: 9898
|
||||
targetPort: 9898
|
||||
protocol: TCP
|
||||
selector:
|
||||
app: podinfo
|
||||
16
deploy/podinfo-svc-nodeport.yaml
Normal file
16
deploy/podinfo-svc-nodeport.yaml
Normal file
@@ -0,0 +1,16 @@
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: podinfo-nodeport
|
||||
labels:
|
||||
app: podinfo
|
||||
spec:
|
||||
type: NodePort
|
||||
ports:
|
||||
- port: 9898
|
||||
targetPort: 9898
|
||||
nodePort: 31190
|
||||
protocol: TCP
|
||||
selector:
|
||||
app: podinfo
|
||||
Reference in New Issue
Block a user