Talk and example about Kubernetes Operators
These requirements are adapted and stolen from Demystifying Kubernetes Operators with the Operator SDK: Part2
- golang v1.10+
- dep v0.5.0+
- git
- docker v17.03+
- kubectl v1.10.0+
- An account on DockerHub
- There is a way of doing local Docker repo, but I haven't taken the time to prove this out
- operatro-sdk
- microk8s
- Some have reported a conflict with
minikube
, however, I haven't run into this.
- Some have reported a conflict with
All examples assume you have done this!!!
It is recommend that in a shell that you create the following alias:
alias kubectl="microk8s kubectl"
Please do not create this as a default (part of your .profile or .bashrc) since you will probably need kubectl
for other work and this alias will bite you in the butt.
kubectl config view
There you will find the server endpoint: https://127.0.0.1/16443
The user is admin
.
The password is plain text.
- Best practices for building K8s Operators and stateful apps
- Taking a Kubernetes Operator to Production
- Kubebuilder
- K8s Universal Declarative Operator (KUDO)
- Operator Framework
- used to create the sandbox
If the SDKs do not provide enough fine control feel free to take a look at ClientGo
An article about Ginkgo - A Golan BDD Testing Framework Ginkgo's repo