# Kubernetes Client - Alpha Release - kube-client.cr

**URL:** <https://forum.crystal-lang.org/t/kubernetes-client-alpha-release-kube-client-cr/4132>\
**Category:** News\
**Tags:** announces, release\
**Created:** [December 9, 2021, 1:53pm UTC](https://forum.crystal-lang.org/t/kubernetes-client-alpha-release-kube-client-cr/4132 "2021-12-09T13:53:47Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![kalinon](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.crystal-lang.org/kalinon/32/422_2.png) [@kalinon](https://forum.crystal-lang.org/u/kalinon)\
**Post date:** [December 9, 2021, 1:53pm UTC](https://forum.crystal-lang.org/t/kubernetes-client-alpha-release-kube-client-cr/4132/1 "2021-12-09T13:53:47Z")

</div>

Hey all! Just wanted to share that I have released an Alpha version of [kube-client](https://github.com/spoved/kube-client.cr) a Crystal client for interacting with the Kubernetes API.

This initial release supports the kubernetes api versions 1.11-1.23.

Check it out here: **[GitHub - spoved/kube-client.cr: k8s api client](https://github.com/spoved/kube-client.cr)**  
Report issues here: **[Issues · spoved/kube-client.cr · GitHub](https://github.com/spoved/kube-client.cr/issues)**

I hope to continue to develop and improve this client as time goes on. If you are interested please give it a try and report any issues you find.

Thanks!

---

<div class="post-metadata">

**Author:** ![jzakiya](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.crystal-lang.org/jzakiya/32/278_2.png) [@jzakiya](https://forum.crystal-lang.org/u/jzakiya)\
**Post date:** [December 9, 2021, 3:26pm UTC](https://forum.crystal-lang.org/t/kubernetes-client-alpha-release-kube-client-cr/4132/2 "2021-12-09T15:26:58Z")

</div>

What you may also want to consider is creating a `Podman` client/interface.

[https://podman.io/](https://podman.io/)

Podman is a container engine that’s compatible with the OCI Containers.

[https://opencontainers.org/](https://opencontainers.org/)

More information on it.

[https://docs.podman.io/en/latest/index.html](https://docs.podman.io/en/latest/index.html)

Having Crystal apps for these Open Source standards can make it a player in these spaces.

---

<div class="post-metadata">

**Author:** ![kalinon](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.crystal-lang.org/kalinon/32/422_2.png) [@kalinon](https://forum.crystal-lang.org/u/kalinon)\
**Post date:** [December 9, 2021, 5:41pm UTC](https://forum.crystal-lang.org/t/kubernetes-client-alpha-release-kube-client-cr/4132/3 "2021-12-09T17:41:49Z")

</div>

Yeah i agree, trying to build tooling as i run into them. Podman is an up and comer now that docker sucks.

---

<div class="post-metadata">

**Author:** ![jgaskins](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.crystal-lang.org/jgaskins/32/2449_2.png) [@jgaskins](https://forum.crystal-lang.org/u/jgaskins)\
**Post date:** [December 10, 2021, 1:55am UTC](https://forum.crystal-lang.org/t/kubernetes-client-alpha-release-kube-client-cr/4132/4 "2021-12-10T01:55:25Z")

</div>

I had a look at the shard to see what the experience would be like for building operators (my main use case for creating [this Kubernetes client](https://github.com/jgaskins/kubernetes)) and I couldn’t get it to load my CRD. The README mentions these two methods, which seem to be intended for that:

- `K8S::Resource.from_file`
- `K8S::Resource.from_files`

But neither of them exist:

```crystal
require "./src/kube-client/v1.23"

pp K8S::Resource.from_file("./crd.yaml")
# In example.cr:3:18

# 3 | pp K8S::Resource.from_file("./crd.yaml")
# ^--------
# Error: undefined method 'from_file' for K8S::Kubernetes::Resource.class

```

I get the same error for both methods. Am I just not doing it right?

---

<div class="post-metadata">

**Author:** ![kalinon](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.crystal-lang.org/kalinon/32/422_2.png) [@kalinon](https://forum.crystal-lang.org/u/kalinon)\
**Post date:** [December 11, 2021, 2:37am UTC](https://forum.crystal-lang.org/t/kubernetes-client-alpha-release-kube-client-cr/4132/5 "2021-12-11T02:37:59Z")

</div>

@jgaskins ah. no your not doing it wrong. its a bug. i didnt make `from_file` a class method. You can just do a `from_yaml` tho. ill fix that up.

---

<div class="post-metadata">

**Author:** ![kalinon](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.crystal-lang.org/kalinon/32/422_2.png) [@kalinon](https://forum.crystal-lang.org/u/kalinon)\
**Post date:** [December 11, 2021, 2:41am UTC](https://forum.crystal-lang.org/t/kubernetes-client-alpha-release-kube-client-cr/4132/6 "2021-12-11T02:41:45Z")

</div>

Pushed a quick release. `0.3.1` it really was a issue in the sub-shard that holds all the k8s classes/structs ([GitHub - spoved/k8s.cr: A Kubernetes lib containing definitions for Crystal-lang](https://github.com/spoved/k8s.cr)).
