npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@codiac.io/codiac-aws-eks

v1.0.20

Published

codiac package to create and build EKS cluster

Downloads

253

Readme

aws eks

Test to create cluster locally

remember to uncomment out line 173 and 174 in authconfigindex.ts

npm run test:single -- ./src/index.spec.ts -g 'create cluster test'  --timeout 1000

npm run test:single -- ./src/index.spec.ts -g 'delete cluster test'  --timeout 1000

setup kubeconfig to point to aws cluster

aws eks update-kubeconfig --region us-east-1 --alias cluster-eks-sdk --name cluster-eks-sdk
kubectl create namespace testns
kubectl config set-context --current --namespace=testns
kubectl config view
kubectl config get-contexts
kubectl get pods -o wide 

commands

kubectl get nodes -o jsonpath='{.items[*].status.addresses[?(@.type=="ExternalIP")].address}'


kubectl exec -ti multitool-5c66dfbfd8-6msx9 -- bash -c "cat /etc/resolv.conf" 
kubectl get svc -n kube-system

create test pod in cluster


kubectl create deployment multitool --image=praqma/network-multitool -n testns
kubectl create service clusterip multitool --tcp=80:80 -n testns

install kubect shell

kubectl-node-shell

curl -LO https://github.com/kvaps/kubectl-node-shell/raw/master/kubectl-node_shell
chmod +x ./kubectl-node_shell
sudo mv ./kubectl-node_shell /usr/local/bin/kubectl-node_shell



kubectl get node
kubectl node-shell  ip-10-50-61-76.ec2.internal
kubectl node-shell ip-10-50-61-76.ec2.internal -- ls -al /etc/codiac
kubectl node-shell ip-10-50-61-76.ec2.internal -- cat /etc/codiac/kubelet-extra.json
kubectl node-shell ip-10-50-61-76.ec2.internal -- cat  /etc/codiac/kubelet.env


# Get standard bash shell
kubectl node-shell <node>

# Use X-mode (mount /host, and do not enter host namespace)
kubectl node-shell -x <node>

# Execute custom command
kubectl node-shell <node> -- echo 123

# Use stdin
cat /etc/passwd | kubectl node-shell <node> -- sh -c 'cat > /tmp/passwd'

# Run oneliner script
kubectl node-shell <node> -- sh -c 'cat /tmp/passwd; rm -f /tmp/passwd'