You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jun 29, 2022. It is now read-only.
lokoctl is a command-line interface for Lokomotive.
43
+
>NOTE: The `kubectl` version used to interact with a Kubernetes cluster needs to be compatible with
44
+
>the version of the Kubernetes control plane. Ideally you should install a `kubectl` binary whose
45
+
>version is identical to the Kubernetes control plane included with a Lokomotive release. However,
46
+
>some degree of version "skew" is tolerated - see the Kubernetes
47
+
>[version skew policy](https://kubernetes.io/docs/setup/release/version-skew-policy/) document for
48
+
>more information. You can determine the version of the Kubernetes control plane included with a
49
+
>Lokomotive release by looking at the [release notes](https://github.com/kinvolk/lokomotive/releases).
27
50
28
-
To install `lokoctl`, follow the instructions in the [lokoctl installation](../installer/lokoctl.md)
29
-
guide.
30
51
31
-
### Step 2: Set up a working directory
32
-
33
-
It's better to start fresh in a new working directory, as the state of the cluster is stored in this
34
-
directory.
35
-
36
-
This also makes the cleanup task easier.
52
+
## Steps
37
53
38
-
```console
39
-
mkdir -p lokomotive-infra/myawscluster
40
-
cd lokomotive-infra/myawscluster
41
-
```
54
+
### Step 1: Install lokoctl
42
55
43
-
### Step 3: Set up credentials from environment variables
56
+
`lokoctl` is the command-line interface for managing Lokomotive clusters. You can follow the [installer guide](../installer/lokoctl) to install it locally for your OS.
44
57
45
-
The AWS credentials file can be found at `~/.aws/credentials` if you have set up and configured AWS
46
-
CLI before. If you want to use that account, you don't need to specify any credentials for lokoctl.
58
+
### Step 2: Create a cluster configuration
47
59
48
-
You can also take any other credentials mechanism used by the AWS CLI, for example environment
49
-
variables. Either prepend them when starting lokoctl or export each of them once in the current
50
-
terminal session:
60
+
Create a directory for the cluster-related files and navigate to it:
Replace the parameters above using the following information:
64
100
65
-
To create a Lokomotive cluster, we need to define a configuration.
101
+
-`dns_zone` - a Route 53 zone name. A subdomain will be created under this zone in the following
102
+
format: `<cluster_name>.<zone>`
103
+
-`dns_zone_id` - a Route 53 DNS zone ID which can be found in your AWS console.
104
+
-`ssh_pubkeys` - A list of strings representing the *contents* of the public SSH keys which should
105
+
be authorized on cluster nodes.
66
106
67
-
A [production-ready configuration](https://github.com/kinvolk/lokomotive/blob/v0.5.0/examples/aws-production/cluster.lokocfg) is already provided for ease of
68
-
use. Copy the example configuration to the working directory and modify accordingly.
107
+
The rest of the parameters may be left as-is. For more information about the configuration options
108
+
see the [configuration reference](../configuration-reference/platforms/aws.md).
69
109
70
-
The provided configuration installs the Lokomotive cluster and the following components:
> We also deploy a webhook server which disallows usage of default service account. Refer to the [Lokomotive admission webhooks](../concepts/admission-webhook) for more details.
176
214
177
215
## Cleanup
178
216
@@ -201,15 +239,15 @@ module.aws-myawscluster.null_resource.copy-controller-secrets: Still creating...
201
239
The error probably happens because the `ssh_pubkeys` provided in the configuration is missing in the
202
240
`ssh-agent`.
203
241
204
-
To rectify the error, you need to:
242
+
In case the deployment process seems to hang at the `copy-controller-secrets` phase for a long
- Verify the correct private SSH key was added to `ssh-agent`.
246
+
- Verify that you can SSH into the created controller node from the machine running `lokoctl`.
209
247
210
248
### IAM Permission Issues
211
249
212
-
* If the failure is due to insufficient permissions, check the IAM policy and follow the [IAM troubleshooting guide](https://docs.aws.amazon.com/IAM/latest/UserGuide/troubleshoot.html).
250
+
* If the failure is due to insufficient permissions, check the [IAM troubleshooting guide](https://docs.aws.amazon.com/IAM/latest/UserGuide/troubleshoot.html) or follow the IAM permissiosn specified in [DNS document](../concepts/dns.md#aws-route-53).
0 commit comments