Difference between revisions of "Kubectl create service externalname"

From wikieduonline
Jump to navigation Jump to search
Line 3: Line 3:
  
 
  [[kind: ExternalName]]
 
  [[kind: ExternalName]]
 +
 +
<pre>
 +
apiVersion: v1
 +
kind: Service
 +
metadata:
 +
  name: my-service
 +
  namespace: prod
 +
spec:
 +
  type: ExternalName
 +
  externalName: my.database.example.com
 +
</pre>
  
 
== See also ==
 
== See also ==

Revision as of 10:26, 3 March 2022

Advertising: