-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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 #2406 from nmelehan/rc-v0.9
[Release Candidate] v0.9
- Loading branch information
Showing
78 changed files
with
866 additions
and
10 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 |
---|---|---|
|
@@ -644,6 +644,7 @@ knowledgebase | |
konversation | ||
kube | ||
kubeadm | ||
kubeconfig | ||
kubectl | ||
kubelet | ||
kubelets | ||
|
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 |
---|---|---|
|
@@ -374,6 +374,140 @@ resource "linode_domain" "example_label" { | |
|
||
For more available configuration options, visit the [Linode Domain](https://www.terraform.io/docs/providers/linode/r/domain.html) Terraform documentation. | ||
|
||
## Import a Domain Record to Terraform | ||
|
||
### Retrieve Your Domain's ID and Your Domain Record's ID | ||
|
||
Due to the way the Linode API accesses domain records, you need to provide both the Domain ID and the Domain Record ID to import a Domain Record. | ||
|
||
1. Using the Linode CLI, retrieve a list of all your domains to find the ID of the domain that includes the record you would like to manage under Terraform: | ||
|
||
linode-cli domains list --json --pretty | ||
|
||
You should see output like the following: | ||
|
||
{{< output >}} | ||
[ | ||
{ | ||
"domain": "import-example.com", | ||
"id": 1157521, | ||
"soa_email": "[email protected]", | ||
"status": "active", | ||
"type": "master" | ||
} | ||
] | ||
{{< /output >}} | ||
|
||
Find the domain that contains the record you would like to import and copy down the ID. You will need this ID to import your domain record to Terraform. | ||
|
||
1. Using the Linode CLI, retrieve a list of your domain's records to find the ID of the record you would like to manage under Terraform. Substitute `domainID` with the ID of your domain: | ||
|
||
linode-cli domains records-list domainID --json --pretty | ||
|
||
You should see an output like the following: | ||
|
||
{{< output >}} | ||
[ | ||
{ | ||
"id": 12331520, | ||
"name": "www", | ||
"priority": 0, | ||
"target": "192.0.2.0", | ||
"ttl_sec": 300, | ||
"type": "A", | ||
"weight": 0 | ||
} | ||
] | ||
{{</ output >}} | ||
|
||
Find the ID of the record you would like to import and copy down the ID. You will need this ID to import your domain record to Terraform. | ||
|
||
### Create an Empty Resource Configuration | ||
|
||
1. Ensure you are in your [Terraform project directory](/docs/applications/configuration-management/how-to-build-your-infrastructure-using-terraform-and-linode/#install-terraform). Create a Terraform configuration file to manage the domain record you will import in the next section. Your file can be named anything you like, but must end in `.tf`. Add a Linode provider block with your API access token and an empty `linode_domain_record` resource configuration block to the file: | ||
|
||
{{< file "domain_record_import.tf" >}} | ||
provider "linode" { | ||
token = "Your API Token" | ||
} | ||
|
||
resource "linode_domain_record" "example_label" {} | ||
{{< /file >}} | ||
|
||
### Import Your Domain Record to Terraform | ||
|
||
1. Run the `import` command, supplying the `linode_domain_record` resource's label, and the domain ID and domain record ID that were retrieved in the [Retrieve Your Domain's ID and Your Record's ID](/docs/applications/configuration-management/import-existing-infrastructure-to-terraform/#retrieve-your-domain-s-id-and-your-record-s-id) section: | ||
|
||
terraform import linode_domain_record.example_label domainID,recordID | ||
|
||
You should see output similar to the following: | ||
|
||
{{< output >}} | ||
linode_domain_record.example_label: Importing from ID "1157521,12331520"... | ||
linode_domain_record.example_label: Import complete! | ||
Imported linode_domain_record (ID: 12331520) | ||
linode_domain_record.example_label: Refreshing state... (ID: 12331520) | ||
|
||
Import successful! | ||
|
||
The resources that were imported are shown above. These resources are now in | ||
your Terraform state and will henceforth be managed by Terraform. | ||
{{< /output >}} | ||
|
||
This command will create a `terraform.tfstate` file with information about your domain record. You will use this information to fill out your resource configuration. | ||
|
||
1. To view the information created by `terraform import`, run the show command. This command will display a list of key-value pairs representing information about the imported domain: | ||
|
||
terraform show | ||
|
||
You should see output like the following: | ||
|
||
{{< output >}} | ||
linode_domain_record.example_label: | ||
id = 12331520 | ||
domain_id = 1157521 | ||
name = www | ||
port = 0 | ||
priority = 0 | ||
protocol = | ||
record_type = A | ||
service = | ||
tag = | ||
target = 104.237.148.95 | ||
ttl_sec = 300 | ||
weight = 0 | ||
{{< /output >}} | ||
|
||
### Fill In Your Domain Record's Configuration Data | ||
|
||
As mentioned in the [Terraform’s Import Command](/docs/applications/configuration-management/import-existing-infrastructure-to-terraform/#terraform-s-import-command) section, you must manually create your resource configurations when importing existing infrastructure. | ||
|
||
1. Fill in the configuration values for the `linode_domain_record` resource block. The necessary values for the example resource configuration file were collected from the output of the `terraform show` command applied in Step 2 of the [Import Your Domain Record to Terraform](/docs/applications/configuration-management/import-existing-infrastructure-to-terraform/#import-your-domain-record-to-terraform) section. | ||
|
||
{{< file "domain_record_import.tf" >}} | ||
provider "linode" { | ||
token = "1a2b3c..." | ||
} | ||
|
||
resource "linode_domain_record" "example_label" { | ||
domain_id = "1157521" | ||
name = "www" | ||
record_type = "A" | ||
target = "192.0.2.0" | ||
ttl_sec = "300" | ||
} | ||
{{< /file >}} | ||
|
||
1. Check for errors in your configuration by running the `plan` command: | ||
|
||
terraform plan | ||
|
||
`terraform plan` shows you the changes that would take place if you were to apply the configurations with the `terraform apply` command. Running `terraform plan` should result in Terraform displaying that no changes are to be made. | ||
|
||
2. Once you have verified the configurations you provided in the `linode_domain_record` block, you are ready to begin managing your domain record with Terraform. Any changes or updates can be made by updating your `domain_record_import.tf` file, then verifying the changes with the `terrform plan` command, and then finally applying the changes with the `terraform apply` command. | ||
|
||
For more available configuration options, visit the [Linode Domain Record](https://www.terraform.io/docs/providers/linode/r/domain_record.html) Terraform documentation. | ||
|
||
## Import a Block Storage Volume to Terraform | ||
|
||
### Retrieve Your Block Storage Volume's ID | ||
|
File renamed without changes
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
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
Binary file added
BIN
+143 KB
...deploy-kubernetes-on-linode-with-rancher-2-2/66.228.44.63_n_drivers_cluster.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+47.9 KB
...to-deploy-kubernetes-on-linode-with-rancher-2-2/activate-linode-node-driver.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+42.4 KB
...kubernetes-on-linode-with-rancher-2-2/add-cluster-form-3-node-all-role-pool.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+28.7 KB
...node-with-rancher-2-2/add-cluster-form-add-node-template-button-highlighted.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+76.2 KB
...ubernetes-on-linode-with-rancher-2-2/add-cluster-form-custom-cloud-provider.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+53 KB
...s-on-linode-with-rancher-2-2/add-cluster-form-example-production-node-pools.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+43.9 KB
...tes-on-linode-with-rancher-2-2/add-cluster-form-linode-node-driver-selected.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+96.9 KB
...how-to-deploy-kubernetes-on-linode-with-rancher-2-2/add-cluster-yaml-editor.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+166 KB
...to-deploy-kubernetes-on-linode-with-rancher-2-2/add-node-template-api-token.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+9.21 KB
...-kubernetes-on-linode-with-rancher-2-2/add-node-template-form-template-name.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+44.2 KB
...ploy-kubernetes-on-linode-with-rancher-2-2/add-node-template-linode-options.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+85.3 KB
.../how-to-deploy-kubernetes-on-linode-with-rancher-2-2/add-node-template-list.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+60.8 KB
...w-to-deploy-kubernetes-on-linode-with-rancher-2-2/add-node-template-profile.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+55.4 KB
...-to-deploy-kubernetes-on-linode-with-rancher-2-2/app-catalog-list-wordpress.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+39.2 KB
...-kubernetes-on-linode-with-rancher-2-2/authentication-client-id-secret-form.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+78.7 KB
...loy-kubernetes-on-linode-with-rancher-2-2/authentication-github-form-values.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+62 KB
...deploy-kubernetes-on-linode-with-rancher-2-2/authentication-github-selected.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+92.9 KB
...eploy-kubernetes-on-linode-with-rancher-2-2/authentication-site-access-form.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+96.2 KB
...oy-kubernetes-on-linode-with-rancher-2-2/cloud-manager-linodes-provisioning.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+49.1 KB
...ernetes-on-linode-with-rancher-2-2/cluster-dashboard-kubeconfig-highlighted.png
Oops, something went wrong.
Binary file added
BIN
+49.1 KB
...kubernetes-on-linode-with-rancher-2-2/cluster-dashboard-kubectl-highlighted.png
Oops, something went wrong.
Binary file added
BIN
+114 KB
...ploy-kubernetes-on-linode-with-rancher-2-2/cluster-dashboard-kubectl-prompt.png
Oops, something went wrong.
Binary file added
BIN
+122 KB
...deploy-kubernetes-on-linode-with-rancher-2-2/cluster-dashboard-provisioning.png
Oops, something went wrong.
Binary file added
BIN
+117 KB
...iners/how-to-deploy-kubernetes-on-linode-with-rancher-2-2/cluster-dashboard.png
Oops, something went wrong.
Binary file added
BIN
+24.6 KB
...ernetes-on-linode-with-rancher-2-2/cluster-navigation-bar-nodes-highlighted.png
Oops, something went wrong.
Binary file added
BIN
+14.7 KB
...ode-with-rancher-2-2/cluster-navigation-bar-projects-namespaces-highlighted.png
Oops, something went wrong.
Binary file added
BIN
+14 KB
.../how-to-deploy-kubernetes-on-linode-with-rancher-2-2/cluster-navigation-bar.png
Oops, something went wrong.
Binary file added
BIN
+92 KB
...w-to-deploy-kubernetes-on-linode-with-rancher-2-2/cluster-nodes-list-active.png
Oops, something went wrong.
Binary file added
BIN
+103 KB
...eploy-kubernetes-on-linode-with-rancher-2-2/cluster-nodes-list-provisioning.png
Oops, something went wrong.
Binary file added
BIN
+69.4 KB
...-linode-with-rancher-2-2/cluster-selection-menu-default-project-highlighted.png
Oops, something went wrong.
Binary file added
BIN
+43.7 KB
...-kubernetes-on-linode-with-rancher-2-2/cluster-selection-menu-show-projects.png
Oops, something went wrong.
103 changes: 103 additions & 0 deletions
103
...ntainers/how-to-deploy-kubernetes-on-linode-with-rancher-2-2/completed-cluster-config.yml
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 |
---|---|---|
@@ -0,0 +1,103 @@ | ||
addons_include: | ||
- https://linode.github.io/rancher-ui-driver-linode/releases/v0.2.0/linode-addons.yml | ||
addons: |- | ||
--- | ||
apiVersion: v1 | ||
kind: Secret | ||
metadata: | ||
name: linode | ||
namespace: kube-system | ||
stringData: | ||
token: "..." | ||
region: "..." | ||
--- | ||
addon_job_timeout: 30 | ||
authentication: | ||
strategy: "x509" | ||
ignore_docker_version: true | ||
# | ||
# # Currently only nginx ingress provider is supported. | ||
# # To disable ingress controller, set `provider: none` | ||
# # To enable ingress on specific nodes, use the node_selector, eg: | ||
# provider: nginx | ||
# node_selector: | ||
# app: ingress | ||
# | ||
ingress: | ||
provider: "nginx" | ||
kubernetes_version: "v1.13.4-rancher1-2" | ||
monitoring: | ||
provider: "metrics-server" | ||
# | ||
# # If you are using calico on AWS | ||
# | ||
# network: | ||
# plugin: calico | ||
# calico_network_provider: | ||
# cloud_provider: aws | ||
# | ||
# # To specify flannel interface | ||
# | ||
# network: | ||
# plugin: flannel | ||
# flannel_network_provider: | ||
# iface: eth1 | ||
# | ||
# # To specify flannel interface for canal plugin | ||
# | ||
# network: | ||
# plugin: canal | ||
# canal_network_provider: | ||
# iface: eth1 | ||
# | ||
network: | ||
options: | ||
flannel_backend_type: "vxlan" | ||
plugin: "canal" | ||
# | ||
# services: | ||
# kube-api: | ||
# service_cluster_ip_range: 10.43.0.0/16 | ||
# kube-controller: | ||
# cluster_cidr: 10.42.0.0/16 | ||
# service_cluster_ip_range: 10.43.0.0/16 | ||
# kubelet: | ||
# cluster_domain: cluster.local | ||
# cluster_dns_server: 10.43.0.10 | ||
# | ||
services: | ||
etcd: | ||
backup_config: | ||
interval_hours: 12 | ||
retention: 6 | ||
creation: "12h" | ||
extra_args: | ||
heartbeat-interval: 500 | ||
election-timeout: 5000 | ||
retention: "72h" | ||
snapshot: true | ||
kube-api: | ||
always_pull_images: false | ||
pod_security_policy: false | ||
service_node_port_range: "30000-32767" | ||
extra_args: | ||
feature-gates: "PersistentLocalVolumes=true,VolumeScheduling=true,CSINodeInfo=true,CSIDriverRegistry=true,BlockVolume=true,CSIBlockVolume=true" | ||
kubelet: | ||
fail_swap_on: false | ||
extra_args: | ||
cloud-provider: "external" | ||
feature-gates: "PersistentLocalVolumes=true,VolumeScheduling=true,CSINodeInfo=true,CSIDriverRegistry=true,BlockVolume=true,CSIBlockVolume=true" | ||
kube-controller: | ||
extra_args: | ||
cloud-provider: "external" | ||
ssh_agent_auth: false | ||
# | ||
# # Rancher Config | ||
# | ||
docker_root_dir: "/var/lib/docker" | ||
enable_cluster_alerting: false | ||
enable_cluster_monitoring: false | ||
enable_network_policy: false | ||
local_cluster_auth_endpoint: | ||
enabled: true | ||
name: "example-cluster" |
Binary file added
BIN
+36.4 KB
...rancher-2-2/default-project-app-view-wordpress-provisioned-link-highlighted.png
Oops, something went wrong.
Binary file added
BIN
+57 KB
...ancher-2-2/default-project-app-view-wordpress-provisioning-link-highlighted.png
Oops, something went wrong.
Binary file added
BIN
+15.8 KB
...-on-linode-with-rancher-2-2/default-project-navigation-bar-apps-highlighted.png
Oops, something went wrong.
Binary file added
BIN
+15.4 KB
...deploy-kubernetes-on-linode-with-rancher-2-2/default-project-navigation-bar.png
Oops, something went wrong.
Binary file added
BIN
+23.3 KB
...ers/how-to-deploy-kubernetes-on-linode-with-rancher-2-2/drivers-menu-option.png
Oops, something went wrong.
Binary file added
BIN
+42.3 KB
...y-kubernetes-on-linode-with-rancher-2-2/edit-cluster-adjust-node-pool-count.png
Oops, something went wrong.
Binary file added
BIN
+132 KB
...ainers/how-to-deploy-kubernetes-on-linode-with-rancher-2-2/enter-server-url.png
Oops, something went wrong.
Binary file added
BIN
+242 KB
...iners/how-to-deploy-kubernetes-on-linode-with-rancher-2-2/first-load-screen.png
Oops, something went wrong.
Binary file added
BIN
+86.5 KB
...ploy-kubernetes-on-linode-with-rancher-2-2/global-clusters-page-no-clusters.png
Oops, something went wrong.
Binary file added
BIN
+59.9 KB
...ancher-2-2/global-home-page-cluster-selection-menu-cluster-name-highlighted.png
Oops, something went wrong.
Binary file added
BIN
+119 KB
...etes-on-linode-with-rancher-2-2/global-home-page-delete-cluster-highlighted.png
Oops, something went wrong.
Binary file added
BIN
+121 KB
...rnetes-on-linode-with-rancher-2-2/global-home-page-edit-cluster-highlighted.png
Oops, something went wrong.
Binary file added
BIN
+83.7 KB
...cher-2-2/global-home-page-new-cluster-provisioning-cluster-name-highlighted.png
Oops, something went wrong.
Binary file added
BIN
+46.5 KB
...rnetes-on-linode-with-rancher-2-2/global-home-page-new-cluster-provisioning.png
Oops, something went wrong.
Oops, something went wrong.