From d8db0dd861513ea43c83dd72868c7d37ae7ec334 Mon Sep 17 00:00:00 2001 From: Alex Welch Date: Mon, 9 Feb 2015 15:44:50 -0700 Subject: [PATCH] Add AWS Kubernetes templates and tweak CLC template. [finishes #87995230] --- db/job_templates/aws-kubernetes.yml | 40 ++++++++++++++++++++++++++ db/job_templates/clc-kubernetes.yml | 44 +++++++++++------------------ 2 files changed, 56 insertions(+), 28 deletions(-) create mode 100644 db/job_templates/aws-kubernetes.yml diff --git a/db/job_templates/aws-kubernetes.yml b/db/job_templates/aws-kubernetes.yml new file mode 100644 index 0000000..f01d56d --- /dev/null +++ b/db/job_templates/aws-kubernetes.yml @@ -0,0 +1,40 @@ +name: AWS Kubernetes Cluster with Panamax Remote Agent +description: + Automated kubernetes cluster creation in AWS with the Panamax Remote Agent pre-installed. + Requires an [AWS account.](http://aws.amazon.com/) +documentation: | + Create a Kubernetes cluster on AWS, deployment ready from Panamax. + Visit the [AWS console](http://aws.amazon.com/) to collect required items to launch the job. + Deployment of cluster varies based on number of minions requested. + An additional Panamax Remote Agent node and Kubernetes Master node is also created. + If the job fails for any reason, please check the logs. + Any nodes created prior to the error need manual deletion. + Please reference the logs at the end of the job to collect the private key to access the nodes via ssh. +environment: +- variable: REMOTE_TARGET_NAME + value: + description: A friendly name for your Remote Deployment Target. +- variable: AWS_ACCESS_KEY_ID + value: + description: AWS access key that has ability to create servers, assign IPs, create keys and security groups in EC2. +- variable: AWS_SECRET_ACCESS_KEY + value: + description: Corresponding secret key for the access key specified. +- variable: REGION + value: us-west-2a + description: Region and availability zone to deploy your cluster. +- variable: MINION_COUNT + value: 2 + description: Number of minions to include in your cluster. A master node is auto-created. Do not count the master node in this value. +- variable: VM_SIZE + value: t2.micro + description: Size for each node in your cluster. The value should match the available sizes in the AWS console that are compatible with RHEL 7. +steps: +- name: Deploy AWS Cluster + source: centurylink/kube-cluster-deploy:aws +- name: Install Kubernetes on Cluster + source: centurylink/kube-install:aws +- name: Deploy Panamax Remote Agent Node + source: centurylink/agent-server-deploy:aws +- name: Install Panamax Remote Agent, Adaptor and Remote Target Endpoint + source: centurylink/remote-agent-install:aws diff --git a/db/job_templates/clc-kubernetes.yml b/db/job_templates/clc-kubernetes.yml index 7667626..a30719d 100644 --- a/db/job_templates/clc-kubernetes.yml +++ b/db/job_templates/clc-kubernetes.yml @@ -1,52 +1,40 @@ name: CenturyLink Cloud Kubernetes Cluster with Panamax Remote Agent -type: ClusterJobTemplate -description: | +description: Automated kubernetes cluster creation in CenturyLink Cloud with the Panamax Remote Agent pre-installed. Requires a [CLC account.](https://control.tier3.com/) documentation: | - Create a Kubernetes cluster on CentruyLink Cloud, deployment ready from Panamax. Visit the - [CLC dashboard](https://control.tier3.com/) to collect required items to launch the job. Deployment of cluster - takes approx. 12+ mins and varies based on number of minions requested. An additional Panamax Remote Agent node and - Kubernetes Master node is also created. If the job fails for any reason, please check the logs. Any nodes created - prior to the error need manual deletion. -vendor: CenturyLink Cloud -adapter: Kubernetes + Create a Kubernetes cluster on CentruyLink Cloud, deployment ready from Panamax. + Visit the [CLC dashboard](https://control.tier3.com/) to collect required items to launch the job. + Deployment of cluster takes approx. + 12+ mins and varies based on number of minions requested. + An additional Panamax Remote Agent node and Kubernetes Master node is also created. + If the job fails for any reason, please check the logs. + Any nodes created prior to the error need manual deletion. environment: - variable: REMOTE_TARGET_NAME value: - description: | - Enter a friendly name for your Remote Deployment Target. This name needs to be unique. + description: A friendly name for your Remote Deployment Target. This name needs to be unique. - variable: USERNAME value: - description: | - Enter your CLC Username which you use to access the CLC dashboard. + description: Your CLC Username which you use to access the CLC dashboard. - variable: PASSWORD value: - description: | - Enter your CLC Password which you use to access the CLC dashboard. + description: Your CLC Password which you use to access the CLC dashboard. - variable: REGION value: WA1 - description: | - Enter the region to deploy your cluster. Valid values include:  CA1, CA2, CA3, DE1, GB3, IL1, NY1, UC1, UT1, VA1, - WA1 + description: Region to deploy your cluster. Valid values include: CA1, CA2, CA3, DE1, GB3, IL1, NY1, UC1, UT1, VA1, WA1 - variable: MINION_COUNT value: 2 - description: | - Enter the number of minions to include in your cluster. A master node is auto-created. Do not count the master node - in this value. + description: Number of minions to include in your cluster. A master node is auto-created. Do not count the master node in this value. - variable: CPU value: 2 - description: | - Enter the number of CPUs for each node in your cluster. Select a value from 1 to 16. A minium of 2 is recommended. + description: Number of CPUs for each node in your cluster. Select a value from 1 to 16. A minium of 2 is recommended. - variable: MEMORY_GB value: 2 - description: | - Enter the amount of memory for each node in your cluster. Select a value from 1 to 128. A minium of 2 is - recommended. + description: Amount of memory for each node in your cluster. Select a value from 1 to 128. A minium of 2 is recommended. - variable: GROUP_ID value: - description: | - Enter the server group id. Ex.: wa1-36474. You can find this value via the browser url on the CLC dashboard. + description: Server group id. Ex.: wa1-36474. You can find this value via the browser url on the CLC dashboard. steps: - name: Deploy CenturyLink Cloud Cluster source: centurylink/kube-cluster-deploy:latest