Editing Kubernetes services
Jump to navigation
Jump to search
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
A Kubernetes [[service]] is an abstraction which defines a logical set of [[Pods]] and a [[policy]] by which to access. When you create a Service, it creates a corresponding [[DNS]] entry. | A Kubernetes [[service]] is an abstraction which defines a logical set of [[Pods]] and a [[policy]] by which to access. When you create a Service, it creates a corresponding [[DNS]] entry. | ||
* https://kubernetes.io/docs/concepts/services-networking/service/ | * https://kubernetes.io/docs/concepts/services-networking/service/ | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
Kubernetes sample service: <code>my-service</code> | Kubernetes sample service: <code>my-service</code> | ||
apiVersion: v1 | apiVersion: v1 | ||
Line 24: | Line 16: | ||
If <code>targetPort</code> is not specified then same port value is used also as <code>[[targetPort]]</code> | If <code>targetPort</code> is not specified then same port value is used also as <code>[[targetPort]]</code> | ||
+ | |||
+ | == Commands == | ||
+ | * <code>[[kubectl create clusterip]]</code> | ||
+ | * <code>[[kubectl create service externalname]]</code> | ||
+ | * <code>[[kubectl create service loadbalancer]]</code> | ||
+ | * <code>[[kubectl create nodeport]]</code> | ||
== Changelog == | == Changelog == | ||
Line 36: | Line 34: | ||
* <code>[[ConfigMaps]]</code> | * <code>[[ConfigMaps]]</code> | ||
* <code>[[kubectl port-forward]]</code> | * <code>[[kubectl port-forward]]</code> | ||
− | * | + | * <code>[[kind: Endpoint]]</code> |
* <code>[[kind: ReplicaSet]]</code> | * <code>[[kind: ReplicaSet]]</code> | ||
* <code>[[kubectl expose]]</code> | * <code>[[kubectl expose]]</code> | ||
− | |||
− | |||
− | |||
− | |||
− | |||
== Activities == | == Activities == |
Advertising: