I recently saw this Sample Controller repository on kubernetes Github repository. This just implements a simple controller for watching CustomResource named Foo as defined within a CustomResourceDefinition.
I recently saw this Sample Controller repository on kubernetes Github repository. This just implements a simple controller for watching CustomResource named
Foo as defined within a CustomResourceDefinition.
I thought it would be a good idea to port this example which is written in GoLang to Java using Fabric8 Kubernetes Client to get an idea of doing these operations but in Java:
Foousing a CustomResourceDefinition.
If you’re not familiar with
kubernetes/sample-controlleralready; let me give you some idea of what it does. We will be building a simple controller for a CustomResource
Foo which looks like this:
Fooresource gets created, it creates a child
Foo CustomResource’s spec we specify the name with which we want the child
Deployment to be created and the number of replicas this
Deployment should have. When we delete the
Foo resource, child
Deployment should get deleted too.
Whenever there is a change in
Foo resource’s Spec, child
Deployment get updated accordingly.
Our original Kubernetes tool list was so popular that we've curated another great list of tools to help you improve your functionality with the platform.
What is OpenJDK? OpenJDk or Open Java Development Kit is a free, open-source framework of the Java Platform, Standard Edition (or Java SE).
This blog is a continuation of my earlier blog regarding handling CustomResources in Java using Fabric8 Kubernetes Client API. You can find a link to part 1 of this blog here.
I’ve been approached by people a lot asking about how Fabric8 Kubernetes Client is different from official Kubernetes Client and why don’t we shift to official client instead for all our usages.
In this blog, I would be giving you an overview of mocking and writing tests for you Kubernetes controllers using Fabric8 Kubernetes Mock Server. It’s a library based on Fabric8 Kubernetes Client and Fabric8 Mockwebserver(extension of OkHttp’s mockwebserver) which provides us smooth dsl for mocking operations.