K8s/Ingress: Difference between revisions

From Chorke Wiki
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="top"|
|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="top"|
|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="top"|
|valign='top'|
<syntaxhighlight lang="bash">
<syntaxhighlight lang="bash">
kubectl config get-contexts
kubectl config get-contexts
Line 37: Line 49:


|-
|-
| colspan="3" |
|colspan='3'|
----
----
|-
|-
|valign="top"|
|valign='top'|
<syntaxhighlight lang="bash">
<syntaxhighlight lang="bash">
kubectl get all -A
kubectl get all -A
Line 47: Line 59:
</syntaxhighlight>
</syntaxhighlight>


| valign="top" |
|valign='top'|


| valign="top" |
|valign='top'|


|}
|}
Line 55: Line 67:
==References==
==References==
{|
{|
| valign="top" |
|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="top" |
|valign='top'|


| valign="top" |
|valign='top'|


|-
|-
| colspan="3" |
|colspan='3'|
----
----
|-
|-
| valign="top" |
|valign='top'|
* [[Linux Containers]]
* [[Linux Containers]]
* [[Kubernetes]]
* [[Kubernetes]]
Line 79: Line 91:
* [[K8s]]
* [[K8s]]


| valign="top" |
|valign='top'|
* [[Minikube Ingress DNS|Minikube » Ingress » DNS]]
* [[Minikube Ingress DNS|Minikube » Ingress » DNS]]
* [[Kubectl]]
* [[Kubectl]]
Line 87: Line 99:
* [[UFW]]
* [[UFW]]


| valign="top" |
|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