OpenMCF logoOpenMCF

Loading...

Kubernetes Destination Rule

Provision an Istio DestinationRule -- the mesh primitive that tunes how traffic is sent to a service after routing: load balancing, connection pools, circuit breaking (outlier detection), client TLS origination, and named subsets.

What Gets Created

  • A namespaced networking.istio.io/v1 DestinationRule custom resource.
  • host plus an optional traffic_policy, subsets, export_to, and workload_selector.

Prerequisites

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

Quick Start

apiVersion: kubernetes.openmcf.org/v1
kind: KubernetesDestinationRule
metadata:
  name: reviews-lb
spec:
  namespace:
    value: bookinfo
  host: reviews.bookinfo.svc.cluster.local
  traffic_policy:
    load_balancer:
      simple: LEAST_REQUEST
openmcf apply -f destinationrule.yaml

Configuration Reference

Required Fields

FieldTypeDescription
namespacereferenceNamespace the DestinationRule is created in.
hoststringRegistry host the rule applies to (prefer FQDN).

Optional Fields

FieldTypeDescription
traffic_policyobjectLoad balancing, connection pool, outlier detection, TLS, per-port overrides, tunnel, PROXY protocol.
subsetslistNamed subsets (name, labels, per-subset traffic_policy).
export_tolistNamespaces the rule is visible to (default all).
workload_selector.match_labelsmapPods/VMs the rule applies to; matched by istiod, not a foreign key.

Stack Outputs

OutputDescription
destination_rule_nameName of the created DestinationRule (equals metadata.name).
namespaceNamespace the DestinationRule was created in.

Related Components

  • Kubernetes Service Entry
  • Kubernetes Istio
  • Kubernetes Istio Base CRDs
  • Kubernetes Namespace

Next article

Kubernetes Elastic Operator

Kubernetes Elastic Operator Deploys the Elastic Cloud on Kubernetes (ECK) operator via its official Helm chart. ECK extends Kubernetes with custom resource definitions for managing Elasticsearch, Kibana, APM Server, Enterprise Search, Beats, Elastic Agent, Elastic Maps Server, and Fleet Server. Once installed, you can declaratively create and manage Elastic Stack deployments as native Kubernetes resources. What Gets Created When you deploy a KubernetesElasticOperator resource, OpenMCF...
Read next article
Presets
2 ready-to-deploy configurationsView presets →