samsung-cnct / chart-elasticsearch Goto Github PK
View Code? Open in Web Editor NEWLicense: Apache License 2.0
License: Apache License 2.0
This value:
volume.alpha.kubernetes.io/storage-class: anything
is deprecated and has been changed to:
volume.beta.kubernetes.io/storage-class: anything
Also, the value should be made configurable from the values.yaml. e.g.
volume.beta.kubernetes.io/storage-class: {{Values.storage_class}}
Set up tests for chart-elasticsearch.
This will involve researching unit tests for elasticsearch.
Here are some articles of possible interest (link is the final article of a three part series; the first two articles are linked in the first paragraph).
From @leahnp on August 1, 2017 23:17
Duplicate this repo as much as possible for maintainability.
Use a single statefulset to spinup a light weight single node data/master elasticsearch cluster
Use elastic curator to delete logs after 2 weeks.
Copied from original issue: samsung-cnct/elasticsearch-kubernetes#10
build/.gitlab-ci.yml
from templatebuild/build.sh
and build/test.sh
according to instructionsJenkinsfile
in the current repo.chart-elasticsearch
Investigate why "helm delete" does not remove all artifacts created by the helm chart.
From @gdmello on October 5, 2017 20:35
Trying to setup an elasticsearch cluster, and it fails in a 1.6 with RBAC not enabled-
$ kubectl version
Client Version: version.Info{Major:"1", Minor:"6", GitVersion:"v1.6.2", GitCommit:"477efc3cbe6a7effca06bd1452fa356e2201e1ee", GitTreeState:"clean", BuildDate:"2017-04-19T20:33:11Z", GoVersion:"go1.7.5", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"6", GitVersion:"v1.6.7+coreos.0", GitCommit:"c8c505ee26ac3ab4d1dff506c46bc5538bc66733", GitTreeState:"clean", BuildDate:"2017-07-06T17:38:33Z", GoVersion:"go1.7.6", Compiler:"gc", Platform:"linux/amd64"}
$ helm install --name elasticsearch --values values.yaml ../../k2-charts/elasticsearch --namespace=ft --debug
[debug] Created tunnel using local port: '54714'
[debug] SERVER: "localhost:54714"
[debug] Original chart version: ""
[debug] CHART PATH: /home/<username>/new_wk_spc/k2-charts/elasticsearch
Error: release elasticsearch failed: clusterroles.rbac.authorization.k8s.io "elasticsearch" is forbidden: attempt to grant extra privileges: [{[get] [] [services] [] []} {[get] [] [namespaces] [] []} {[get] [] [endpoints] [] []}] user=&{system:serviceaccount:kube-system:default 9789f564-a6b6-11e7-a6e0-5254007064d2 [system:serviceaccounts system:serviceaccounts:kube-system system:authenticated] map[]} ownerrules=[] ruleResolutionErrors=[]
Tiller shows no different error-
[tiller] 2017/10/05 19:02:26 preparing install for elasticsearch
[storage] 2017/10/05 19:02:26 getting release history for "elasticsearch"
[tiller] 2017/10/05 19:02:26 rendering elasticsearch chart using values
[tiller] 2017/10/05 19:02:26 performing install for elasticsearch
[tiller] 2017/10/05 19:02:26 executing 0 pre-install hooks for elasticsearch
[tiller] 2017/10/05 19:02:26 hooks complete for pre-install elasticsearch
[storage] 2017/10/05 19:02:26 getting release history for "elasticsearch"
[kube] 2017/10/05 19:02:26 building resources from manifest
[kube] 2017/10/05 19:02:26 creating 7 resource(s)
[tiller] 2017/10/05 19:02:26 warning: Release "elasticsearch" failed: clusterroles.rbac.authorization.k8s.io "elasticsearch" is forbidden: attempt to grant extra privileges: [{[get] [] [services] [] []} {[get] [] [namespaces] [] []} {[get] [] [endpoints] [] []}] user=&{system:serviceaccount:kube-system:default 9789f564-a6b6-11e7-a6e0-5254007064d2 [system:serviceaccounts system:serviceaccounts:kube-system system:authenticated] map[]} ownerrules=[] ruleResolutionErrors=[]
[storage] 2017/10/05 19:02:26 creating release "elasticsearch.v1"
[tiller] 2017/10/05 19:02:26 failed install perform step: release elasticsearch failed: clusterroles.rbac.authorization.k8s.io "elasticsearch" is forbidden: attempt to grant extra privileges: [{[get] [] [services] [] []} {[get] [] [namespaces] [] []} {[get] [] [endpoints] [] []}] user=&{system:serviceaccount:kube-system:default 9789f564-a6b6-11e7-a6e0-5254007064d2 [system:serviceaccounts system:serviceaccounts:kube-system system:authenticated] map[]} ownerrules=[] ruleResolutionErrors=[]
If I comment out the creation of the ClusterRole
and ClusterRoleBinding
, the deployment is successful. Looks like the conditional {{- if .Capabilities.APIVersions.Has "rbac.authorization.k8s.io/v1beta1"}}
seems to trigger even if rbac is not enabled. I haven't looked into this conditional deeply, as the only other example of it's usage is in the prometheus operator.
Copied from original issue: samsung-cnct/k2-charts#135
From @leahnp on August 1, 2017 22:40
In conjunction with: https://github.com/samsung-cnct/k2-charts/issues/63
Delete logs after 2 weeks
Copied from original issue: samsung-cnct/elasticsearch-kubernetes#8
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.