# Warning : port is not allocated

**URL:** <https://discuss.kubernetes.io/t/warning-port-is-not-allocated/25227>\
**Category:** General Discussions\
**Tags:** service, network\
**Created:** [August 25, 2023, 2:42am UTC](https://discuss.kubernetes.io/t/warning-port-is-not-allocated/25227 "2023-08-25T02:42:40Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![choyoung\_kim](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.kubernetes.io/choyoung_kim/32/13151_2.png) [@choyoung\_kim](https://discuss.kubernetes.io/u/choyoung_kim)\
**Post date:** [August 25, 2023, 2:42am UTC](https://discuss.kubernetes.io/t/warning-port-is-not-allocated/25227/1 "2023-08-25T02:42:40Z")

</div>

Kubernetes version:  
Installation method: kubeadm  
Host OS: RHEL  
CNI and version: Flannel

Hi I’m using NodePort Service on Pod  
and the configuration is like below  
port : 8006  
targetPort :8006  
nodePort : 8006

I know the default range of nodePort is 30000~39999  
but it’s nessesary to be 8006

anyway, for that, I also add some option to the configuration of api-service like below  
( --service-port-range = 3000~39999 )

after that, nodePort service up, I noticed status of service like below  
Type: warning  
Reason: PortOutOfRange  
From: Portallocator-repair-controller  
Messeage: Port 8006 is not within the port range 30000-32767;

Type: warning  
Reason: PortNotAllocated  
From: Portallocator-repair-controller  
Messeage: Port 8006 is not allocated

is this just warning for recomendation for using 30000-32767  
or  
could be caused serious problems on App?
