k8s-helper-cli 0.2.6__py3-none-any.whl → 0.2.7__py3-none-any.whl
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.
- k8s_helper/__init__.py +1 -1
- k8s_helper/cli.py +63 -68
- {k8s_helper_cli-0.2.6.dist-info → k8s_helper_cli-0.2.7.dist-info}/METADATA +1 -1
- k8s_helper_cli-0.2.7.dist-info/RECORD +11 -0
- k8s_helper_cli-0.2.6.dist-info/RECORD +0 -11
- {k8s_helper_cli-0.2.6.dist-info → k8s_helper_cli-0.2.7.dist-info}/WHEEL +0 -0
- {k8s_helper_cli-0.2.6.dist-info → k8s_helper_cli-0.2.7.dist-info}/entry_points.txt +0 -0
- {k8s_helper_cli-0.2.6.dist-info → k8s_helper_cli-0.2.7.dist-info}/licenses/LICENSE +0 -0
- {k8s_helper_cli-0.2.6.dist-info → k8s_helper_cli-0.2.7.dist-info}/top_level.txt +0 -0
k8s_helper/__init__.py
CHANGED
k8s_helper/cli.py
CHANGED
@@ -748,65 +748,61 @@ def create_eks_cluster(
|
|
748
748
|
|
749
749
|
if wait:
|
750
750
|
console.print("⏳ Waiting for cluster to become active...")
|
751
|
-
|
752
|
-
|
753
|
-
|
754
|
-
|
755
|
-
|
756
|
-
|
757
|
-
|
758
|
-
|
759
|
-
|
760
|
-
|
761
|
-
|
762
|
-
|
763
|
-
|
764
|
-
|
765
|
-
console.print("✅ Node group is now active!")
|
766
|
-
console.print("🎉 Cluster is ready with worker nodes!")
|
767
|
-
else:
|
768
|
-
console.print("❌ Timeout waiting for node group to become active")
|
769
|
-
elif create_nodegroup and not wait:
|
770
|
-
# Create node group now that cluster is active
|
771
|
-
nodegroup_name = cluster_info.get('node_group_name') or f"{name}-nodegroup"
|
772
|
-
console.print(f"🔧 Creating node group: {nodegroup_name}")
|
773
|
-
try:
|
774
|
-
with console.status("Creating node group..."):
|
775
|
-
nodegroup_info = eks_client.create_nodegroup(
|
776
|
-
cluster_name=name,
|
777
|
-
nodegroup_name=nodegroup_name,
|
778
|
-
instance_types=instance_type_list,
|
779
|
-
ami_type=ami_type,
|
780
|
-
capacity_type=capacity_type,
|
781
|
-
scaling_config=scaling_config
|
782
|
-
# No SSH key for automatic creation
|
783
|
-
)
|
784
|
-
console.print(f"✅ Node group creation initiated: {nodegroup_name}")
|
785
|
-
console.print(f"📋 Node group ARN: {nodegroup_info['nodegroup_arn']}")
|
786
|
-
|
787
|
-
console.print(f"⏳ Waiting for node group to become active...")
|
788
|
-
with console.status("Waiting for node group to be ready..."):
|
789
|
-
if eks_client.wait_for_nodegroup_active(name, nodegroup_name):
|
790
|
-
console.print("✅ Node group is now active!")
|
791
|
-
console.print("🎉 Cluster is ready with worker nodes!")
|
792
|
-
else:
|
793
|
-
console.print("❌ Timeout waiting for node group to become active")
|
794
|
-
except Exception as e:
|
795
|
-
console.print(f"❌ Failed to create node group: {e}")
|
796
|
-
|
797
|
-
# Show next steps
|
798
|
-
console.print(f"\n🚀 Next steps:")
|
799
|
-
console.print(f" 1. Configure kubectl: aws eks update-kubeconfig --name {name} --region {region}")
|
800
|
-
if create_nodegroup:
|
801
|
-
console.print(f" 2. Verify nodes: kubectl get nodes")
|
802
|
-
console.print(f" 3. Verify connection: kubectl get svc")
|
803
|
-
console.print(f" 4. Deploy applications: k8s-helper apply <app-name> <image>")
|
751
|
+
if eks_client.wait_for_cluster_active(name):
|
752
|
+
console.print("✅ EKS cluster is now active!")
|
753
|
+
|
754
|
+
# Show cluster status
|
755
|
+
status = eks_client.get_cluster_status(name)
|
756
|
+
console.print(f"🔗 Endpoint: {status['endpoint']}")
|
757
|
+
|
758
|
+
# If node group was created, wait for it too
|
759
|
+
if create_nodegroup and 'nodegroup_info' in cluster_info:
|
760
|
+
nodegroup_name = cluster_info['nodegroup_info']['nodegroup_name']
|
761
|
+
console.print(f"⏳ Waiting for node group {nodegroup_name} to become active...")
|
762
|
+
if eks_client.wait_for_nodegroup_active(name, nodegroup_name):
|
763
|
+
console.print("✅ Node group is now active!")
|
764
|
+
console.print("🎉 Cluster is ready with worker nodes!")
|
804
765
|
else:
|
805
|
-
console.print(
|
806
|
-
|
807
|
-
|
766
|
+
console.print("❌ Timeout waiting for node group to become active")
|
767
|
+
elif create_nodegroup and not wait:
|
768
|
+
# Create node group now that cluster is active
|
769
|
+
nodegroup_name = cluster_info.get('node_group_name') or f"{name}-nodegroup"
|
770
|
+
console.print(f"🔧 Creating node group: {nodegroup_name}")
|
771
|
+
try:
|
772
|
+
nodegroup_info = eks_client.create_nodegroup(
|
773
|
+
cluster_name=name,
|
774
|
+
nodegroup_name=nodegroup_name,
|
775
|
+
instance_types=instance_type_list,
|
776
|
+
ami_type=ami_type,
|
777
|
+
capacity_type=capacity_type,
|
778
|
+
scaling_config=scaling_config
|
779
|
+
# No SSH key for automatic creation
|
780
|
+
)
|
781
|
+
console.print(f"✅ Node group creation initiated: {nodegroup_name}")
|
782
|
+
console.print(f"📋 Node group ARN: {nodegroup_info['nodegroup_arn']}")
|
783
|
+
|
784
|
+
console.print(f"⏳ Waiting for node group to become active...")
|
785
|
+
if eks_client.wait_for_nodegroup_active(name, nodegroup_name):
|
786
|
+
console.print("✅ Node group is now active!")
|
787
|
+
console.print("🎉 Cluster is ready with worker nodes!")
|
788
|
+
else:
|
789
|
+
console.print("❌ Timeout waiting for node group to become active")
|
790
|
+
except Exception as e:
|
791
|
+
console.print(f"❌ Failed to create node group: {e}")
|
792
|
+
|
793
|
+
# Show next steps
|
794
|
+
console.print(f"\n🚀 Next steps:")
|
795
|
+
console.print(f" 1. Configure kubectl: aws eks update-kubeconfig --name {name} --region {region}")
|
796
|
+
if create_nodegroup:
|
797
|
+
console.print(f" 2. Verify nodes: kubectl get nodes")
|
798
|
+
console.print(f" 3. Verify connection: kubectl get svc")
|
799
|
+
console.print(f" 4. Deploy applications: k8s-helper apply <app-name> <image>")
|
808
800
|
else:
|
809
|
-
console.print("
|
801
|
+
console.print(f" 2. Create node group: k8s-helper create-nodegroup {name}")
|
802
|
+
console.print(f" 3. Verify connection: kubectl get svc")
|
803
|
+
console.print(f" 4. Deploy applications: k8s-helper apply <app-name> <image>")
|
804
|
+
else:
|
805
|
+
console.print("❌ Timeout waiting for cluster to become active")
|
810
806
|
else:
|
811
807
|
console.print(f"💡 Use 'aws eks update-kubeconfig --name {name} --region {region}' to configure kubectl")
|
812
808
|
|
@@ -907,17 +903,16 @@ def create_nodegroup(
|
|
907
903
|
|
908
904
|
if wait:
|
909
905
|
console.print("⏳ Waiting for node group to become active...")
|
910
|
-
|
911
|
-
|
912
|
-
|
913
|
-
|
914
|
-
|
915
|
-
|
916
|
-
|
917
|
-
|
918
|
-
|
919
|
-
|
920
|
-
console.print("❌ Timeout waiting for node group to become active")
|
906
|
+
if eks_client.wait_for_nodegroup_active(cluster_name, nodegroup_name):
|
907
|
+
console.print("✅ Node group is now active!")
|
908
|
+
console.print("🎉 You can now deploy workloads!")
|
909
|
+
|
910
|
+
# Show next steps
|
911
|
+
console.print(f"\n🚀 Next steps:")
|
912
|
+
console.print(f" 1. Verify nodes: kubectl get nodes")
|
913
|
+
console.print(f" 2. Deploy applications: k8s-helper apply <app-name> <image>")
|
914
|
+
else:
|
915
|
+
console.print("❌ Timeout waiting for node group to become active")
|
921
916
|
else:
|
922
917
|
console.print(f"💡 Use 'kubectl get nodes' to check when nodes are ready")
|
923
918
|
|
@@ -0,0 +1,11 @@
|
|
1
|
+
k8s_helper/__init__.py,sha256=o14DQdASXvBo5Yni05BQwEh3XiIbRYvENC6P8tQ6f6U,2666
|
2
|
+
k8s_helper/cli.py,sha256=Ol6DO2zega-f4kaTL3hH7vB9oSy5heUAMkS1DkVkIp0,50867
|
3
|
+
k8s_helper/config.py,sha256=P7YdfyvCHprrNs2J9DRb3RrClylfTTh5hfTtDzLug0A,6867
|
4
|
+
k8s_helper/core.py,sha256=zdw582TNyl-z2fDZ7d9vooTiafwLh2rAEHey9HoD_fI,64329
|
5
|
+
k8s_helper/utils.py,sha256=wYgTd5ktyuI-EiVcfW7FrxA7MzXY5odrEKQgmMVdueY,9496
|
6
|
+
k8s_helper_cli-0.2.7.dist-info/licenses/LICENSE,sha256=tXPvVl3gLVc6e0qCEoLH9KjeA7z4JVL78UybpvGtBCw,1096
|
7
|
+
k8s_helper_cli-0.2.7.dist-info/METADATA,sha256=CIBvqHcaY3KaHpngGy7nAX_CO2cjxTo9IkWx0tV-JUI,26956
|
8
|
+
k8s_helper_cli-0.2.7.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
9
|
+
k8s_helper_cli-0.2.7.dist-info/entry_points.txt,sha256=IoCMWUZ6mn90LwzQzEy5YkWOwvogDdZ6ycqUWAzCFTQ,50
|
10
|
+
k8s_helper_cli-0.2.7.dist-info/top_level.txt,sha256=x9A1jflyer-z2cFnkqk5B42juoH2q0fy5hkT9upsTG8,11
|
11
|
+
k8s_helper_cli-0.2.7.dist-info/RECORD,,
|
@@ -1,11 +0,0 @@
|
|
1
|
-
k8s_helper/__init__.py,sha256=FxtqORYRmdOdDn5dN8w6JTvvcM0jAXvZoZpz_PgHvj4,2666
|
2
|
-
k8s_helper/cli.py,sha256=RCZgpgmTnciptWWESPC8tpJX1OCoIaFzLkT7mm_DDVk,51604
|
3
|
-
k8s_helper/config.py,sha256=P7YdfyvCHprrNs2J9DRb3RrClylfTTh5hfTtDzLug0A,6867
|
4
|
-
k8s_helper/core.py,sha256=zdw582TNyl-z2fDZ7d9vooTiafwLh2rAEHey9HoD_fI,64329
|
5
|
-
k8s_helper/utils.py,sha256=wYgTd5ktyuI-EiVcfW7FrxA7MzXY5odrEKQgmMVdueY,9496
|
6
|
-
k8s_helper_cli-0.2.6.dist-info/licenses/LICENSE,sha256=tXPvVl3gLVc6e0qCEoLH9KjeA7z4JVL78UybpvGtBCw,1096
|
7
|
-
k8s_helper_cli-0.2.6.dist-info/METADATA,sha256=q2eUHFwQqjmtTf-PjbVOifIp472tIWK0OPH2kfQXmYs,26956
|
8
|
-
k8s_helper_cli-0.2.6.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
9
|
-
k8s_helper_cli-0.2.6.dist-info/entry_points.txt,sha256=IoCMWUZ6mn90LwzQzEy5YkWOwvogDdZ6ycqUWAzCFTQ,50
|
10
|
-
k8s_helper_cli-0.2.6.dist-info/top_level.txt,sha256=x9A1jflyer-z2cFnkqk5B42juoH2q0fy5hkT9upsTG8,11
|
11
|
-
k8s_helper_cli-0.2.6.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|