Editing Kubectl get services
Jump to navigation
Jump to search
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
{{lowercase}} | {{lowercase}} | ||
− | [[kubectl get]] | + | [[kubectl get]] svc |
− | [[kubectl get | + | [[kubectl get]] svc -o [[json]] |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
[[kubectl get]] services | [[kubectl get]] services | ||
− | NAME TYPE | + | NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE |
YOUR_SERVICE_NAME [[ClusterIP]] None <none> 1130/TCP 29h | YOUR_SERVICE_NAME [[ClusterIP]] None <none> 1130/TCP 29h | ||
[[consul]]-dns [[ClusterIP]] 10.172.23.56 <none> 53/TCP,53UDP 29h | [[consul]]-dns [[ClusterIP]] 10.172.23.56 <none> 53/TCP,53UDP 29h | ||
− | + | kubectl -n [[nginx-ingress]] get sv | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | kubectl -n [[nginx-ingress]] get | ||
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE | NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE | ||
[[nginx-ingress]] [[LoadBalancer]] 10.100.100.2 xxxx70yyyy.[[us-west-1]].elb.amazonaws.com 80:31982/TCP,443:30529/TCP 8d | [[nginx-ingress]] [[LoadBalancer]] 10.100.100.2 xxxx70yyyy.[[us-west-1]].elb.amazonaws.com 80:31982/TCP,443:30529/TCP 8d | ||
[[Ports]]: | [[Ports]]: | ||
− | kubectl get svc --all-namespaces -o json | jq '.items[] | {name:.metadata.name, p:.spec.ports[] } | select( .p.nodePort != null ) | "\(.name): localhost:\(.p.nodePort) -> \(.p.port) -> \(.p.targetPort)"' | + | kubectl get svc --all-namespaces -o json | jq '.items[] | {name:.metadata.name, p:.spec.ports[] } | select( .p.nodePort != null ) | "\(.name): localhost:\(.p.nodePort) -> \(.p.port) -> \(.p.targetPort)"' |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
== [[Minikube]] == | == [[Minikube]] == | ||
Line 81: | Line 52: | ||
NAME TYPE CLUSTER-IP [[EXTERNAL-IP]] PORT(S) AGE | NAME TYPE CLUSTER-IP [[EXTERNAL-IP]] PORT(S) AGE | ||
kubernetes ClusterIP 172.20.0.1 <none> 443/TCP 14m | kubernetes ClusterIP 172.20.0.1 <none> 443/TCP 14m | ||
− | |||
− | |||
− | |||
− | |||
− | |||
EKS after installing grafana: | EKS after installing grafana: | ||
Line 99: | Line 65: | ||
metrics-server ClusterIP 172.20.94.132 <none> 443/TCP 26h | metrics-server ClusterIP 172.20.94.132 <none> 443/TCP 26h | ||
my-release-kubernetes-dashboard ClusterIP 172.20.8.159 <none> 443/TCP 26h | my-release-kubernetes-dashboard ClusterIP 172.20.8.159 <none> 443/TCP 26h | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
== Related terms == | == Related terms == | ||
Line 113: | Line 71: | ||
* <code>[[kubectl proxy]]</code> | * <code>[[kubectl proxy]]</code> | ||
* <code>[[kind]]: [[Service]]</code> | * <code>[[kind]]: [[Service]]</code> | ||
− | * <code>[[kubectl get endpoints | + | * <code>[[kubectl get endpoints]]</code> |
* <code>[[kubectl get ServiceAccount]]</code> | * <code>[[kubectl get ServiceAccount]]</code> | ||
− | |||
− | |||
== See also == | == See also == | ||
+ | * {{kubectl get}} | ||
* {{Kubernetes services}} | * {{Kubernetes services}} | ||
+ | |||
[[Category:Kubernetes]] | [[Category:Kubernetes]] |
Advertising: