cluster-api-provider-alibabacloud

module
v0.0.0-...-79aa2ab Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 24, 2019 License: Apache-2.0

README

OpenShift cluster-api-provider-alibabacloud

This repository hosts an implementation of a provider for Alibabacloud for the OpenShift machine-api.

This provider runs as a machine-controller deployed by the machine-api-operator

How to build the images in the RH infrastructure

The Dockerfiles use as builder in the FROM instruction which is not currently supported by the RH's docker fork (see https://github.com/kubernetes-sigs/kubebuilder/issues/268). One needs to run the imagebuilder command instead of the docker build.

Note: this info is RH only, it needs to be backported every time the README.md is synced with the upstream one.

Test locally built alibabacloud actuator

  1. Tear down machine-controller

    Deployed machine API plane (machine-api-controllers deployment) is (among other controllers) running machine-controller. In order to run locally built one, simply edit machine-api-controllers deployment and remove machine-controller container from it.

  2. Build and run alibabacloud actuator outside of the cluster

    $ go build -o bin/manager github.com/AliyunContainerService/cluster-api-provider-alibabacloud/cmd/manager
    
    $ ./bin/manager --kubeconfig ~/.kube/config --logtostderr -v 5 -alsologtostderr
    
  3. Build and run alibabacloud actuator outside of the cluster

    $ go build -o bin/alicloud-actuator github.com/AliyunContainerService/cluster-api-provider-alibabacloud/cmd/alicloud-actuator
    
  4. Run machine controller in a kubernetes cluser.

    Deploy crds

    $ kubectl apply -f ./config/crds/
    

    Deploy rbac

    $ kubectl apply -f ./config/rbac/
    

    Before you deploy machine-controller, you edit the file ./config/configmap/user_config.yaml first, and fill your info ,and then

    $ kubectl apply  -f ./config/configmap/
    
    $ kubectl apply -f ./config/controllers/
    

Directories

Path Synopsis
cmd
pkg
apis/alicloudprovider
Package alicloudproviderconfig contains alicloudproviderconfig API versions.
Package alicloudproviderconfig contains alicloudproviderconfig API versions.
apis/alicloudprovider/v1alpha1
Package v1alpha1 contains API Schema definitions for the alicloudproviderconfig v1alpha1 API group +k8s:deepcopy-gen=package,register +groupName=alicloudproviderconfig.openshift.io Package v1alpha1 contains API Schema definitions for the alicloudproviderconfig v1alpha1 API group +k8s:deepcopy-gen=package,register +groupName=alicloudproviderconfig.openshift.io
Package v1alpha1 contains API Schema definitions for the alicloudproviderconfig v1alpha1 API group +k8s:deepcopy-gen=package,register +groupName=alicloudproviderconfig.openshift.io Package v1alpha1 contains API Schema definitions for the alicloudproviderconfig v1alpha1 API group +k8s:deepcopy-gen=package,register +groupName=alicloudproviderconfig.openshift.io
client/mock
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.
test

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL