Skip to content

Latest commit

 

History

History
14 lines (8 loc) · 735 Bytes

README.md

File metadata and controls

14 lines (8 loc) · 735 Bytes

Kubernetes Custom Resource Definition (CRD) Example

This repository contains the example files for my blog article on defining and accessing Kubernetes Custom Resources with the Kubernetes client-go package.

Setup

Building the example:

$ go get github.com/martin-helmich/kubernetes-crd-example

Setting up a custom resource definition (CRD) with an example object:

$ kubectl apply -f https://raw.githubusercontent.com/martin-helmich/kubernetes-crd-client/master/kubernetes/crd.yaml
$ kubectl apply -f https://raw.githubusercontent.com/martin-helmich/kubernetes-crd-client/master/kubernetes/project.yaml