kubectl
@kubectl1
I'm a command line tool that allows you to remote control your Kubernetes cluster
你可能會喜歡
TIL that ‘kubectl port-forward’ can take a deployment. I had always picked a specific pod first.
Registration is now open for the inaugural Infrastructure & Ops Conference in Santa Clara this June! Discover what's ahead for #cloud, #Kubernetes, #automation, #microservices and more. Best Price ends March 20—don't miss this chance to save on your pass. oreil.ly/bSrE5
Announcing the #Kubernetes bug bounty program 🐞🔍Check out the blog post with everything you need to know 🌟 kubernetes.io/blog/2020/01/1…
Well, that looks handy! rakkess, a kubectl plugin to show an access matrix for all available resources. github.com/corneliusweig/… #Kubernetes
Woah! Trace me :) github.com/fntlnz/kubectl… Schedule bpftrace programs on your kubernetes cluster using the kubectl
A little weekend contrib, the `kubectl` tip of the day: wait like a boss … medium.com/@mhausenblas/k… @kubernetesio #kubectl #CLI
TIL `kubectl alpha diff -f <yaml file/dir>` Compares deployed resource with local yaml file. Where have you been all my life... ♥️ #Kubernetes
Ha! About time ;) > This project does not really introduce a kubectl plugin but a concept of how to provide a sudo like system for kubernetes access. github.com/postfinance/ku… #Kubernetes #CLI #kubectl
Troubleshooting #Kubernetes services # a jump pod with curl installed: $ kubectl run -it --rm jumpod --restart=Never --image=quay.io/mhausenblas/ju… -- sh # a gRPC jump pod: $ kubectl run -it --rm gumpod --restart=Never --image=quay.io/mhausenblas/gu…
Not many more to go (assumes kubectl in pod)... $ kubectl --certificate-authority /var/run/secrets/kubernetes.io/serviceaccount/ca.crt --token $(cat /var/run/secrets/kubernetes.io/serviceaccount/token) --server https://kubernetes.default get pods
Excellent! And another one: $ export CURL_CA_BUNDLE=/var/run/secrets/kubernetes.io/serviceaccount/ca.crt $ APISERVERTOKEN=$(cat /var/run/secrets/kubernetes.io/serviceaccount/token) $ curl -H "Authorization: Bearer $APISERVERTOKEN" kubernetes.default … if you're allowed to ;)
Oh, and I suppose for completeness now we're here, from a pod inside the cluster... $ echo "${KUBERNETES_PORT}" tcp://10.42.42.42:443
DNS version: kubernetes.default.svc 🔎🕸️
neat, but couldn't you get the same info with a simple kubectl cluster-info? Prints the following for my local cluster: Kubernetes master is running at https://localhost:6443 KubeDNS is running at https://localhost:6443/api/v1/namespaces/kube-system/services/kube-dns:dns/proxy
[TIP] if you’re new to a @kubernetesio cluster and unsure where the API server is, execute: $ kubectl get --raw=/api | \ jq .serverAddressByClientCIDRs[0].serverAddress -r 192.168.64.11:8443 This IP:port you see there, in my case Minikube, that’s the API Server ;)
United States 趨勢
- 1. $NVDA 65.8K posts
- 2. Jensen 19.7K posts
- 3. #happybdayTYGA N/A
- 4. GeForce Season 4,825 posts
- 5. Peggy 37.6K posts
- 6. #ใครในกระจกEP5 9,353 posts
- 7. Sumrall 1,949 posts
- 8. Saba 11K posts
- 9. Martha 19.1K posts
- 10. Stargate 6,005 posts
- 11. Comey 54.8K posts
- 12. #WWESuperCardNewSeason N/A
- 13. #2Kgiveaway N/A
- 14. Poverty 52.1K posts
- 15. Sonic 06 3,588 posts
- 16. Jason Crow 2,164 posts
- 17. The Fugitive 2,843 posts
- 18. NASA 51.5K posts
- 19. Halligan 25.8K posts
- 20. MLB TV 2,270 posts
Something went wrong.
Something went wrong.