diff --git a/deploy/podinfo-svc-clusterip.yaml b/deploy/podinfo-svc-clusterip.yaml new file mode 100644 index 0000000..a16c39c --- /dev/null +++ b/deploy/podinfo-svc-clusterip.yaml @@ -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 diff --git a/deploy/podinfo-svc-nodeport.yaml b/deploy/podinfo-svc-nodeport.yaml new file mode 100644 index 0000000..c0aff08 --- /dev/null +++ b/deploy/podinfo-svc-nodeport.yaml @@ -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