Difference between revisions of "Kubectl create service externalname"

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

Revision as of 12:26, 17 August 2022

Advertising: