Difference between revisions of "Kubectl create service externalname"
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
https://kubernetes.io/docs/concepts/services-networking/service/#externalname
kind: ExternalName
apiVersion: v1 kind: Service metadata: name: my-service namespace: prod spec: type: ExternalName externalName: my.database.example.com
See also
Advertising: