Difference between revisions of "Kubectl create service externalname"
Jump to navigation
Jump to search
Line 6: | Line 6: | ||
[[kind: ExternalName]] | [[kind: ExternalName]] | ||
− | + | ||
− | apiVersion: v1 | + | apiVersion: v1 |
− | kind: Service | + | kind: Service |
− | metadata: | + | [[metadata:]] |
− | + | name: my-service | |
− | + | namespace: prod | |
− | spec: | + | [[spec:]] |
− | + | type: ExternalName | |
− | + | externalName: my.database.example.com | |
− | + | ||
== See also == | == See also == |
Revision as of 12:26, 17 August 2022
https://kubernetes.io/docs/concepts/services-networking/service/#externalname
kubectl create 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: