-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #31 from pubudu538/master
Adding Operator hub readmes
- Loading branch information
Showing
30 changed files
with
574 additions
and
335 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,19 @@ | ||
#Copyright (c) WSO2 Inc. (http://www.wso2.org) All Rights Reserved. | ||
# | ||
# WSO2 Inc. licenses this file to you under the Apache License, | ||
# Version 2.0 (the "License"); you may not use this file except | ||
# in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, | ||
# software distributed under the License is distributed on an | ||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
# KIND, either express or implied. See the License for the | ||
# specific language governing permissions and limitations | ||
# under the License. | ||
|
||
FROM scratch | ||
COPY wso2am-controller / | ||
ENTRYPOINT ["/wso2am-controller","-logtostderr=true"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,27 @@ | ||
## Overview WSO2AM-K8S-Operator | ||
|
||
WSO2 AM K8S Operator provides a fully automated experience for cloud-native API management. A user can deploy the entire WSO2 API Manager based of different patterns into K8S cluster through a simple command. | ||
WSO2 AM K8S Operator provides a fully automated experience for cloud-native API management. A user can deploy WSO2 API Manager different patterns in K8S cluster through a simple command. | ||
|
||
For this, WSO2 AM K8S Operator introduced a new custom resource definition(CRD) called **APIManager** | ||
|
||
### Custom resource: APIManager | ||
`APIManager` holds API-related information. You can see the APIManager definition and data structure for APIManager here, with cluster name and pattern name. The following YAML shows sample payload for APIManager. | ||
|
||
``` | ||
apiVersion: apim.wso2.com/v1alpha1 | ||
kind: APIManager | ||
metadata: | ||
name: cluster-1 | ||
spec: | ||
pattern: Pattern-1 | ||
``` | ||
The above CRD has corresponding custom controller. Custom controllers are the “brains” behind the custom resources. | ||
|
||
- `APIManager` holds API-related information. The following YAML shows the simplest custom resource for deploying APIManager in Kubernetes. | ||
|
||
``` | ||
apiVersion: apim.wso2.com/v1alpha1 | ||
kind: APIManager | ||
metadata: | ||
name: cluster-1 | ||
spec: | ||
pattern: Pattern-1 | ||
``` | ||
- The above CRD has corresponding custom controller. Custom controllers are the “brains” behind the custom resources. | ||
### Custom Controller: wso2am-controller | ||
APIManager controller is quite complex compared to other controllers. It has the main task to Create Kubernetes artifacts and deploy them into Kubernetes cluster. | ||
- APIManager controller is quite complex compared to other controllers. It has the main task to create Kubernetes artifacts and deploy them into Kubernetes cluster. | ||
When the API custom controller is triggered, it will start to create the deployements and services of relevant kubernetes artifacts based on specified pattern, and finally deploys the entire APIManager into K8S cluster. | ||
- When the wso2am controller is triggered, it starts to create the deployments and services of relevant Kubernetes artifacts based on specified pattern, and finally deploys the entire API Manager in Kubernetes cluster. | ||
As you can see, API Controller has taken out all the complexity from DevOps and automates deployment with all the best practices required to deploy APIManager. | ||
- As you can see, wso2am controller has taken out all the complexity from DevOps and automates deployment with all the best practices required to deploy API Manager. |
Oops, something went wrong.