Difference between revisions of "Kind: EndpointSlice"

From wikieduonline
Jump to navigation Jump to search
(Created page with " <pre> apiVersion: discovery.k8s.io/v1 kind: EndpointSlice metadata: name: example-abc labels: kubernetes.io/service-name: example addressType: IPv4 ports: - name:...")
 
 
(8 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 +
{{lc}}
  
  
<pre>
+
[[apiVersion:]] [[discovery.k8s.io]]/v1
apiVersion: discovery.k8s.io/v1
+
kind: EndpointSlice
kind: EndpointSlice
+
metadata:
metadata:
+
  name: example-abc
  name: example-abc
+
  labels:
  labels:
+
    kubernetes.io/service-name: example
    kubernetes.io/service-name: example
+
addressType: IPv4
addressType: IPv4
+
ports:
ports:
+
  - name: http
  - name: http
+
    protocol: TCP
    protocol: TCP
+
    port: 80
    port: 80
+
[[endpoints:]]
endpoints:
+
  - addresses:
  - addresses:
+
      - "10.1.2.3"
      - "10.1.2.3"
+
    conditions:
    conditions:
+
      ready: true
      ready: true
+
    hostname: pod-1
    hostname: pod-1
+
    nodeName: node-1
    nodeName: node-1
+
    zone: us-west2-a
    zone: us-west2-a
+
 
</pre>
+
 
 +
== Related ==
 +
* [[Kubernetes EndpointSlices]]
 +
* <code>[[kind: Endpoints]]</code>
 +
 
 +
== See also ==
 +
* {{discovery.k8s.io}}
 +
* {{Kubernetes EndpointSlices}}
 +
 
 +
[[Category:Kubernetes]]

Latest revision as of 14:46, 13 December 2023


apiVersion: discovery.k8s.io/v1
kind: EndpointSlice
metadata:
  name: example-abc
  labels:
    kubernetes.io/service-name: example
addressType: IPv4
ports:
  - name: http
    protocol: TCP
    port: 80
endpoints:
  - addresses:
      - "10.1.2.3"
    conditions:
      ready: true
    hostname: pod-1
    nodeName: node-1
    zone: us-west2-a


Related[edit]

See also[edit]

Advertising: