Questions tagged [kubernetes-custom-resources]
123 questions
1
vote
1 answer
Why does client.Update(...) ignore non-primitive values?
I'm trying to modify the Spec of non-owned objects as part of the Reconcile of my Custom Resource, but it seems like it ignores any fields that are not primitives. I am using controller-runtime.
I figured since it was only working on primitives,…

Andrew DiNunzio
- 143
- 4
- 17
1
vote
1 answer
Deleting namespace hangs on custom resource finalizer
I have defined a controller (Operator) for handling some Custom Resources in my K8S namespace.
each custom resource has a Finalizer so the controller can handle it before it is being deleted:
e.g.
kind: MyCustom
metadata:
finalizers:
-…

igorT
- 53
- 1
- 7
1
vote
2 answers
CRD not being deleted even though the namespace is deleted
I have the attached CRD in some namespaces. My issue is that the CRD persists even though the namespace in which it lives is deleted!
> oc project
error: the project "uhc-development-15o4llu96oe7rftq8nms5t99djl3cnmh" specified in your config does…

Nimrodshn
- 859
- 3
- 13
- 29
1
vote
1 answer
Kubernetes: RBAC authorization fails for custom resource
922:johndoe:db-operator:(master)λ kubectl version
Client Version: version.Info{Major:"1", Minor:"8", GitVersion:"v1.8.6", GitCommit:"6260bb08c46c31eea6cb538b34a9ceb3e406689c", GitTreeState:"clean", BuildDate:"2017-12-21T06:34:11Z",…

Alechko
- 1,406
- 1
- 13
- 27
1
vote
1 answer
encoding is not allowed for this codec: *versioning.codec
I have made a kubernetes operator using this framework https://github.com/operator-framework/operator-sdk in which I have a small custom resource definition defined and a clientset generated.
I create a client for this custom resource doing:
imports…

Robin B
- 11
- 5
1
vote
1 answer
CRD creation with java-client for Kubernetes
IS it possible to create custom resource definition by reading the data from yaml file and using Java client for Kubernetes?
I am using the version of library 3.0.0 in sbt and with Scala. But I was not able to find any kind of methods for custom…

Cassie
- 2,941
- 8
- 44
- 92
1
vote
1 answer
Add 'explain' information for custom resource definition in K8S
I've registered custom resource definition in K8S:
apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
name: resources.example.com
labels:
service: "my-resource"
spec:
group: example.com
version: v1alpha1
…

kofucii
- 7,393
- 12
- 51
- 79
0
votes
1 answer
How to query a CR for a given namespace using client-go RESTClient() function
This golang code works well:
topics := &kafka.KafkaTopicList{}
d, err := clientSet.RESTClient().Get().AbsPath("/apis/kafka.strimzi.io/v1beta2/kafkatopics").DoRaw(context.TODO())
if err != nil {
panic(err.Error())
}
However…

Fabrice Jammes
- 2,275
- 1
- 26
- 39
0
votes
0 answers
How to set multiple resources in admission webhooks?
I am trying to add a admission webhook to validate different resources(e.g.a,b) in the same validation logic. But I meet decode problem when I try to create resource b. Here is my yaml
kind: ValidatingWebhookConfiguration
metadata:
....
webhooks:
-…

SpritZhou
- 56
- 3
0
votes
0 answers
Add my REST API written by NodeJS to the Kubernetes as custom resource
I've read about Kubernetes custom resources and have seen controllers in go language.
But I can't understand how i can connect the CR to my App deployment.
I've written a NodeJS/Express REST API, the problem is how I can make it a part of Kubernetes…

Lady Sonia
- 41
- 4
0
votes
0 answers
Getting an Error for Postgresql external database binding with Keycloak operator v21.1.1
This is challenge from keycloak when I am declaring the external database in keycloak kubernetes custom resource based on it's crd that I got from keycloak-operator installation from https://operatorhub.io/operator/keycloak-operator
This is the…

Adarsh Vyas
- 1
- 2
0
votes
2 answers
Do CRDs only ever manage pods?
Worked with CRDs a bit so far. Recently a colleague of mine claimed that custom resources only ever manage pods in the end. Is this true? Can you do CRDs for services or config maps as well?

User12547645
- 6,955
- 3
- 38
- 69
0
votes
0 answers
Kubernetes Custom Operator
I have a table in a database that gets frequently updated. The table holds host/port information for Egressing. I want to create a custom operator or a custom controller to sync this information over to Kubernetes, specifically Istio…

user54636
- 41
- 4
0
votes
0 answers
Substitution of string property from secretKeyRef not working
I am trying to create a CRD carrying the following components
args:
items:
properties:
name:
type: string
value:
…

Ashmita
- 11
- 1
0
votes
1 answer
Error to setup custom SLO period window (7d) in the Sloth Prometheus
I'm trying to setup the SLO period window to 7d following the documentation https://sloth.dev/usage/slo-period-windows/
image: ghcr.io/slok/sloth:v0.11.0
When using helm (values.yaml) with and without customSloconfig enable:
sloth:
…

Danilo Oliveira
- 1
- 1