Skip to content

joshraker/k8s-foo-resource

Repository files navigation

Kubernetes Custom Resouce

Creating a custom resource with Kubebuilder

Project Creation

Initialize the project in $GOPATH/src/...

$ kubebuilder init --domain raker22.com

Create APIs

$ kubebuilder create api --group foo --version v1 --kind Foo
$ kubebuilder create api --group foo --version v1 --kind FooReplicaSet

Configuration

Running the Manager

  • Connect to the kubernetes cluster you want to run the manager on.
  • Run make run to start the manager on the cluster.
  • In another terminal run kubectl apply -f config/samples/<group>-<version>-<kind>.yaml to create a sample resource.
    • group, version, and kind are the lower case group, version, and kind from kubebulder create api above.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages