Difference between revisions of "Kubectl create clusterip"

From wikieduonline
Jump to navigation Jump to search
 
(5 intermediate revisions by 2 users not shown)
Line 5: Line 5:
  
 
  apiVersion: v1
 
  apiVersion: v1
  kind: Service
+
  [[kind: Service]]
 
  metadata:
 
  metadata:
 
   name: my-service
 
   name: my-service
Line 20: Line 20:
  
 
* <code>[[ClusterIP]]</code> (default ServiceType): exposes the Service on a cluster internal IP then your service is only reachable from within the cluster.
 
* <code>[[ClusterIP]]</code> (default ServiceType): exposes the Service on a cluster internal IP then your service is only reachable from within the cluster.
 
+
* <code>[[kubectl get service]] | grep ClusterIP</code>
 +
* <code>[[provided IP is already allocated]]</code>
 +
* [[Port forward]]: [[kubectl port-forward]]
  
 
== See also ==
 
== See also ==

Latest revision as of 14:38, 29 June 2023

Advertising: