# NodePort with three replicas: random failures

**URL:** <https://discuss.kubernetes.io/t/nodeport-with-three-replicas-random-failures/28320>\
**Category:** General Discussions\
**Created:** [May 19, 2024, 5:52pm UTC](https://discuss.kubernetes.io/t/nodeport-with-three-replicas-random-failures/28320 "2024-05-19T17:52:16Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Garegin\_Grigoryan](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.kubernetes.io/garegin_grigoryan/32/15023_2.png) [@Garegin\_Grigoryan](https://discuss.kubernetes.io/u/Garegin_Grigoryan)\
**Post date:** [May 19, 2024, 5:52pm UTC](https://discuss.kubernetes.io/t/nodeport-with-three-replicas-random-failures/28320/1 "2024-05-19T17:52:16Z")

</div>

Hello,

I deployed a Kubernetes deployment with 3 pod replicas using the following yaml:

```auto
apiVersion: apps/v1
kind: Deployment
metadata:
  name: nginx
  labels:
    app: nginx
spec:
  replicas: 3
  selector:
    matchLabels:
      app: nginx
  template:
    metadata:
      labels:
        app: nginx
    spec:
      containers:
      - name: nginx
        image: nginx
        ports:
        - containerPort: 80

```

I then deployed a NodePort service using the following yaml:

```auto
apiVersion: v1
kind: Service
metadata:
  name: ngnix-service
spec:
  selector:
    app: nginx
  type: NodePort
  ports:
  - protocol: TCP
    port: 80
    targetPort: 80

```

The problem I’m facing is that I am having intermittent issues with the pods: when I send requests to the webservers deployed at the pods, they frequently timeout. I do not have this issue when I run only one replica.

### Cluster information:

Kubernetes version: v1.28.10  
Cloud being used: FABRIC testbed  
Host OS: Ubuntu 20.04.6 LTS (Focal Fossa)  
CNI and version: flannel 0.3.1
