Cloud Expert
Kubernetes Operators¶
KubernetesOperatorsCRD 3 min read
Custom controllers for automating application lifecycle in Kubernetes.
What Is an Operator?¶
Operator = custom controller + CRD (Custom Resource Definition). Automates operational knowledge — backup, scaling, failover.
CRD Example¶
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
name: databases.myapp.io
spec:
group: myapp.io
names: {kind: Database, plural: databases}
scope: Namespaced
versions:
- name: v1
served: true
storage: true
schema:
openAPIV3Schema:
type: object
properties:
spec:
type: object
properties:
engine: {type: string}
version: {type: string}
replicas: {type: integer}
Popular Operators¶
- Prometheus Operator — monitoring stack
- Strimzi — Kafka on K8s
- Zalando Postgres Operator — PostgreSQL HA
Summary¶
Operators codify operational knowledge. Use existing operators; write custom ones only for specific needs.
Need Help with Implementation?¶
Our team has experience designing and implementing modern architectures. We’re happy to help.