cloud-on-k8s | Elastic Cloud on Kubernetes | Continuous Deployment library
kandi X-RAY | cloud-on-k8s Summary
kandi X-RAY | cloud-on-k8s Summary
Elastic Cloud on Kubernetes automates the deployment, provisioning, management, and orchestration of Elasticsearch, Kibana, APM Server, Enterprise Search, Beats, Elastic Agent, and Elastic Maps Server on Kubernetes based on the operator pattern. Check the Quickstart to deploy your first cluster with ECK. If you want to contribute to the project, check our contributing guide and see how to setup a local development environment. For general questions, please see the Elastic forums.
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 cloud-on-k8s
cloud-on-k8s Key Features
cloud-on-k8s Examples and Code Snippets
Community Discussions
Trending Discussions on cloud-on-k8s
QUESTION
I am using the ECK operator, to create an Elasticsearch
instance.
The instance uses a StorageClass
that has Retain
(instead of Delete
) as its reclaim policy.
Here are my PVC
s before deleting the Elasticsearch
instance
ANSWER
Answered 2021-Jun-14 at 15:38with the hope that due to the Retain policy, the new pods (i.e. their PVCs would bind to the existing PVs (and data wouldn't get lost)
It is explicitly written in the documentation that this is not what happens. the PVs are not available for another PVC after delete of a PVC.
the PersistentVolume still exists and the volume is considered "released". But it is not yet available for another claim because the previous claimant's data remains on the volume.
QUESTION
I'm trying to deploy the ELK stack to my developing kubernetes cluster. It seems that I do everything as described in the tutorials, however, the pods keep failing with Java errors (see below). I will describe the whole process from installing the cluster until the error happens.
Step 1: Installing the cluster
...ANSWER
Answered 2021-May-26 at 05:06For the ELK stack to work you need all three PersistentVolumeClaim's to be bound as I recall. Instead of creating 1 30 GB of PV create 3 of the same size with the claims and then re-install. Other nodes have unmet dependincies.
Also please do not handle the volumes by hand. There are guidelines to deploy dynamic volums. Use OpenEBS for example. That way you wont need to worry about the pvc's. After giving the pv's if anything happens write again with your cluster installation process.
I was wrong obviously, in this particular problem, filesystems and cgroups take role and the main problem of this is an old problem. From 5.2.1 to 8.0.0. Reinstall the chart by pulling the chart. Edit values file and definitely change the container version. It should be fine or create another error log stack.
QUESTION
I'm running this tutorial https://www.elastic.co/guide/en/cloud-on-k8s/current/k8s-deploy-elasticsearch.html and found that the elasticsearch operator comes included with a pre-defined secret which is accessed through kubectl get secret quickstart-es-elastic-user -o go-template='{{.data.elastic | base64decode}}'
. I was wondering how I can access it in a manifest file for a pod that will make use of this as an env var. The pod's manifest is as follows:
ANSWER
Answered 2021-May-12 at 06:44The secret returned via API (kubectl get secret ...
) is a JSON-structure, where there:
QUESTION
I'm playing with the Elasticsearch operator Kubernetes and created two stateful sets (see https://www.elastic.co/guide/en/cloud-on-k8s/current/k8s-orchestration.html):
...ANSWER
Answered 2021-May-04 at 05:45You have to delete the custom object. The operator owns those StatefulSets and will continually update them to match its expected content.
QUESTION
I have deployed ECK (using helm) on my k8s cluster and i am attempting to install elasticsearch following the docs. https://www.elastic.co/guide/en/cloud-on-k8s/current/k8s-deploy-elasticsearch.html
I have externally exposed service/elasticsearch-prod-es-http so that i can connect to it from outside of my k8s cluster. However as you can see when i try to connect to it either from curl or the browser i receive an error "502 Bad Gateway" error.
...ANSWER
Answered 2021-Apr-27 at 16:22If anyone comes across this problem in the future, make sure your ingress is properly configured. The error message suggests that its a misconfiguration with the ingress.
QUESTION
After reading some documentation regarding Persistent Volumes in Kubernetes I am wondering which one would be the best setup (storage speaking) for running a highly available ElasticSearch cluster. I am not running the typical EFK (or ELK) setup, but I am using ElasticSearch as a proper full-text search engine.
I've read the official Elastic Documentation, but I find it quite lacking of clarification. According to "Kubernetes in Action", Chapter 6:
When an application running in a pod needs to persist data to disk and have that same data available even when the pod is rescheduled to another node, you can’t use any of the volume types we’ve mentioned so far. Because this data needs to be accessible from any cluster node, it must be stored on some type of network-attached storage (NAS).
So if I am not mistaken, I need a Volume
and access it through PersistentVolumes
and PersistentVolumeClaim
with Retain
policies.
When looking at Official Volumes, I get a feeling that one should define the Volume type him/herself. Though, when looking at a DigitalOcean guide, it does not seem there was any Volume setup there. I picked that tutorial, but there are dozens on Medium that are all doing the same thing.
So: which one is the best setup for an ElasticSearch cluster? Of course keeping in mind order to not loose any data within an index, and being able to add pods(Kubernetes) or nodes (ElasticSearch) that can access the index.
...ANSWER
Answered 2021-Feb-12 at 18:07A good pattern to deploy an ElasticSearch cluster in kubernetes is to define a StatefulSets
.
Because the StatefulSet replicates more than one Pod you cannot simply reference a persistent volume claim. Instead, you need to add a
persistent volume claim template
to the StatefulSet state definition.
In order for these replicated peristent volumes to work, you need to create a Dynamic Volume Provisioning and StorageClass which allows storage volumes to be created on-demand.
In the DigitalOcean guide tutorial, the persistent volume claim template is as follow:
QUESTION
I am trying to install the Elastic Cloud on Kubernetes (ECK) Kubernetes operator with the all-in-one.yaml file, as per the tutorial: https://www.elastic.co/guide/en/cloud-on-k8s/current/k8s-install-all-in-one.html But I am getting an error:
Error from server: error when creating "https://download.elastic.co/downloads/eck/1.3.1/all-in-one.yaml": the server responded with the status code 413 but did not return more information (post customresourcedefinitions.apiextensions.k8s.io)
I am a bit lost as to how to proceed solving this issue...
Command:
...ANSWER
Answered 2021-Feb-07 at 19:51I managed to fix the issue by setting the proxy-body-size config map value in the system nginx config map to 8m.
QUESTION
ive followed this guide https://www.elastic.co/guide/en/cloud-on-k8s/current/k8s-deploy-eck.html, then apply this manifest:
...ANSWER
Answered 2020-Dec-02 at 19:29kubectl get secret elasticsearch-es-elastic-user -o=jsonpath='{.data.elastic}' | base64 --decode; echo
QUESTION
I deployed Elasticsearch with the following the page below to my Azure Kubernetes environment.
...ANSWER
Answered 2020-Nov-27 at 13:03You can do it by installing elasticsearch using helm chart and modifying values.yaml
. It allows you to modify elasticsearch.yaml
.
You can enable xpack.security.enabled: true
with following configuration:
QUESTION
I installed minikube
on my Mac and I'd like to deploy elasticsearch on this k8s cluster. I followed this instruction: https://www.elastic.co/guide/en/cloud-on-k8s/current/k8s-deploy-elasticsearch.html
The file I created is:
...ANSWER
Answered 2020-Nov-23 at 09:47I think you might have missed the step of installing CRD and the operator for ElasticSearch. Have you followed this step https://www.elastic.co/guide/en/cloud-on-k8s/current/k8s-deploy-eck.html?
Service
, Pod
, Deployment
etc are Kubernetes native resources. Kubernetes provides a way to write custom resources also, using CRDs. Elasticsearch
is one such example, so you have to define custom resource before using it for Kubernetes to understand that.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install cloud-on-k8s
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