Skip to content

Commit

Permalink
Merge pull request #166 from joyent/1.0.1-pre1
Browse files Browse the repository at this point in the history
Update to k8s v1.18.12
  • Loading branch information
kusor authored Dec 22, 2020
2 parents ca1760e + 506f3c9 commit 160bb76
Show file tree
Hide file tree
Showing 30 changed files with 69 additions and 51 deletions.
2 changes: 1 addition & 1 deletion cmd/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@ var versionCmd = &cobra.Command{
fmt.Print("no version set for this build... ")
cliVersion = "local"
}
fmt.Printf("triton-kubernetes 1.0.0-pre1 (%s)\n", cliVersion)
fmt.Printf("triton-kubernetes 1.0.1-pre1 (%s)\n", cliVersion)
},
}
2 changes: 1 addition & 1 deletion cmd/version_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ func TestVersion(t *testing.T) {
versionCmd.Run(versionCmd, []string{})
})

expected := "triton-kubernetes 1.0.0-pre1 (beta)\n"
expected := "triton-kubernetes 1.0.1-pre1 (beta)\n"

select {
case err := <-errch:
Expand Down
7 changes: 4 additions & 3 deletions create/cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -371,9 +371,10 @@ func getBaseClusterTerraformConfig(terraformModulePath string) (baseClusterTerra
{"v1.12.6", "v1.12.6-rancher1-1"},
{"v1.13.4", "v1.13.4-rancher1-1"},
{"v1.14.9", "v1.14.9-rancher1-1"},
{"v1.15.12", "v1.15.12-rancher1-1"},
{"v1.16.10", "v1.16.10-rancher2-1"},
{"v1.17.6", "v1.17.6-rancher2-1"},
{"v1.15.12", "v1.15.12-rancher2-7"},
{"v1.16.15", "v1.16.15-rancher1-3"},
{"v1.17.14", "v1.17.14-rancher1-2"},
{"v1.18.12", "v1.18.12-rancher1-1"},
}
prompt := promptui.Select{
Label: "Kubernetes Version",
Expand Down
2 changes: 1 addition & 1 deletion docs/guide/silent-install-yaml.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ YAML parameters for cluster are:
| `cluster_manager` | Which cluster manager should manage this new cluster that is going to be created. |
| `cluster_cloud_provider` | Which cloud should the cluster run on. Options are `triton`, `aws`, `gcp`, or `azure`. |
| `name` | Cluster name |
| `k8s_version` | Version of Kubernetes to deploy for this cluster. Available versions are: `v2.8.11-rancher2-1`, `v1.9.7-rancher2-2`, `v1.10.3-rancher2-1`, `v1.11.8-rancher1-1`, `v1.12.6-rancher1-1`, `v1.13.4-rancher1-1`, `v1.14.9-rancher1-1`, `v1.15.12-rancher1-1`, `v1.16.10-rancher2-1` and `v1.17.6-rancher-2-1` (default). |
| `k8s_version` | Version of Kubernetes to deploy for this cluster. Available versions are: `v2.8.11-rancher2-1`, `v1.9.7-rancher2-2`, `v1.10.3-rancher2-1`, `v1.11.8-rancher1-1`, `v1.12.6-rancher1-1`, `v1.13.4-rancher1-1`, `v1.14.9-rancher1-1`, `v1.15.12-rancher1-1`, `v1.16.15-rancher1-3`, `v1.17.14-rancher-1-2`, `v1.18.12-rancher1-1` (default). |
| `k8s_network_provider` | Network stack to use for this Kubernetes cluster. Available options are: `calico` and `flannel`. |
| `private_registry` | URL of the private registry that includes rancher containers |
| `private_registry_username` | Username for the private registry |
Expand Down
2 changes: 1 addition & 1 deletion examples/silent-install/triton/cluster-triton-ha.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ cluster_manager: manager-on-triton
backend_provider: local
name: triton-ha
cluster_cloud_provider: triton
k8s_version: v1.17.6-rancher2-1
k8s_version: v1.18.12-rancher1-1
k8s_network_provider: flannel
private_registry: ""
private_registry_username: ""
Expand Down
3 changes: 2 additions & 1 deletion terraform/modules/aws-rancher-k8s-host/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ variable "rancher_host_labels" {
}

variable "rancher_agent_image" {
default = "rancher/rancher-agent:v2.4.4"
default = "rancher/rancher-agent:v2.4.11"
description = "The Rancher Agent image to use, can be a url to a private registry leverage docker_login_* variables to authenticate to registry."
}

Expand Down Expand Up @@ -56,6 +56,7 @@ variable "aws_region" {

variable "aws_ami_id" {
description = "Base AMI to launch the instances with"
# default="ami-08a099fcfc36dff3f"
}

variable "aws_instance_type" {
Expand Down
5 changes: 3 additions & 2 deletions terraform/modules/aws-rancher-k8s/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ variable "rancher_secret_key" {
}

variable "k8s_version" {
default = "v1.17.6-rancher2-1"
default = "v1.18.12-rancher1-1"
}

variable "k8s_network_provider" {
Expand Down Expand Up @@ -76,7 +76,8 @@ variable "aws_subnet_cidr" {

variable "aws_ami_id" {
description = "Base AMI to launch the instances with"
default = ""
# default="ami-08a099fcfc36dff3f"
default = ""
}

variable "aws_public_key_path" {
Expand Down
4 changes: 2 additions & 2 deletions terraform/modules/aws-rancher/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ variable "docker_engine_install_url" {
}

variable "rancher_server_image" {
default = "rancher/rancher:v2.4.4"
default = "rancher/rancher:v2.4.11"
description = "The Rancher Server image to use, can be a url to a private registry leverage docker_login_* variables to authenticate to registry."
}

variable "rancher_agent_image" {
default = "rancher/rancher-agent:v2.4.4"
default = "rancher/rancher-agent:v2.4.11"
description = "The Rancher Agent image to use, can be a url to a private registry leverage docker_login_* variables to authenticate to registry."
}

Expand Down
2 changes: 1 addition & 1 deletion terraform/modules/azure-rancher-k8s-host/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ variable "rancher_host_labels" {
}

variable "rancher_agent_image" {
default = "rancher/rancher-agent:v2.4.4"
default = "rancher/rancher-agent:v2.4.11"
description = "The Rancher Agent image to use, can be a url to a private registry leverage docker_login_* variables to authenticate to registry."
}

Expand Down
2 changes: 1 addition & 1 deletion terraform/modules/azure-rancher-k8s/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ variable "rancher_secret_key" {
}

variable "k8s_version" {
default = "v1.17.6-rancher2-1"
default = "v1.18.12-rancher1-1"
}

variable "k8s_network_provider" {
Expand Down
4 changes: 2 additions & 2 deletions terraform/modules/azure-rancher/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ variable "docker_engine_install_url" {
}

variable "rancher_server_image" {
default = "rancher/rancher:v2.4.4"
default = "rancher/rancher:v2.4.11"
description = "The Rancher Server image to use, can be a url to a private registry leverage docker_login_* variables to authenticate to registry."
}

variable "rancher_agent_image" {
default = "rancher/rancher-agent:v2.4.4"
default = "rancher/rancher-agent:v2.4.11"
description = "The Rancher Agent image to use, can be a url to a private registry leverage docker_login_* variables to authenticate to registry."
}

Expand Down
2 changes: 1 addition & 1 deletion terraform/modules/azure-rke/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ variable "rancher_server_image" {
}

variable "rancher_agent_image" {
default = "rancher/rancher-agent:v2.4.4"
default = "rancher/rancher-agent:v2.4.11"
description = "The Rancher Agent image to use, can be a url to a private registry leverage docker_login_* variables to authenticate to registry."
}

Expand Down
2 changes: 1 addition & 1 deletion terraform/modules/bare-metal-rancher-k8s-host/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ variable "rancher_host_labels" {
}

variable "rancher_agent_image" {
default = "rancher/rancher-agent:v2.4.4"
default = "rancher/rancher-agent:v2.4.11"
description = "The Rancher Agent image to use, can be a url to a private registry leverage docker_login_* variables to authenticate to registry."
}

Expand Down
2 changes: 1 addition & 1 deletion terraform/modules/bare-metal-rancher-k8s/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ variable "rancher_secret_key" {
}

variable "k8s_version" {
default = "v1.17.6-rancher2-1"
default = "v1.18.12-rancher1-1"
}

variable "k8s_network_provider" {
Expand Down
4 changes: 2 additions & 2 deletions terraform/modules/bare-metal-rancher/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ variable "docker_engine_install_url" {
}

variable "rancher_server_image" {
default = "rancher/rancher:v2.4.4"
default = "rancher/rancher:v2.4.11"
description = "The Rancher Server image to use, can be a url to a private registry leverage docker_login_* variables to authenticate to registry."
}

variable "rancher_agent_image" {
default = "rancher/rancher-agent:v2.4.4"
default = "rancher/rancher-agent:v2.4.11"
description = "The Rancher Agent image to use, can be a url to a private registry leverage docker_login_* variables to authenticate to registry."
}

Expand Down
2 changes: 1 addition & 1 deletion terraform/modules/gcp-rancher-k8s-host/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ variable "rancher_host_labels" {
}

variable "rancher_agent_image" {
default = "rancher/rancher-agent:v2.4.4"
default = "rancher/rancher-agent:v2.4.11"
description = "The Rancher Agent image to use, can be a url to a private registry leverage docker_login_* variables to authenticate to registry."
}

Expand Down
2 changes: 1 addition & 1 deletion terraform/modules/gcp-rancher-k8s/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ variable "rancher_secret_key" {
}

variable "k8s_version" {
default = "v1.17.6-rancher2-1"
default = "v1.18.12-rancher1-1"
}

variable "k8s_network_provider" {
Expand Down
4 changes: 2 additions & 2 deletions terraform/modules/gcp-rancher/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ variable "docker_engine_install_url" {
}

variable "rancher_server_image" {
default = "rancher/rancher:v2.4.4"
default = "rancher/rancher:v2.4.11"
description = "The Rancher Server image to use, can be a url to a private registry leverage docker_login_* variables to authenticate to registry."
}

variable "rancher_agent_image" {
default = "rancher/rancher-agent:v2.4.4"
default = "rancher/rancher-agent:v2.4.11"
description = "The Rancher Agent image to use, can be a url to a private registry leverage docker_login_* variables to authenticate to registry."
}

Expand Down
4 changes: 1 addition & 3 deletions terraform/modules/triton-rancher-k8s-host/main.tf
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
provider "triton" {
version = "~> 0.7.0"

account = var.triton_account
key_material = file(var.triton_key_path)
key_id = var.triton_key_id
Expand Down Expand Up @@ -57,6 +55,6 @@ resource "triton_machine" "host" {
affinity = ["role!=~${element(keys(var.rancher_host_labels), 0)}"]

tags = {
role = "${element(keys(var.rancher_host_labels), 0)}"
role = element(keys(var.rancher_host_labels), 0)
}
}
2 changes: 1 addition & 1 deletion terraform/modules/triton-rancher-k8s-host/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ variable "rancher_host_labels" {
}

variable "rancher_agent_image" {
default = "rancher/rancher-agent:v2.4.4"
default = "rancher/rancher-agent:v2.4.11"
description = "The Rancher Agent image to use, can be a url to a private registry leverage docker_login_* variables to authenticate to registry."
}

Expand Down
10 changes: 8 additions & 2 deletions terraform/modules/triton-rancher-k8s-host/versions.tf
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@

terraform {
required_version = ">= 0.12"
required_version = ">= 0.13"

required_providers {
triton = {
source = "joyent/triton"
version = "0.8.1"
}
}
}
8 changes: 4 additions & 4 deletions terraform/modules/triton-rancher-k8s/outputs.tf
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
output "rancher_cluster_id" {
value = "${lookup(data.external.rancher_cluster.result, "cluster_id")}"
value = lookup(data.external.rancher_cluster.result, "cluster_id")
}

output "rancher_cluster_registration_token" {
value = "${lookup(data.external.rancher_cluster.result, "registration_token")}"
value = lookup(data.external.rancher_cluster.result, "registration_token")
}

output "rancher_cluster_ca_checksum" {
value = "${lookup(data.external.rancher_cluster.result, "ca_checksum")}"
}
value = lookup(data.external.rancher_cluster.result, "ca_checksum")
}
2 changes: 1 addition & 1 deletion terraform/modules/triton-rancher-k8s/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ variable "rancher_secret_key" {
}

variable k8s_version {
default = "v1.17.6-rancher2-1"
default = "v1.18.12-rancher1-1"
}

variable k8s_network_provider {
Expand Down
10 changes: 8 additions & 2 deletions terraform/modules/triton-rancher-k8s/versions.tf
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@

terraform {
required_version = ">= 0.12"
required_version = ">= 0.13"

required_providers {
triton = {
source = "joyent/triton"
version = "0.8.1"
}
}
}
10 changes: 4 additions & 6 deletions terraform/modules/triton-rancher/main.tf
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
provider "triton" {
version = "~> 0.7.0"

account = var.triton_account
key_material = file(var.triton_key_path)
key_id = var.triton_key_id
url = var.triton_url
}

data "triton_network" "networks" {
count = "${length(var.triton_network_names)}"
name = "${element(var.triton_network_names, count.index)}"
count = length(var.triton_network_names)
name = element(var.triton_network_names, count.index)
}

data "triton_image" "image" {
Expand Down Expand Up @@ -83,7 +81,7 @@ resource "null_resource" "install_rancher_master" {
}

provisioner "remote-exec" {
inline = ["${data.template_file.install_rancher_master.rendered}"]
inline = [data.template_file.install_rancher_master.rendered]
}
}

Expand Down Expand Up @@ -115,7 +113,7 @@ resource "null_resource" "setup_rancher_k8s" {
}

provisioner "remote-exec" {
inline = ["${data.template_file.setup_rancher_k8s.rendered}"]
inline = [data.template_file.setup_rancher_k8s.rendered]
}
}

Expand Down
4 changes: 2 additions & 2 deletions terraform/modules/triton-rancher/outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ output "rancher_url" {
}

output "rancher_access_key" {
value = "${lookup(data.external.rancher_server.result, "name")}"
value = lookup(data.external.rancher_server.result, "name")
}

output "rancher_secret_key" {
value = "${lookup(data.external.rancher_server.result, "token")}"
value = lookup(data.external.rancher_server.result, "token")
}
4 changes: 2 additions & 2 deletions terraform/modules/triton-rancher/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ variable "docker_engine_install_url" {
}

variable "rancher_server_image" {
default = "rancher/rancher:v2.4.4"
default = "rancher/rancher:v2.4.11"
description = "The Rancher Server image to use, can be a url to a private registry leverage docker_login_* variables to authenticate to registry."
}

variable "rancher_agent_image" {
default = "rancher/rancher-agent:v2.4.4"
default = "rancher/rancher-agent:v2.4.11"
description = "The Rancher Agent image to use, can be a url to a private registry leverage docker_login_* variables to authenticate to registry."
}

Expand Down
9 changes: 8 additions & 1 deletion terraform/modules/triton-rancher/versions.tf
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@

terraform {
required_version = ">= 0.12"
required_version = ">= 0.13"

required_providers {
triton = {
source = "joyent/triton"
version = "0.8.1"
}
}
}
2 changes: 1 addition & 1 deletion terraform/modules/vsphere-rancher-k8s-host/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ variable "rancher_host_labels" {
}

variable "rancher_agent_image" {
default = "rancher/rancher-agent:v2.4.4"
default = "rancher/rancher-agent:v2.4.11"
description = "The Rancher Agent image to use, can be a url to a private registry leverage docker_login_* variables to authenticate to registry."
}

Expand Down
2 changes: 1 addition & 1 deletion terraform/modules/vsphere-rancher-k8s/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ variable "k8s_registry_password" {
}

variable "k8s_version" {
default = "v1.17.6-rancher2-1"
default = "v1.18.12-rancher1-1"
}

variable "k8s_network_provider" {
Expand Down

0 comments on commit 160bb76

Please sign in to comment.