Difference between revisions of "Kubectl create service externalname"
Jump to navigation
Jump to search
m (Thomas moved page Kubectl create externalname to Kubectl create service externalname) |
|||
(10 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
{{lowercase}} | {{lowercase}} | ||
https://kubernetes.io/docs/concepts/services-networking/service/#externalname | https://kubernetes.io/docs/concepts/services-networking/service/#externalname | ||
+ | map a Service to a DNS name. | ||
− | [[ | + | [[kubectl create service]] externalname |
− | + | ||
− | apiVersion: v1 | + | |
− | kind: Service | + | apiVersion: v1 |
− | metadata: | + | [[kind: Service]] |
− | + | [[metadata:]] | |
− | + | name: my-service | |
− | spec: | + | namespace: prod |
− | + | [[spec:]] | |
− | + | type: ExternalName | |
− | </ | + | [[externalName]]: my.database.example.com |
+ | |||
+ | == Related == | ||
+ | * <code>[[kubectl describe services]]</code> | ||
+ | * [[Kubernetes: Ingress controllers]]: <code>[[helm install nginx]]</code> | ||
+ | * [[Kubernetes DNS]] | ||
== See also == | == See also == |
Latest revision as of 20:18, 8 November 2023
https://kubernetes.io/docs/concepts/services-networking/service/#externalname
map a Service to a DNS name.
kubectl create service externalname
apiVersion: v1 kind: Service metadata: name: my-service namespace: prod spec: type: ExternalName externalName: my.database.example.com
Related[edit]
See also[edit]
Advertising: