es-operator | Kubernetes Operator for Elasticsearch | Continuous Deployment library
kandi X-RAY | es-operator Summary
kandi X-RAY | es-operator Summary
Kubernetes Operator for Elasticsearch
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of es-operator
es-operator Key Features
es-operator Examples and Code Snippets
Community Discussions
Trending Discussions on es-operator
QUESTION
I am creating mongodb cluster using following documentation.
https://github.com/mongodb/mongodb-kubernetes-operator/blob/master/docs/deploy-configure.md
I am trying to create custom resources as following.
...ANSWER
Answered 2022-Mar-26 at 20:04Got the issue as I came to know how can we check logs of custom "kind" in Kubernetes.
As I checked mongodbcommunity kind as follows. And it was giving failed stage.
QUESTION
I am new to json query. Facing trouble extracting the status.conditions[ansibleResult].type
I have a CRD defined and created CR against the same, which is picked up by operator-sdk running ansible in the background. I am updating the CRD to provide relevant status once CR is accepted and processed by operator-sdk.
CR output in json appears like below.
...ANSWER
Answered 2022-Mar-18 at 17:40Please try following :
kubectl get ocivaultkeys operator-key-broken -o jsonpath='{.status.conditions[?(@.ansibleResult)].type}'
Expected output : Failure
QUESTION
I am trying to get my Spring Boot application to configure a datasource connection from a Kubernetes Secret. Due to security requirements, I cannot use the envFrom/secretRef combo in my Deployment descriptor. So I'm trying to use Spring's configtree imports to access the secrets.
(Not all of the values are secrets, however, they all come to me from an Operator that I cannot control as a Secret.)
My application's application.yml
has the following:
ANSWER
Answered 2022-Mar-14 at 17:39You set the configtree base path to /etc/secrets/
.
You volume mounted the secret value into the file /etc/secrets/postgres/HOST
. Configtree converts the subdirectory path to a dot-separated prefix on the configuration property name, so the secret value is readable from configuration property name postgres.HOST
.
QUESTION
I know in Dockerfile I can extend existing docker image using:
...ANSWER
Answered 2022-Jan-31 at 07:58container_import
is the correct rule to import an existing image. However, all it does is import, it doesn't pull it from anywhere. I think you're looking for container_pull
instead, which will pull an image from a repository and then automatically use container_import
to translate it for other rules_docker rules.
To add a new layer, use container_image
, with base
set to the imported image and tars
set to the additional files you want to add. Or, if you want to add things in other formats, see the docs for alternates to tars
(like debs
or files
).
Putting it all together, something like this in your WORKSPACE
:
QUESTION
I have created Mongodb stateful set using mongodb kubernetes operator.
Now I want to delete that stateful set from kubernetes dashboard, but it is getting recreated again and again.
How do we delete stateful set permanently so that it doesn't get created again.
...ANSWER
Answered 2021-Dec-25 at 10:49Are you trying to delete a pod or the Stateful set itself?
Try to run:
QUESTION
My requirement is to trigger a CI & CD on a kubernetes on prem infra, whenever a PR has been raised. Jenkins X is an ideal candidate but unfortunately due to few proxy issues it didnt come to fruitition. Coming to kubernetes-operator, looking for few clarifications.
I've 4 nodes cluster, with one node being the leader.
- Do I've to set up a new instance of Jenkins before hand on my K8s cluster or kubernetes-operator does that for me ?
- Looking to access the Jenkins instance under the domain : jenkins.mybusinessunit.myorg.com/jenkins
- Do I have to do any addtional configurations to enable master - slave set up.
- Does kubernetes-operator provides a feature to support CI/CD model like Jenkins X ?
Thanks in advance.
...ANSWER
Answered 2021-Dec-14 at 06:42As per your comments you are actually interessted in more of a cloud-native solution to operating a Jenkins, so here goes.
Since you already have a Kubernetes cluster and would like to use the Jenkins Kubernetes operator, then I would recommend you use the Jenkins Kubernetes Plugin for managing your workloads.
The Jenkins Kubernetes plugin enables you to run each of your pipelines in a separate Pod in your Kubernetes cluster, and once the required Service
resources are setup, then the communication between master and slave pods is completely regulated by the plugin. I would recommend that you look into their documentation, which is quite good ( in comparison to other plugins ).
Now since you are also using the Jenkins Kubernetes operator you should know that the plugin is installed as one of the default plugins and is available as soon as your Jenkins instance is spun up. I would recommend you read through the Jenkins Kubernetes operator documentation to get a better grasp of what happens when that is running.
So now I will move onto your questions.
- Do I've to set up a new instance of Jenkins before hand on my K8s cluster or kubernetes-operator does that for me ?
If you install the Jenkins Kubernetes operator via Helm chart, then no, you get a Jenkins master instance included. Otherwise if you install the controller into your cluster manually, then you will need to create a Jenkins
CRD, which will create a Jenkins instance for you.
- Looking to access the Jenkins instance under the domain : jenkins.mybusinessunit.myorg.com/jenkins
Use Ingress + Load Balancer + DNS Service or expose the Pod via NodePort
. Note that exposing your master Pod via NodePort
may require you to make your Jenkins Master instance publicly available ( and that may not be wise ).
- Do I have to do any addtional configurations to enable master - slave set up.
Please refer to the documentation of Jenkins Kubernetes plugin and Jenkins Kubernetes operator. All details are provided there, but configuration is rather minimal.
- Does kubernetes-operator provides a feature to support CI/CD model like Jenkins X
No. The Jenkins Kubernetes operator is there only to manage your Jenkins instance and backups in immutable fashion. Jenkins X can be used in combination with Jenkins, but neither replaces the other completely.
QUESTION
Trying to install Crunchydata postgres-operator.
My pgo-deploy pod is failing with error.
I have setup default nfs storage running the following commands,
# kubectl create -f rbac.yaml
the content is,
ANSWER
Answered 2021-Aug-13 at 12:57The error you provided says what is wrong:
QUESTION
I'm trying to deploy a MongoDB replica set by using the MongoDB Community Kubernetes Operator in Minikube.
I followed the instructions on the official GitHub, so:
- Install the CRD
- Install the necessary roles and role-bindings
- Install the Operator Deploy the Replicaset
By default, the operator will creates three pods, each of them automatically linked to a new persistent volume claim bounded to a new persistent volume also created by the operator (so far so good).
However, I would like the data to be saved in a specific volume, mounted in a specific host path. So in order I would need to create three persistent volumes, each mounted to a specific host path, and then automatically I would want to configure the replicaset so that each pod would connect to its respective persistent volume (perhaps using the matchLabels selector). So I created three volumes by applying the following file:
...ANSWER
Answered 2021-Jul-13 at 17:41I think you could be interested into using local type of volumes. It works, like this:
First, you create a storage class for the local volumes. Something like the following:
QUESTION
The Best Practices for building Kubernetes Operators say I should write a whole bunch of Operators to manage my application. How does inter-operator communication happen?
In other words, how should I build my Operator so that it can talk to other Operators?
...ANSWER
Answered 2021-Feb-17 at 18:06They don't. Not directly, anyways. Communication on Kubernetes occurs purely through YAML files.
For example, if your application requires access to a database, you should install an operator for Postgresql, create a PostgreSQLCluster CR Object, and pull credentials from it once it's setup.
However, this isn't a practical solution in the long term, because Operators should be able to update automatically and without interaction. You are also not allowed to install older versions. To name names, the Crunchy Postgres Operator actually goes through many breaking changes with every update. If you were relying on them maintaining their CRD format, you made your architecture a brittle one.
A few exceptions do exist. Operators for products like Tekton Pipelines and Argo Pipelines are very stable and unlikely to change by design, and it's perfectly OK to depend on these.
Speaking purely towards the best practices, you are supposed to be able to migrate from older to newer versions of your CRD API using webhooks, though it isn't clear that any Operator implementations actually do this. Still, as of writing this post, there are no Operators on OperatorHub.io which rely on other Operators (Feb 16, 2021). Reader, you will be the first.
If you wanted to do so anyway, chances are the Operator you want to depend on is available on the Go package repository. You can just go get
them and use their CRD API types natively in your code, which should make it very easy to keep up to date with the API.
Technically, the Operator you want to depend on could implement a REST API in their manager, and expose it as a service. I seriously doubt anybody will ever do this. It doesn't seem smart to poke holes into the Kubernetes design philosophy and open up attack vectors.
QUESTION
Im referring to mongodb community operator from https://github.com/mongodb/mongodb-kubernetes-operator and trying to deploy it in openshift or okd
...ANSWER
Answered 2021-Jan-19 at 04:57you can use this command to update the deployment image of mongo
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install es-operator
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page