K8s/Ingress: Difference between revisions
Jump to navigation
Jump to search
(Created page with "==External== <syntaxhighlight lang="bash"> kubectl get ns|grep external kubectl delete namespace external kubectl create namespace external </syntaxhighlight> ==Internal== <syntaxhighlight lang="bash"> kubectl get ns|grep internal kubectl delete namespace internal kubectl create namespace internal </syntaxhighlight> ==Playground== {| |valign="top"| <syntaxhighlight lang="bash"> kubectl -n external get endpoints kubectl -n external get service kubectl -n external get in...") |
No edit summary |
||
Line 7: | Line 7: | ||
==Internal== | ==Internal== | ||
{| | |||
|valign='top'| | |||
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
kubectl get ns|grep internal | kubectl get ns|grep internal | ||
Line 12: | Line 14: | ||
kubectl create namespace internal | kubectl create namespace internal | ||
</syntaxhighlight> | </syntaxhighlight> | ||
|- | |||
|colspan='2'| | |||
---- | |||
|- | |||
|valign='top'| | |||
|valign='top'| | |||
|} | |||
==Playground== | ==Playground== | ||
{| | {| | ||
|valign= | |valign='top'| | ||
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
kubectl -n external get endpoints | kubectl -n external get endpoints | ||
Line 22: | Line 34: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
|valign= | |valign='top'| | ||
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
kubectl -n internal get endpoints | kubectl -n internal get endpoints | ||
Line 29: | Line 41: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
|valign= | |valign='top'| | ||
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
kubectl config get-contexts | kubectl config get-contexts | ||
Line 37: | Line 49: | ||
|- | |- | ||
| colspan= | |colspan='3'| | ||
---- | ---- | ||
|- | |- | ||
|valign= | |valign='top'| | ||
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
kubectl get all -A | kubectl get all -A | ||
Line 47: | Line 59: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
| valign= | |valign='top'| | ||
| valign= | |valign='top'| | ||
|} | |} | ||
Line 55: | Line 67: | ||
==References== | ==References== | ||
{| | {| | ||
| valign= | |valign='top'| | ||
* [https://stackoverflow.com/questions/67708284/ K8s » Ingress » Connect to external service] | * [https://stackoverflow.com/questions/67708284/ K8s » Ingress » Connect to external service] | ||
* [https://stackoverflow.com/questions/57764237/ K8s » Ingress » External Service] | * [https://stackoverflow.com/questions/57764237/ K8s » Ingress » External Service] | ||
| valign= | |valign='top'| | ||
| valign= | |valign='top'| | ||
|- | |- | ||
| colspan= | |colspan='3'| | ||
---- | ---- | ||
|- | |- | ||
| valign= | |valign='top'| | ||
* [[Linux Containers]] | * [[Linux Containers]] | ||
* [[Kubernetes]] | * [[Kubernetes]] | ||
Line 79: | Line 91: | ||
* [[K8s]] | * [[K8s]] | ||
| valign= | |valign='top'| | ||
* [[Minikube Ingress DNS|Minikube » Ingress » DNS]] | * [[Minikube Ingress DNS|Minikube » Ingress » DNS]] | ||
* [[Kubectl]] | * [[Kubectl]] | ||
Line 87: | Line 99: | ||
* [[UFW]] | * [[UFW]] | ||
| valign= | |valign='top'| | ||
|} | |} |
Revision as of 09:10, 14 August 2024
External
kubectl get ns|grep external
kubectl delete namespace external
kubectl create namespace external
Internal
kubectl get ns|grep internal
kubectl delete namespace internal
kubectl create namespace internal
| |
| |
Playground
kubectl -n external get endpoints
kubectl -n external get service
kubectl -n external get ingress
|
kubectl -n internal get endpoints
kubectl -n internal get service
kubectl -n internal get ingress
|
kubectl config get-contexts
sudo -i -u minikube
helm list -A
|
| ||
kubectl get all -A
kubectl get all
kubectl get ns
|
References
| ||