my-first-k8-operator

command module
v0.0.0-...-63e457a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 4, 2024 License: MIT Imports: 11 Imported by: 0

README

my-first-k8-operator

My First Kubernetes Operator

Install and Setup

To install and setup make sure that your DNS can recognize the URL in your current kube-context. Run 'make install' and ensure that all install processes run without error, then run 'make run' to start the service. Confirm that everything is running smoothly running 'kubectl api-resources' and look for your api. If you cannot find it confirm install ran successfully but looking for the CRD in 'kubectl get crd'.

Upload your first Custom Resource (CR)

In the folder config/samples there should be a file "{GROUP}_v1_test.yaml" which you can use to define a deployment for your new CR. By default, this new resource will only have the string parameter 'Foo' so you can only add this after spec. You can review the parameter on the etcd version of the yaml.

Test the previous step with 'kubecet get ${CR_NAME} -o yaml' and make sure that the variable you assigned has the same value in the yaml file (under spec). To add more columns to the get table ('kubectl get ...') you need to follow the steps in the following page.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
api
v1
Package v1 contains API Schema definitions for the testing v1 API group +kubebuilder:object:generate=true +groupName=testing.example.com
Package v1 contains API Schema definitions for the testing v1 API group +kubebuilder:object:generate=true +groupName=testing.example.com

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL