Questions tagged [kubernetes-custom-resources]
123 questions
0
votes
0 answers
Error from server (NotFound): error when creating rollout.yaml : the server could not find the requested resource (post rollouts.argoproj.io)
Problem with creating argo rollouts CRD. When I try to apply CRD it gives me: error when creating "rollout.yaml": the server could not find the requested resource (post rollouts.argoproj.io)
This is my yaml:
apiVersion: argoproj.io/v1alpha1
kind:…

Truster
- 1
0
votes
0 answers
Delete attempt of Kubernetes resource reports not found, even though it can be listed with "kubectl get"
I am running Kubeflow pipeline on a single node Rancher K3S cluster. Katib is deployed to create training jobs (Kind: TFJob) along with experiments (a CRD).
I can list the experiment resources with kubectl get experiments -n . However,…

Mark S
- 1
0
votes
1 answer
How to create kubernetes custom resources or custom plugin?
Whenever the deployment has been created needs to trigger a custom function or webhook. Does Kubernetes provide any option to do this?

az rnd
- 643
- 3
- 14
- 28
0
votes
0 answers
Add index to the field in the status subresource of custom resource
Should it work for adding index to the field in the status subresource of custom resource?
I keep getting field not supported error though I add index to the filed in the status.
kubectl get obejct --field-selector status.objectRef=xxxx
Error from…

JoyceLee
- 85
- 3
- 11
0
votes
1 answer
k6 - create custom resource using go client
Anyone know how to create a Custom Resource using go-client. basically equivalent of kubectl apply -f 'yaml path'
apiVersion: k6.io/v1alpha1
kind: K6
metadata:
name: k6-sample
spec:
parallelism: 1
#arguments: --out statsd
#cleanup: post
…

shailesh gavathe
- 341
- 3
- 10
0
votes
0 answers
Display slice length in kubectl custom columns output
Let's say I want to list pods, and show their name and the number of containers they're running. If I just want the images tags themselves, I could do something like
λ kubectl get pods --output…

Tomas Aschan
- 58,548
- 56
- 243
- 402
0
votes
1 answer
Kubernetes CRD schema addition of enum from values.yaml
I'm trying to install a CRD present inside a helm chart.
My openapi schema is working as expected but for one tiny hiccup:
I want to add a dynamic enum to the CRD, using the values that I'll pass with helm install
Something like this:
clientns:
…

Aditya Chandel
- 105
- 1
- 9
0
votes
0 answers
Can I create Kubernetes CRDs with different name but same Kind
I have crd1.yaml
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
# name must match the spec fields below, and be in the form: .
name: myplatforms.contoso.com
spec:
# group name to use for REST API:…

ambikanair
- 4,004
- 11
- 43
- 83
0
votes
1 answer
Kubernetes customized controller for collaborated auto scaling
I am very new to Kubernetes CRD and customized controller. I am trying to implement a customized controller that horizontally scale my CRD instances in a collaborated way. For example, suppose I have 5 CPUs and two Jobs. Each of them has 2 replicas…
0
votes
1 answer
getting an error while trying deploy a crd using terrafom
I'm trying to deploy a crd using terraform with the code bellow
resource "kubectl_manifest" "crd-deploy" {
for_each = [ for crd in var.crdslist : crd ]
yaml_body = (fileexists("${path.module}/crds/${crd}.yaml") ?…

yelmir
- 13
- 4
0
votes
0 answers
kubectl get AzureAssignedIdentities -A -o yaml is empty
I am trying to deploy an api version with the following templates:
"apiVersion": "apiextensions.k8s.io/v1",
"kind": "CustomResourceDefinition",
"metadata": {
"name": "azureassignedidentities.aadpodidentity.k8s.io"
},
"spec":{
"conversion": {
…

Joji
- 1
- 1
- 1
0
votes
0 answers
Is there a way to modify kubernetes object's metadata?
I'm trying to modify a k8s object's metadata?
When I do kubectl edit .... on that object and make changes and save it, it's saying edited.
But when I do kubectl describe on that object, it's still showing old values in metadata.

Underoos
- 4,708
- 8
- 42
- 85
0
votes
1 answer
What is the difference between crd.yaml and crd-status-subresource.yaml?
I am new to the custom controllers and trying to understand this. I have started referring the sample-controller but unable to find much difference or understand properly in between the example…

john snowker
- 11
- 1
0
votes
1 answer
Testing NATS-streaming in Kubernetes with minimal effort
I wanted to test a very basic application for NATS-streaming on Kubernetes. To do so, I followed the commands from the official NATS-docs.
It basically comes down to running
kubectl apply -f…

Tim Hilt
- 605
- 5
- 23
0
votes
1 answer
Can I execute a prestop hook only before deletion?
My Go-based custom resource operator needs some cleanup operations before it is deleted. It has to delete a specific znode from the ZooKeeper.
These operations must not be executed before regenerating resource. They have to be executed with the…

Park Beomsu
- 71
- 4