See, it doesn't just end there.

#Kubebuilder, here we go! 🥳

https://github.com/kubernetes-sigs/kubebuilder/pull/5438

docs: add note on limitations to CRD validation markers reference by orangecms · Pull Request #5438 · kubernetes-sigs/kubebuilder

Adapted from the API design tutorial. I came here because I was puzzled by the Cilium API using int32 for EndPort in PortRange, but internally using the expected uint16 type, and I was hinted on Ku...

GitHub

Operator works fine against a cluster, testing framework fails.

Tracked it down and the test call to create my Custom Resource wipes the TypeMeta off it. But...why?

#KubernetesDev #k8sDev #Kubebuilder

Started wrangling this test framework and the moment I got past just getting it working it revealed a bug to me.

Now that's instant gratification.

#KubernetesDev #k8sDev #Kubebuilder

Decided to use my morning quiet/productive hour to start test writing for my operator.

Immediately hit a brick wall as the provided test harness falls over before even running any tests  

Perhaps we will try again tomorrow.

#KubernetesDev #k8sDev #KubeBuilder

DEVops: Разрабатываем свой Kubernetes оператор с кастомными ресурсами на Go

Используете готовые операторы в Kubernetes? Я тоже... Но с какого-то момента я начал задаваться вопросом: "а как люди их пишут?". И я нашел ответ! В этой статье я наглядно покажу, как создать свой кастомный оператор в Kubernetes на Go при помощи kubebuilder. Оператор позволит отслеживать изменения ресурсов в кластере, а затем отправлять уведомления в Telegram или другие мессенджеры. Какие ресурсы "трекать" будем описывать через кастомные ресурсы (Custom Resource). Погнали!

https://habr.com/ru/articles/866766/

#golang #devops #kubernetes #operators #custom_resource_definition #telegram_api #kubebuilder

DEVops: Разрабатываем свой Kubernetes оператор с кастомными ресурсами на Go

Вступление Всем привет! Я стал замечать на себе, что чаще решаю задачи, связанные с эксплуатацией инфраструктуры (Ops), чем с разработкой. Это видно по моим статьям — они в основном посвящены...

Хабр

Getting kubebuilder Makefile to build and deploy using ko

change IMG variable at the top to:

IMG ?= ko://go.app.domain/cmd

and add a target

.PHONY: deploy-local
deploy-local: manifests kustomize
env KO_DOCKER_REPO=localhost:5000 KUBECONFIG=${HOME}/.kube/config.kind make deploy

this deploy to a local registry and using a kubeconfig that is deployed for kind but customize thing as you wish there

#kubernetes #ko #kubebuilder

Love running random curl commands to install shit from the internet. Always makes me feel like I'm living life to the extreme.

#kubernetes #k8s #kubebuilder #software #engineering

carrying #helm template invocations through #kubebuilder rbac annotations is a fresh new level of #kubernetes hell

Oh, hey! I was thinking about #kubebuilder, but looks like someone else has already written a #python way to do this:

https://github.com/nolar/kopf

GitHub - nolar/kopf: A Python framework to write Kubernetes operators in just a few lines of code

A Python framework to write Kubernetes operators in just a few lines of code - nolar/kopf

GitHub
Attended a neat workshop this morning on #kubebuilder at the #Kubernetes day event at @socallinuxexpo! #scale20x #SCaLE