zoukankan      html  css  js  c++  java
  • helm 部署etcd

    helm install -n service   bitnami/etcd --set  replicaCount=3 --set persistence.enabled=true --set metrics.enabled=true --set resources.limits.cpu=2  --set resources.limits.memory=4Gi  --set resources.requests.cpu=2  --set resources.requests.memory=4Gi     --set global.storageClass=disk --set auth.rbac.enabled=false

    参考文档地址:https://github.com/bitnami/charts/tree/master/bitnami/etcd/#installing-the-chart

    # helm  status -n service weirproxy


    NAME: etcd LAST DEPLOYED: Thu Sep
    23 17:27:57 2021 NAMESPACE: service STATUS: deployed REVISION: 1 TEST SUITE: None NOTES: ** Please be patient while the chart is being deployed ** etcd can be accessed via port 2379 on the following DNS name from within your cluster: etcd.service.svc.cluster.local To create a pod that you can use as a etcd client run the following command: kubectl run etcd-client --restart='Never' --image docker.io/bitnami/etcd:3.5.0-debian-10-r64 --env ETCDCTL_ENDPOINTS="etcd.service.svc.cluster.local:2379" --namespace service --command -- sleep infinity Then, you can set/get a key using the commands below: kubectl exec --namespace service -it etcd-client -- bash etcdctl put /message Hello etcdctl get /message To connect to your etcd server from outside the cluster execute the following commands: kubectl port-forward --namespace service svc/etcd 2379:2379 & echo "etcd URL: http://127.0.0.1:2379"
  • 相关阅读:
    易语言VS杀毒软件:基情复燃,转受为攻!
    android xml解析
    Activity中与ListActivity中使用listview区别
    Android四大基本组件介绍与生命周期
    eclipse_中的注释_快捷键
    ADB server didn't ACK
    JDK安装配置
    Android开发把项目打包成apk
    分享Kali Linux 2016.2第48周镜像文件
    iOS10 UI教程视图调试
  • 原文地址:https://www.cnblogs.com/leleyao/p/15325268.html
Copyright © 2011-2022 走看看