Skip to content

Commit

Permalink
Merge pull request #113 from kubernauts/eks-tpr2-support
Browse files Browse the repository at this point in the history
EKS support with TPR2 for TK8
  • Loading branch information
ishantanu authored Aug 17, 2019
2 parents 7fb224a + 2cd3bdf commit f00cc0e
Show file tree
Hide file tree
Showing 2 changed files with 127 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cmd/cli/provisioner.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ import (
azure "github.com/kubernauts/tk8-provisioner-azure"
baremetal "github.com/kubernauts/tk8-provisioner-baremetal"
cattleaws "github.com/kubernauts/tk8-provisioner-cattle-aws"
cattleeks "github.com/kubernauts/tk8-provisioner-cattle-eks"
eks "github.com/kubernauts/tk8-provisioner-eks"
nutanix "github.com/kubernauts/tk8-provisioner-nutanix"
openstack "github.com/kubernauts/tk8-provisioner-openstack"
Expand All @@ -40,6 +41,7 @@ var provisioners = map[string]provisioner.Provisioner{
"azure": azure.NewAzure(),
"baremetal": baremetal.NewBaremetal(),
"cattle-aws": cattleaws.NewCattleAWS(),
"cattle-eks": cattleeks.NewCattleEKS(),
"eks": eks.NewEKS(),
"nutanix": nutanix.NewNutanix(),
"openstack": openstack.NewOpenstack(),
Expand Down
125 changes: 125 additions & 0 deletions pkg/templates/variables.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,131 @@

package templates

var VariablesCattleEKS = `
variable "service_role" {
default = "{{.ServiceRole}}"
description = "Service linked role for EKS"
type = string
}
variable "associate_worker_node_public_ip" {
default = {{.AssociatePublicIp}}
description = "Associate public IP with worker nodes"
type = string
}
variable "kubernetes_version" {
default = "{{.KubernetesVersion}}"
description = "Kubernetes version"
type = string
}
variable "maximum_nodes" {
default = {{.MaximumNodes}}
description = "Maximum worker nodes"
type = string
}
variable "minimum_nodes" {
default = {{.MinimumNodes}}
description = "Minimum size for worker nodes"
type = string
}
variable "instance_type" {
default = "{{.InstanceType}}"
description = "Instance type for worker nodes"
type = string
}
variable "ami_id" {
default = "{{.AmiId}}"
description = "AMI id for the instance"
type = string
}
variable "session_token" {
default = "{{.SessionToken}}"
description = "Session token to use with the client key and secret key if applicable"
type = string
}
variable "disk_size" {
default = "{{.DiskSize}}"
description = "Root disk size for instances in GB"
type = string
}
variable "rancher_api_url" {
default = "{{.RancherApiUrl}}"
description = "Rancher API URL"
type = string
}
variable "TOKEN_KEY" {
description = "Rancher token key"
}
variable "rancher_cluster_name" {
default = "{{.RancherClusterName}}"
description = "Rancher cluster name"
type = string
}
variable "region" {
default = "{{.Region}}"
description = "AWS region"
type = string
}
variable "existing_vpc" {
default = {{.ExistingVpc}}
description = "Use existing VPC for creating clusters"
type = string
}
variable "vpc_id" {
default = "{{.VpcId}}"
description = "VPC ID"
type = string
}
variable "subnet_id1" {
default = "{{.SubnetId1}}"
description = "subnet id"
type = string
}
variable "subnet_id2" {
default = "{{.SubnetId2}}"
description = "Subnet Id 2"
type = string
}
variable "subnet_id3" {
default = "{{.SubnetId3}}"
description = "Subnet Id 3"
type = string
}
variable "security_group_name" {
default = "{{.SecurityGroupName}}"
description = "security group id"
type = string
}
variable "AWS_ACCESS_KEY_ID" {
description = "AWS access key"
}
variable "AWS_SECRET_ACCESS_KEY" {
description = "AWS secret key"
}
variable "AWS_DEFAULT_REGION" {
description = "AWS default region"
}
`

var VariablesRKE = `
variable "cluster_name" {
default = "{{.ClusterName}}"
Expand Down

0 comments on commit f00cc0e

Please sign in to comment.