Difference between revisions of "Kubectl create service externalname"
Jump to navigation
Jump to search
Line 8: | Line 8: | ||
apiVersion: v1 | apiVersion: v1 | ||
− | kind: Service | + | [[kind: Service]] |
[[metadata:]] | [[metadata:]] | ||
name: my-service | name: my-service |
Revision as of 12:27, 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: