GithubHelp home page GithubHelp logo

charts's Introduction

charts

Prerequisites

  • Kubernetes 1.17+
  • Helm 3.5.4

Install Helm

Helm is a tool for managing Kubernetes charts. Charts are packages of pre-configured Kubernetes resources.

To install Helm, refer to the Helm install guide and ensure that the helm binary is in the PATH of your shell.

Using Helm

Once you have installed the Helm client, you can deploy a Helm Chart into a Kubernetes cluster.

Please refer to the Quick Start guide if you wish to get running in just a few commands, otherwise the Using Helm Guide provides detailed instructions on how to use the Helm client to manage packages on your Kubernetes cluster.

Useful Helm Client Commands:

  • Install a chart: helm install test-chain cita-cloud-local-cluster
  • List your application: helm list
  • Uninstall a chart: helm unintall test-chain

docs of chart

generated by helm-docs:

docker run --rm -v "$(pwd):/helm-docs" jnorwood/helm-docs:latest

introduce charts

cita-cloud-pvc - Create PVC for CITA-Cloud

helm install local-pvc ./cita-cloud-pvc

cita-cloud-local-cluster - Setup CITA-Cloud blockchain in one k8s cluster.

helm install test-chain ./cita-cloud-local-cluster

charts's People

Contributors

acechef avatar jayanring avatar k4nzdroid avatar miaojuncn avatar pencil-yao avatar rink1969 avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

charts's Issues

local-pvc does not work properly with cephfs

What happened?

通过 Helm charts 部署 6.4.0 版本的 CITA Cloud 时,四个节点仅有一个能够成功运行,其他三个节点出现类似如下错误:

Events:                                                                                                                                                                                                                                                                     
  Type     Reason              Age                  From                     Message                                                                                                                                                                                        
  ----     ------              ----                 ----                     -------                                                                                                                                                                                        
  Normal   Scheduled           5m33s                default-scheduler        Successfully assigned cita-cloud-over-cephfs/test-chain-0 to k8s130-wn137                                                                                                                      
  Warning  FailedAttachVolume  5m33s                attachdetach-controller  Multi-Attach error for volume "pvc-5ef03e50-b2f6-45fc-8a02-f2e5cb5de94c" Volume is already used by pod(s) test-chain-1                                                                         
  Warning  FailedMount         74s (x2 over 3m31s)  kubelet                  Unable to attach or mount volumes: unmounted volumes=[datadir], unattached volumes=[cloud-config-shell kube-api-access-k2wnp datadir]: timed out waiting for the condition 

What did you expect to happen?

节点能够成功运行,不会出现该错误。

How can we reproduce it?

PVC 使用 Rook Ceph 提供的 CephFS 存储类,然后运行 CITA Cloud

helm install local-pvc cita-cloud/cita-cloud-pvc     \
   --set scName=ceph-filesystem                 \
   --set size=1000Gi

$ helm install test-chain cita-cloud/cita-cloud-local-cluster  \
   --set pvcName=local-pvc                                     \
   --set service.nodePort=32224                                \
   --set service.vmPort=32225                                  \
   --set config.superAdmin=0xc8ca9cc77a7f822fdd0baef7a7740f9dba493455

Anything else we need to know?

现在,如果使用 NFS 存储,则不存在该问题,原因是 PV PVC 的 accessModes 非强制属性,NFS 及其他某些存储没有实现强制限制。

而 Ceph 的 CephFS StorageClass 则进行强制限制,导致该 PV PVC 无法在其他节点使用。

将 cita-cloud-pvc 的 accessModes: ["ReadWriteOnce"] 修改成 ReadWriteMany 即可解决问题。

给pod增加lable

使用chaosmesh做可靠性测试的时候,需要使用lable来选择要测试的pod。
但是目前没有增加自己的lable,依赖helm自行添加的lable。
与operator添加的lable不一致。

通过自行添加lable,不管用何种方式启动的链,lable保持一致。

"app.kubernetes.io/chain-name": chainName,
"app.kubernetes.io/chain-node": nodeName,

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.