eks_cli 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 78d1ac1a9a28a095b8364a99e2c6025bbdf82aab
4
- data.tar.gz: cd3872bd0c7b043af27f5158a6459f5b3c168026
3
+ metadata.gz: d318dca00b371fb3d96a83290250f2150d3c94aa
4
+ data.tar.gz: 386c383158262a5a6e3101ac30d99ce55f7e31f0
5
5
  SHA512:
6
- metadata.gz: 4286725d3526103ed2373364391b2f759ea2d7b0bf74768b42f8c67796b7332d211d8c9382162edd689225fad2b8d369088d1bf73ccb5cdce2f54b7ece5bb648
7
- data.tar.gz: 132517e6b5e8cb935faad6da978d5f52a2ac9216b367c792862be202c2a7f12ef179daa1c9cb4c0b847b59f33afc9d659ed2f01c15de4ad0de54b311b99d7880
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 various node groups of different types with communication between them
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 synopsys of available commands
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 shared on another VPC (an RDS instance for example) this command allows you to interact with from the new EKS cluster it by:
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 you EKS cluster VPC to the old VPC
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
 
@@ -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(:ami, :group_name, :instance_type, :num_subnets, :ssh_key_name, :taints, :min, :max)
60
- write({groups: { options[:group_name] => options }}, :groups)
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
@@ -1,3 +1,3 @@
1
1
  module EksCli
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: eks_cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Erez Rabih