0

Currently we could create configmaps, deployment, pods, jobs, namespaces, ingress.

https://github.com/grafana/xk6-kubernetes

But I would like to deploy custom resources. Is it possible?

knittl
  • 246,190
  • 53
  • 318
  • 364
Chin
  • 1
  • 1
  • Yes (assuming the CustomResourceDefinition already exists in the cluster). What is the specific programming-related problem you're running into? – David Maze Sep 27 '22 at 13:10
  • Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. – Community Sep 28 '22 at 00:51

2 Answers2

0

But I would like to deploy custom resources. Is it possible?

Creation of CR is possible. If definitions are maintained in yaml files for Custom resources, then CR can be applied or created using kubectl tool.

Usually Custom resources are associated with CRD's or API aggregators. Please refer kubernetes documentation for more details.

Adding custom resources

Kubernetes provides two ways to add custom resources to your cluster:

CRDs are simple and can be created without any programming. API Aggregation requires programming, but allows more control over API behaviors like how data is stored and conversion between API versions.

Nataraj Medayhal
  • 980
  • 1
  • 2
  • 12
0

This is not presently possible. Even when the recently introduced generic interface there are some issues regarding how Kubernetes API handles CRDs. Please refer to this open issue for tracking the progress of this requirement.

pablochacin
  • 947
  • 1
  • 14
  • 35