Questions tagged [kubernetes-custom-resources]

123 questions
3
votes
1 answer

How to talk to Kubernetes CRD service within a pod in the same k8s cluster?

I installed a Spark on K8s operator in my K8s cluster and I have an app running within the k8s cluster. I'd like to enable this app to talk to the sparkapplication CRD service. Can I know what would be the endpoint I should use? (or what's the K8s…
injoy
  • 3,993
  • 10
  • 40
  • 69
3
votes
1 answer

kubernetes custom resource definition required field

I am trying to write a kubernetes crd validation schema. I have an array (vc) of structures and one of the fields in those structures is required (name field). I tried looking through various examples but it doesn't generate error when name is not…
sacboy
  • 51
  • 3
  • 4
2
votes
2 answers

Super-Operator In Kubernetes

I need to automate the provisioning of a complex application in Kubernetes. It's a complex, multi-step process that involves provisioning of some cluster-wide resources and some app-specific resources. The cluster-wide resources are: Istio A few…
2
votes
2 answers

Update Status for K8s Custom Resource

I'm trying to update the status of a custom resource and I'm unable to figure out why its not working.. Here is the _types.go: // ScoringServerStatus defines the observed state of ScoringServer type ScoringServerStatus struct { // INSERT…
2
votes
1 answer

Quarkus Kubernetes operator: how to set environment variables in application container (not operator container)?

The Keycloak operator uses Quarkus: https://github.com/keycloak/keycloak/tree/main/operator In application.properties (https://github.com/keycloak/keycloak/blob/main/operator/src/main/resources/application.properties) we can set environment…
2
votes
0 answers

Is there a tool like SwaggerHub to manage CustomResourceDefinition (CRD) from the Kubernetes world?

We manage multiple CRDs just like REST APIs within out ecosystem. SwaggerHub is a great tool to centrally manage, version, lint the swagger files. Unable to find an equivalent tool for CRDs given that there's a standard OpenAPI format for CRDs as…
2
votes
1 answer

Kubernetes CRD: Show durations in additionalPrinterColumns

In Kubernetes CustomResourceDefinitions (CRDs), we can specify additionalPrinterColumns, which (for example) are used for kubectl get with a CRD. The value for a column is usually extracted from the status of a CRD using a jsonPath. From the…
2
votes
1 answer

Kubernetes: does extending the status subresource require a new API version?

I intend to add additional error message fields to a custom resource status. The fields are marked as ErrMsg string `json:"errmsg,omitempty"` Does adding these fields require a new API version, or is is safe to just change the managing operator to…
chris_f
  • 1,081
  • 8
  • 17
2
votes
1 answer

Tuned Operator does not activate custom profile (Openshift 4.6.18)

Openshift provides by-default "node-tuning-operator" for tuning down system. We can create our custom profiles using custom resource (CR). But, the custom profiles are not being loaded/activated by the operator. Instead of activating my custom…
2
votes
1 answer

In k8s operators, how do I link the unique metadata.name in spec of a CRD to a unique object ID that my server generates

I am developing a new Operator to manage CRDs of my business logic objects. My business objects are stored in Mongo, and thus, we need this BSON ID (12 letter length GUID) to make subsequent changes to this object. The question is, how do I link…
2
votes
1 answer

404 when trying to get CRD using python client

What happened I am trying to create custom object in kubernetes using kubernetes python client, but i am unable to do so, it would be helpful if someone can explain what i am doing wrong here Traceback (most recent call last): File…
2
votes
1 answer

Unable to create CRD using kubernetes python client

What happened I am trying to create custom resource definition in kubernetes using kubernetes python client, but i am unable to do so, it would be helpful if someone can explain what i am doing wrong here Traceback (most recent call last): File…
2
votes
2 answers

"Request entity too large: limit is 3145728" when trying to update a k8s CR resource

We are hitting an error "Request entity too large: limit is 3145728" when trying to update a custom resource object. That would be very helpful if any one knows how to change the size limit from k8s side. Is there any exposed parameters for user?
yuany
  • 21
  • 1
  • 2
2
votes
1 answer

Best Practice for Operators to Receive Secrets in custom resource

I'm not finding any answers to this on Google but I may just not know what terms to search for. In a CRD, is there a way to define a field in the spec that is a secret (and therefore shouldn't be stored in plain text)? For example, if the custom…
Freedom_Ben
  • 11,247
  • 10
  • 69
  • 89
2
votes
1 answer

Can I suspend typechecking on kubectl apply?

I am installing Custom Resources through an Operator. However, kubectl apply is blocked on "Error from server (NotFound): customresourcedefinitions.apiextensions.k8s.io "my-crd.example.com" not found." If there were a switch on kubectl apply along…
Joshua Fox
  • 18,704
  • 23
  • 87
  • 147
1 2
3
8 9