eks_cli 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +5 -5
- data/lib/eks_cli/config.rb +4 -3
- data/lib/eks_cli/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d318dca00b371fb3d96a83290250f2150d3c94aa
|
4
|
+
data.tar.gz: 386c383158262a5a6e3101ac30d99ce55f7e31f0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3ee61ecb5899fafa995a9ead75b516d10dcb91ac775593f77cc38d7c8fa9d66d29a64ee1e671f2d449337500777dae457bc2f0ee2d31a26b3e1bdad0638b0cab
|
7
|
+
data.tar.gz: 0d3d54da59b6f791e3dba63dad14a3d1ba4c09e615c7813a62b9db88dd4e52eb6438091b8973c3077c59998105ce0f57bb7d6c5c3189ccfaef923439aea47e21
|
data/README.md
CHANGED
@@ -4,7 +4,7 @@ EKS cluster bootstrap with batteries included
|
|
4
4
|
|
5
5
|
## Highlights
|
6
6
|
|
7
|
-
* Supports creation of
|
7
|
+
* Supports creation of multiple node groups of different types with communication enabled between them
|
8
8
|
* Taint and label your nodegroups
|
9
9
|
* Manage IAM policies that will be attached to your nodes
|
10
10
|
* Easily configure docker repository secrets to allow pulling private images
|
@@ -14,14 +14,14 @@ EKS cluster bootstrap with batteries included
|
|
14
14
|
## Usage
|
15
15
|
|
16
16
|
```
|
17
|
-
$ gem install eks_cli
|
17
|
+
$ gem install eks_cli -v 0.1.2
|
18
18
|
$ eks create us-west-2 --cluster-name=My-EKS-Cluster
|
19
19
|
$ eks create-nodegroup --cluster-name My-EKS-Cluster --group-name nodes --ssh-key-name my-ssh-key --min 1 --max 3
|
20
20
|
$ eks create-nodegroup --cluster-name My-EKS-Cluster --group-name other-nodes --ssh-key-name my-ssh-key --min 3 --max 3 --instance-type m5.2xlarge
|
21
21
|
$ eks create-nodegroup --all --cluster-name My-EKS-Cluster --yes
|
22
22
|
```
|
23
23
|
|
24
|
-
You can type `eks` in your shell to get the full
|
24
|
+
You can type `eks` in your shell to get the full synopsis of available commands
|
25
25
|
|
26
26
|
## Prerequisite
|
27
27
|
|
@@ -70,9 +70,9 @@ Creates a standard gp2 default storage class named gp2
|
|
70
70
|
|
71
71
|
`$ eks set-inter-vpc-networking VPC_ID SG_ID`
|
72
72
|
|
73
|
-
Assuming you have some resources
|
73
|
+
Assuming you have some shared resources on another VPC (an RDS instance for example), this command open communication between your new EKS cluster and your old VPC:
|
74
74
|
|
75
|
-
1. Creating and accepting a VPC peering connection from
|
75
|
+
1. Creating and accepting a VPC peering connection from your EKS cluster VPC to the old VPC
|
76
76
|
2. Setting route tables on both directions to allow communication
|
77
77
|
3. Adding an ingress role to SG_ID to accept all communication from your new cluster nodes.
|
78
78
|
|
data/lib/eks_cli/config.rb
CHANGED
@@ -39,7 +39,7 @@ module EksCli
|
|
39
39
|
to_path = resolve_config_file(to)
|
40
40
|
Log.info "updating configuration file #{to_path}:\n#{attrs}"
|
41
41
|
attrs = attrs.inject({}) {|h,(k,v)| h[k.to_s] = v; h}
|
42
|
-
current = read(to_path)
|
42
|
+
current = read(to_path) rescue {}
|
43
43
|
updated = current.deep_merge(attrs)
|
44
44
|
write_to_file(updated, to_path)
|
45
45
|
end
|
@@ -56,8 +56,9 @@ module EksCli
|
|
56
56
|
end
|
57
57
|
|
58
58
|
def update_nodegroup(options)
|
59
|
-
options = options.slice(
|
60
|
-
|
59
|
+
options = options.slice("ami", "group_name", "instance_type", "num_subnets", "ssh_key_name", "taints", "min", "max")
|
60
|
+
raise "bad nodegroup name #{options["group_name"]}" if options["group_name"] == nil || options["group_name"].empty?
|
61
|
+
write({groups: { options["group_name"] => options }}, :groups)
|
61
62
|
end
|
62
63
|
|
63
64
|
private
|
data/lib/eks_cli/version.rb
CHANGED