OpenMCF logoOpenMCF

Loading...

Kubernetes Peer Authentication

Provision an Istio PeerAuthentication -- the mesh primitive that sets mutual TLS (mTLS) requirements for incoming connections to your workloads. Enforce encrypted, authenticated service-to-service traffic across a namespace or the whole mesh, ease workloads onto the mesh with permissive mode, and override specific ports as needed.

What Gets Created

  • A namespaced security.istio.io/v1 PeerAuthentication custom resource.
  • An optional workload selector, a workload-level mtls.mode, and optional per-port port_level_mtls overrides.

Prerequisites

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

Quick Start

apiVersion: kubernetes.openmcf.org/v1
kind: KubernetesPeerAuthentication
metadata:
  name: default
spec:
  namespace:
    value: finance
  mtls:
    mode: STRICT
openmcf apply -f peerauthentication.yaml

Configuration Reference

Required Fields

FieldTypeDescription
namespacereferenceNamespace the policy is created in.

Optional Fields

FieldTypeDescription
selector.match_labelsmapPod labels selecting target workloads; omit for namespace-wide scope.
mtls.modestringUNSET, DISABLE, PERMISSIVE, or STRICT; omit to inherit.
port_level_mtlsmapPer-workload-port mode overrides; requires a selector.

Stack Outputs

OutputDescription
peer_authentication_nameName of the created PeerAuthentication (equals metadata.name).
namespaceNamespace the PeerAuthentication was created in.

Related Components

  • Kubernetes Istio
  • Kubernetes Istio Base CRDs
  • Kubernetes Namespace

Next article

Kubernetes Percona Mongo Operator

Kubernetes Percona Mongo Operator Deploys the Percona Operator for MongoDB on a Kubernetes cluster using its official Helm chart. The operator runs in cluster-wide mode, watching all namespaces for PerconaServerMongoDB custom resources, enabling declarative MongoDB lifecycle management across the cluster. What Gets Created When you deploy a KubernetesPerconaMongoOperator resource, OpenMCF provisions: Namespace — created only when createNamespace is true Helm Release — installs the...
Read next article
Presets
2 ready-to-deploy configurationsView presets →