Questions tagged [kubernetes-operator]
A Kubernetes operator is a pair of a custom resource definition (CRD) and a controller program for acting on that custom resource. Use this tag for questions about writing controller code and other details of implementing operators.
kubernetes-operator
166
questions
0
votes
0
answers
16
views
MongoDB Community Kubernetes Operator - Arbiter PVC
Arbiters are mongod instances that are part of a replica set but do not hold data
But the operator still create Persistent Volume Claims (data-volume-mongodb-arb-0) that hold the same amount of data ...
0
votes
0
answers
25
views
Manual version update strategy for Kubernetes CustomResourceDefinition
We develop a Kubernetes Operator which manages Custom Resources and performs certain tasks in the cluster based on the spec. So resources manifests start like this:
apiVersion: foo.example.com/...
0
votes
0
answers
17
views
How to do retry in fabric8 watcher
I have a watcher witch watches a crd. When new action comes and fails I want my watcher to retry the crd action until it is done. I think this can be done in kubernetes oficial client.
val watcher = ...
1
vote
0
answers
36
views
I have a Kubernetes CRD Type definition with a struct RateLimitDescriptor having a self referencing []RateLimitDescriptor
This is my currect CRD definition structure,
// RateLimitConfigSpec defines the desired state of RateLimitConfig
type RateLimitConfigSpec struct {
// INSERT ADDITIONAL SPEC FIELDS - desired state ...
0
votes
0
answers
31
views
Kubebuilder not generating deepCopyobject method [duplicate]
I am trying to create a kuberentes operator,
by following this tutorial https://www.youtube.com/watch?v=JNDjE9-2Bg4
I installed Kubebuilder and generated code using kubebuilder init
then used to ...
1
vote
0
answers
31
views
How to access K8S Client in a Validating admission webhook (myCRD_Webhook.go) or within the api package of an operator-sdk based golang operator
I want to validate all the resources of a particular crd called MyCRD before it reaches to the etcd. The answer is a validating webhook. But as you can see my requirement is specific, I just don't ...
-1
votes
1
answer
155
views
Submitting Spring Boot Spark job via spark Kubernetes operator [closed]
On my local server I have spark cluster running in standalone mode and I have a Spring Boot Spark job which I submit using following command:
spark-submit --conf "spark.driver.userClassPathFirst=...
0
votes
0
answers
76
views
HLF operator peer pod not creating issue
I am creating a hyperledger fabric network with hlf operator(version 1.8.0).
here i am getting an issue of peer not getting created when i hit this command
kubectl hlf peer create --statedb=couchdb --...
1
vote
0
answers
55
views
How to include an external CRD inside custom CRD, but the external CRD is not available in Go?
I am building an operator using Kubebuilder that creates a CRD that encapsulates an external CRD (ex: Airflow's DAG CRD https://github.com/cdmikechen/airflow-dag-operator/blob/main/example/02-crd.yaml)...
0
votes
0
answers
30
views
Delegating Kubernetes Operator: parent - child Custom Resource relationship
Let's say I have 2 operators, a Manager and Component operator. The Manager receives a Custom Resource with multiple nested resources:
kind: ManagerResource
spec:
componentKind: ComponentA
.......
2
votes
0
answers
59
views
Kubernetes operator metrics endpoint TLS configuration
I am trying to configure metrics endpoint over https
mgr, err := ctrl.NewManager(ctrl.GetConfigOrDie(), ctrl.Options{
Scheme: scheme,
Metrics: server.Options{
SecureServing:...
0
votes
0
answers
29
views
Kuberneties Oprator metrics endpoint authentication RBAC
I am trying to configure the metrics endpoint in a Kubernetes (k8s) operator. The comments regarding authentication are as follows:
// WithAuthenticationAndAuthorization provides a metrics.Filter for ...
0
votes
0
answers
250
views
How to watch external resources in kubernetes controller with Kubebuilder
I am trying to watch an external CR (Tenant) in a Kubernetes controller. I have setup a reconciler with Kubebuilder. I am not sure how to make the controllermanager watching the external CR.
I also ...
0
votes
0
answers
93
views
Why am I getting errors in this simple kubernetes hashicorp vault operator test project?
For a school assignment I have to (as a part of many things) implement Hashicorp's Vault Secret Operator. I'm using a guide for this on baeldung (https://www.baeldung.com/spring-vault-kubernetes-...
1
vote
0
answers
91
views
Flink Kubernetes deployment - the HPA controller was unable to get a selector
I am deploying the Flink stateful app using the below-mentioned YAML file.
apiVersion: flink.apache.org/v1beta1
kind: FlinkDeployment
metadata:
name: simple-flink
spec:
image: flink-1.17-python-...