<p>On EKS, I can see the kubernetes service exposing the following address:</p>
<pre><code>NAME                 TYPE           CLUSTER-IP    EXTERNAL-IP                                                                  PORT(S)                      AGE
kubernetes           ClusterIP      172.20.0.1    10.19.2.227,10.19.1.145 
</code></pre>
<p>I want to find a way to change the ClusterIP.</p>
<p>Editing the service is not possible, since the field is immutable. Creating a new service pointing to another IP in the cluster service CIDR also doesn't work.</p>

Liquid
<p>You can't.  The ClusterIP Service address is inside the Kubernetes private network, the address is inaccessible from outside the cluster, and the specific address is automatically assigned.  (None of this is specific to EKS, this is true of pretty much all Kubernetes installations.)</p>
<p>Correspondingly, any environment where the ClusterIP IP address is accessible, the Kubernetes DNS layer will be too, and you can use the DNS name <code>kubernetes.default.svc.cluster.local</code>.  This DNS name is well-known enough that standard Kubernetes SDKs know to look for it if you're running them in &quot;in-cluster&quot; mode.</p>
