Kubernetes operator best practices: Implementing observedGeneration

apiVersion: yourgroup.com/v1
kind: YourKindCluster
metadata:
generation: 1
name: cluster-sample
spec:
replicas: 1
status:
state: Deployed
apiVersion: yourgroup.com/v1
kind: YourKindCluster
metadata:
generation: 2
name: cluster-sample
spec:
replicas: 2
status:
state: Deployed
apiVersion: yourgroup.com/v1
kind: YourKindCluster
metadata:
generation: 2
name: cluster-sample
spec:
replicas: 1
status:
observedGeneration: 1
state: Deployed
apiVersion: yourgroup.com/v1
kind: YourKindCluster
metadata:
generation: 2
name: cluster-sample
spec:
replicas: 1
status:
observedGeneration: 2
state: Deployed

--

--

--

Passionate about traveling, food and programming. Tennis player that works on container orchestration at Mesosphere. Always trying to improve.

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

How I started my journey as a Web Developer…

Sinergise’s subsidiary in Austria, Sentinel Hub VAS, is building new team for remote sensing…

Indian Ocean Outreach Initiatives

Shopify Integration

Performance Development

Designing Command Line Interfaces in Haskell

Youtube from scratch

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Alena Varkockova

Alena Varkockova

Passionate about traveling, food and programming. Tennis player that works on container orchestration at Mesosphere. Always trying to improve.

More from Medium

Kubernetes + Adapter Pattern + Minikube

Gitlab CI runner on Kubernetes cluster

Secure Microservices Configuration Properties via HashiCorp Vault

Opentelementry auto-instrumentation Configuration for GRPC based java application- Part1 (APM…