May 2018
Intermediate to advanced
554 pages
13h 51m
English
First, we are going to create an Endpoint directing the external service. A Kubernetes Endpoint is an abstraction, making components beyond Kubernetes (for instance, a database in other system) become a part of Kubernetes resources. It provides a feasible use case for a hybrid environment. To create an endpoint, an IP address, along with a port, is required. Please take a look at the following template:
$ cat k8s-endpoint.yamlapiVersion: v1kind: Endpointsmetadata: name: k8s-epsubsets: - addresses: - hostname: kubernetes-io ip: 45.54.44.100 ports: - port: 80
The template defines an Endpoint named k8s-ep, which points to the IP of the host of the official Kubernetes website (https://kubernetes.io ...
Read now
Unlock full access