fix cloudprovider link error (#12539)
This commit is contained in:
parent
9aa96f6ff8
commit
b3bfb4d6d0
|
@ -31,7 +31,7 @@ To dive a little deeper into implementation details, all cloud controller manage
|
|||
|
||||
To build an out-of-tree cloud-controller-manager for your cloud, follow these steps:
|
||||
|
||||
1. Create a go package with an implementation that satisfies [cloudprovider.Interface](https://git.k8s.io/kubernetes/pkg/cloudprovider/cloud.go).
|
||||
1. Create a go package with an implementation that satisfies [cloudprovider.Interface](https://github.com/kubernetes/cloud-provider/blob/master/cloud.go).
|
||||
2. Use [main.go in cloud-controller-manager](https://github.com/kubernetes/kubernetes/blob/master/cmd/cloud-controller-manager/controller-manager.go) from Kubernetes core as a template for your main.go. As mentioned above, the only difference should be the cloud package that will be imported.
|
||||
3. Import your cloud package in `main.go`, ensure your package has an `init` block to run [cloudprovider.RegisterCloudProvider](https://github.com/kubernetes/kubernetes/blob/master/pkg/cloudprovider/plugins.go#L42-L52).
|
||||
|
||||
|
|
Loading…
Reference in New Issue