# K3s Service CIDR

**URL:** <https://forums.suse.com/t/k3s-service-cidr/39183>\
**Category:** k3s, k3OS, and k3d\
**Created:** [October 11, 2022, 2:16am UTC](https://forums.suse.com/t/k3s-service-cidr/39183 "2022-10-11T02:16:01Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![fredcsfaria](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/fredcsfaria/32/7717_2.png) [@fredcsfaria](https://forums.suse.com/u/fredcsfaria)\
**Post date:** [October 11, 2022, 2:16am UTC](https://forums.suse.com/t/k3s-service-cidr/39183/1 "2022-10-11T02:16:01Z")

</div>

Hi all,

I configured service-cidr in “/etc/rancher/k3s/config.yaml” like below:

> services:  
> kube-api:  
> # IP range for any services created on Kubernetes  
> # # This must match the service\_cluster\_ip\_range in kube-controller  
> service\_cluster\_ip\_range: 10.254.32.0/22  
> kube-controller:  
> # CIDR pool used to assign IP addresses to pods in the cluster  
> cluster\_cidr: 10.42.0.0/24  
> # # IP range for any services created on Kubernetes  
> # # This must match the service\_cluster\_ip\_range in kube-api  
> service\_cluster\_ip\_range: 10.254.32.0/22  
> kubelet:  
> cluster\_dns\_server: 10.254.32.10

But when I start “k3s server” I got the error messages below. Do It be necessary any additional configuration for kubernetes services to get their IP addresses in range “10.254.32.0/22” ?

E1010 22:49:39.990635 36520 repair.go:250] the cluster IP [IPv4]:10.43.0.1 for service kubernetes/default is not within the service CIDR 10.254.32.0/22; please recreate  
E1010 22:49:39.990664 36520 repair.go:250] the cluster IP [IPv4]:10.43.0.10 for service kube-dns/kube-system is not within the service CIDR 10.254.32.0/22; please recreate  
E1010 22:49:39.992290 36520 repair.go:250] the cluster IP [IPv4]:10.43.49.237 for service metrics-server/kube-system is not within the service CIDR 10.254.32.0/22; please recreate  
E1010 22:49:40.006364 36520 repair.go:250] the cluster IP [IPv4]:10.43.0.1 for service kubernetes/default is not within the service CIDR 10.254.32.0/22; please recreate  
E1010 22:49:40.006397 36520 repair.go:250] the cluster IP [IPv4]:10.43.0.10 for service kube-dns/kube-system is not within the service CIDR 10.254.32.0/22; please recreate  
E1010 22:49:40.007541 36520 repair.go:250] the cluster IP [IPv4]:10.43.49.237 for service metrics-server/kube-system is not within the service CIDR 10.254.32.0/22; please recreate
