Closed jianzhangbjz closed 6 years ago
@jianzhangbjz The creation of the ClusterRole
is set to be removed by #207. Also, we are working to eventually use a CRD for the cluster resource (see #215) and can do away with aggregation altogether.
@font Got it, thanks. But, do you mean this version cannot work now? What can I do to run it?
I tried it with the version which merged #207, and seems like it works well.
[root@host-172-16-120-8 ~]# ./crinit version
version.Info{Major:"", Minor:"", GitVersion:"v0.0.3-36+09150e64516424-dirty", GitCommit:"09150e64516424d315bcb20dea77fe8d0d395116", GitTreeState:"dirty", BuildDate:"2018-04-07T05:03:50Z", GoVersion:"go1.9.2", Compiler:"gc", Platform:"linux/amd64"}
running details:
[root@host-172-16-120-8 ~]# ./crinit aggregated init jian --host-cluster-context=openshift-ansible-service-broker/172-16-120-8:8443/system:admin
Creating a namespace clusterregistry for the cluster registry... done
Creating cluster registry API server service... done
Creating cluster registry objects (credentials, persistent volume claim)... done
Creating RBAC objects... done
Creating cluster registry deployment... done
Creating cluster registry Kubernetes API Service... done
Updating kubeconfig... done
Waiting for the cluster registry API server to come up...................
The cluster registry API pods are running, but they are exposed by a NodePort service, so this tool cannot reliably verify that they are accessible. You will need to ensure that your nodes are routable from this machine in order for kubectl to work as-is with the 'jian' context.
done
Cluster registry API server is running at: 10.8.241.56:31591, ...
Waiting for the cluster registry API to be available via the aggregator...... done
pod
[root@host-172-16-120-8 ~]# oc get pods
NAME READY STATUS RESTARTS AGE
jian-apiserver-69bf66bc8d-gpr2m 2/2 Running 0 1h
service, but seems the load balance creating failed, how to solve it? thanks!
[root@host-172-16-120-8 ~]# oc describe svc jian
Name: jian
Namespace: clusterregistry
Labels: app=clusterregistry
Annotations: <none>
Selector: app=clusterregistry,module=clusterregistry-apiserver
Type: NodePort
IP: 172.30.7.3
Port: https 443/TCP
TargetPort: https/TCP
NodePort: https 31591/TCP
Endpoints: 10.129.0.18:8443
Session Affinity: None
External Traffic Policy: Cluster
Events:
Type Reason Age From Message
---- ------ ---- ---- -------
Warning CreatingLoadBalancerFailed 2m (x16 over 1h) service-controller Error creating load balancer (will retry): error getting LB for service clusterregistry/jian: Resource not found
@jianzhangbjz I don't think there's that could be done on the tool side to resolve this issue. It looks like something is wrong in your environment that prevents you from being able to create load balancers. It looks like you're using OpenShift, so perhaps these docs (or the relevant docs for the version of OpenShift you're using) would help debug?
Note that this issue is no longer applicable because of the CRD migration done in #225, which removes crinit
and the standalone API server.
@perotinus Thank you! I will have a try. :)
/sig multicluster I followed the doc , but encounter an issue when running the
aggregated init
command. Seem like the clusterroleclusterregistry.k8s.io:apiserver
created failed. Or something else I missed?Below info for your receference.
crinit
version as below:current context: