OpenMCF logoOpenMCF

Loading...

Kubernetes Service Entry

Provision an Istio ServiceEntry -- the mesh primitive that adds an external or otherwise-unknown service into Istio's service registry, so mesh workloads can route to it, apply traffic policy and telemetry against it, and verify its TLS identity.

What Gets Created

  • A namespaced networking.istio.io/v1 ServiceEntry custom resource.
  • hosts plus an optional combination of addresses, ports, location, resolution, and either static endpoints or a workload_selector.

Prerequisites

  • Istio CRDs installed on the cluster (KubernetesIstioBaseCrds).
  • A running Istio control plane, istiod (KubernetesIstio), to program the registry.
  • The target namespace (KubernetesNamespace).

Quick Start

apiVersion: kubernetes.openmcf.org/v1
kind: KubernetesServiceEntry
metadata:
  name: external-payments-api
spec:
  namespace:
    value: payments
  hosts:
    - api.stripe.com
  location: MESH_EXTERNAL
  resolution: DNS
  ports:
    - number: 443
      name: https
      protocol: TLS
openmcf apply -f serviceentry.yaml

Configuration Reference

Required Fields

FieldTypeDescription
namespacereferenceNamespace the ServiceEntry is created in.
hostslistHosts the entry matches; at least one, no bare *.

Optional Fields

FieldTypeDescription
addresseslistVirtual IPs / CIDR prefixes (CIDR only with NONE/STATIC resolution).
portslistExposed ports (number, name, protocol, target_port); name + number unique.
locationstringMESH_EXTERNAL (default) or MESH_INTERNAL.
resolutionstringNONE (default), STATIC, DNS, DNS_ROUND_ROBIN.
endpointslistStatic backing endpoints; mutually exclusive with workload_selector.
export_tolistNamespaces the service is visible to (default all).
subject_alt_nameslistSANs verified on the server certificate.
workload_selector.labelsmapIn-mesh workloads (MESH_INTERNAL); mutually exclusive with endpoints.

Stack Outputs

OutputDescription
service_entry_nameName of the created ServiceEntry (equals metadata.name).
namespaceNamespace the ServiceEntry was created in.

Related Components

  • Kubernetes Istio
  • Kubernetes Istio Base CRDs
  • Kubernetes Namespace

Next article

Kubernetes SigNoz

Kubernetes SigNoz Deploys the SigNoz observability platform on Kubernetes using the official SigNoz Helm chart, providing unified logs, metrics, and traces through an OpenTelemetry-native stack with configurable SigNoz UI, OpenTelemetry Collector, self-managed or external ClickHouse database, optional Kubernetes Gateway API ingress for both the UI and OTel Collector endpoints, and custom Helm value overrides. What Gets Created When you deploy a KubernetesSignoz resource, OpenMCF provisions:...
Read next article
Presets
2 ready-to-deploy configurationsView presets →