GithubHelp home page GithubHelp logo

Comments (11)

jmrodri avatar jmrodri commented on July 18, 2024 1

Is there a workaround for this? using the openshift-installer from master and apiserver just continues to get restarted.

from cluster-kube-apiserver-operator.

wking avatar wking commented on July 18, 2024

The installer default changed in openshift/installer@c6c9d83 (openshift/installer#712). Ideally operators should be pulling this value from the network config.

from cluster-kube-apiserver-operator.

wking avatar wking commented on July 18, 2024

Example of pulling this from the network config:

$ oc get -o jsonpath="{.spec.serviceNetwork}{'\n'}" networkconfig default
172.30.0.0/16

from cluster-kube-apiserver-operator.

smarterclayton avatar smarterclayton commented on July 18, 2024

Operators are not manually setting this. Services created by the CVO are getting assigned the 172.x block, and then it looks like we change what the value is. The CVO service for instance has no hardcoded IP and is getting a 172.

from cluster-kube-apiserver-operator.

vrutkovs avatar vrutkovs commented on July 18, 2024

This is breaking openshift API server on GCP setup:

E1127 13:27:12.158406       1 controller.go:111] loading OpenAPI spec for "v1.image.openshift.io" failed with: failed to retrieve openAPI spec, http error: ResponseCode: 503, Body: service unavailable

E1127 13:27:50.036693       1 available_controller.go:327] v1.template.openshift.io failed with: Get https://172.30.222.191:443: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)
# oc get svc -n openshift-apiserver
NAME      TYPE        CLUSTER-IP       EXTERNAL-IP   PORT(S)   AGE
api       ClusterIP   172.30.222.191   <none>        443/TCP   47m
# oc get events -n openshift-apiserver
1m          43m          16        api.156afbe83ec48845               Service                                            Warning   ClusterIPOutOfRange      ipallocator-repair-controller       Cluster IP 172.30.222.191 is not within the service CIDR 10.3.0.0/16; please recreate service
52s         42m          16        api.156afbed986f0063               Service                                            Warning   ClusterIPOutOfRange      ipallocator-repair-controller       Cluster IP 172.30.222.191 is not within the service CIDR 10.3.0.0/16; please recreate service
11s         45m          17        api.156afbcd22e6d3bb               Service                                            Warning   ClusterIPOutOfRange      ipallocator-repair-controller       Cluster IP 172.30.222.191 is not within the service CIDR 10.3.0.0/16; please recreate service

from cluster-kube-apiserver-operator.

sttts avatar sttts commented on July 18, 2024

I believe this is also due to a race between our config observers seeing a valid and updated config and the operator installing phase 2 pods blindly to the master. We have to make sure that the config is valid and complete before an install is tried.

Working on this.

from cluster-kube-apiserver-operator.

vrutkovs avatar vrutkovs commented on July 18, 2024

Fixed in #146

from cluster-kube-apiserver-operator.

vrutkovs avatar vrutkovs commented on July 18, 2024

api service is now correct, but cm/deployment-kube-apiserver-config still has "servicesSubnet":"10.3.0.0/16"

from cluster-kube-apiserver-operator.

djwhatle avatar djwhatle commented on July 18, 2024

Also interested in a workaround!

from cluster-kube-apiserver-operator.

sttts avatar sttts commented on July 18, 2024

@vrutkovs you reopened this. Is this still a problem? (I checked in a local cluster and all services had correct IPs). If not, please close.

from cluster-kube-apiserver-operator.

vrutkovs avatar vrutkovs commented on July 18, 2024

Fixed by #147, servicesSubnet is correct and no services are created with 10.3....

from cluster-kube-apiserver-operator.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.