1.1.0 • Published 5 months ago
@codiac.io/codiac-aws-eks v1.1.0
aws eks
Test to create cluster locally
remember to uncomment out line 173 and 174 in authconfigindex.ts
rename env.test.sample to .env.test and fill in the blanks
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
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'
1.1.0
5 months ago
1.0.29
6 months ago
1.0.28
7 months ago
1.0.27
10 months ago
1.0.31
6 months ago
1.0.30
6 months ago
1.0.26
1 year ago
1.0.25
1 year ago
1.0.24
1 year ago
1.0.22
1 year ago
1.0.21
1 year ago
1.0.23
1 year ago
1.0.19
1 year ago
1.0.20
1 year ago
1.0.18
1 year ago
1.0.17
1 year ago
1.0.16
2 years ago
1.0.15
2 years ago
1.0.14
3 years ago
1.0.13
3 years ago
1.0.12
3 years ago
1.0.9
3 years ago
1.0.11
3 years ago
1.0.10
3 years ago
1.0.8
3 years ago
1.0.6
3 years ago
1.0.5
3 years ago
1.0.4
3 years ago
1.0.3
3 years ago
1.0.2
3 years ago
1.0.1-mlr-journaling.41
3 years ago
1.0.1
3 years ago