Helm环境部署步骤

你好。
我是Class Act Infrastructure事业部的大塚先生。

我现在正专注于深入了解k8s,并且想要尝试一下JAEGER,所以我打算使用Helm来搭建环境。(可惜JAEGER环境没能成功搭建。)既然已经搭建好了Helm环境,我想简略地记录下备忘录。

集群环境

部署Helm环境的集群如下所示。如果只需要创建Helm环境,不需要这样的规格。目前只是想尝试Ceph和其他功能,所以才处于这种状态。

HostnameIP AddressOS CPUMemoryHardDisk 1HardDisk 2k8s-master192.168.2.30Ubuntu 22.04.2 LTS4sockets 4cores48.83GiB100G10Gk8s-worker01192.168.2.31Ubuntu 22.04.2 LTS2sockets 4cores29.30GB60G50Gk8s-worker02192.168.2.32Ubuntu 22.04.2 LTS2sockets 4cores29.30GB60G50Gk8s-worker03192.168.2.33Ubuntu 22.04.2 LTS2sockets 4cores29.30GB60G50Gk8s-ceph01192.168.2.37Ubuntu 22.04.2 LTS2sockets 4cores19.53GiB50G50Gk8s-ceph02192.168.2.38Ubuntu 22.04.2 LTS2sockets 4cores19.53GiB50G50Gk8s-ceph03192.168.2.39Ubuntu 22.04.2 LTS2sockets 4cores19.53GiB50G50G

Helm是什么?

以下是从官方网站引用的:
通过使用Docker/Kubernetes等工具,可以使用一个命令(假设有yaml文件)来部署任意环境,这样一方面非常方便,但是当数量增加时管理会变得困难。这个工具似乎可以解决这个问题。Kubernetes中Pod和Service是显著的,同时还有ConfigMap和Secret等其他细节。它可以简化这些管理工作。
后面会提到,在内部似乎也使用了Bitnami。看到Bitnami这个名字时,“我好像在AWS的Lightsail上看到过”这个个人的想法就会出现,如果有类似的人,我认为不需要考虑太复杂,可以使用那个镜像就好了。也就是指那种可以用点点鼠标来准备WordPress、Redmine等环境的东西。

Helm旨在助力管理Kubernetes应用程序。Helm图表支持对最复杂的Kubernetes应用程序进行定义、安装和升级。

 

建立起来

我将参考以下网站。
按照步骤安装Helm,并使用 version选项来确认是否已成功安装。

 

root@k8s-master:~# curl https://baltocdn.com/helm/signing.asc | gpg --dearmor | sudo tee /usr/share/keyrings/helm.gpg > /dev/null
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  1699  100  1699    0     0   4984      0 --:--:-- --:--:-- --:--:--  4997
root@k8s-master:~#  apt-get install apt-transport-https --yes
root@k8s-master:~# echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/helm.gpg] https://baltocdn.com/helm/stable/debian/ all main" | sudo tee /etc/apt/sources.list.d/helm-stable-debian.list
deb [arch=amd64 signed-by=/usr/share/keyrings/helm.gpg] https://baltocdn.com/helm/stable/debian/ all main
root@k8s-master:~# apt-get update
root@k8s-master:~# apt-get install helm
root@k8s-master:~# helm version
version.BuildInfo{Version:"v3.12.1", GitCommit:"f32a527a060157990e2aa86bf45010dfb3cc8b8d", GitTreeState:"clean", GoVersion:"go1.20.4"}

一旦完成应对措施后,添加存储库。
查看输出列表,似乎可以准备各种环境。
以上!

root@k8s-master:~# helm repo add bitnami https://charts.bitnami.com/bitnami
"bitnami" has been added to your repositories
root@k8s-master:~# helm search repo bitnami
NAME                                            CHART VERSION   APP VERSION     DESCRIPTION
bitnami/airflow                                 14.2.5          2.6.1           Apache Airflow is a tool to express and execute...
bitnami/apache                                  9.6.3           2.4.57          Apache HTTP Server is an open-source HTTP serve...
bitnami/apisix                                  2.0.1           3.3.0           Apache APISIX is high-performance, real-time AP...
bitnami/appsmith                                0.3.7           1.9.21          Appsmith is an open source platform for buildin...
bitnami/argo-cd                                 4.7.12          2.7.5           Argo CD is a continuous delivery tool for Kuber...
bitnami/argo-workflows                          5.3.5           3.4.8           Argo Workflows is meant to orchestrate Kubernet...
bitnami/aspnet-core                             4.3.2           7.0.8           ASP.NET Core is an open-source framework for we...
bitnami/cassandra                               10.4.2          4.1.2           Apache Cassandra is an open source distributed ...
bitnami/cert-manager                            0.11.4          1.12.2          cert-manager is a Kubernetes add-on to automate...
bitnami/clickhouse                              3.4.4           23.5.3          ClickHouse is an open-source column-oriented OL...
bitnami/common                                  2.4.0           2.4.0           A Library Helm Chart for grouping common logic ...
bitnami/concourse                               2.2.2           7.9.1           Concourse is an automation system written in Go...
bitnami/consul                                  10.12.3         1.15.3          HashiCorp Consul is a tool for discovering and ...
bitnami/contour                                 12.1.1          1.25.0          Contour is an open source Kubernetes ingress co...
bitnami/contour-operator                        4.2.1           1.24.0          DEPRECATED The Contour Operator extends the Kub...
bitnami/dataplatform-bp2                        12.0.5          1.0.1           DEPRECATED This Helm chart can be used for the ...
bitnami/discourse                               10.3.4          3.0.4           Discourse is an open source discussion platform...
bitnami/dokuwiki                                14.1.3          20230404.1.0    DokuWiki is a standards-compliant wiki optimize...
bitnami/drupal                                  14.1.5          10.0.9          Drupal is one of the most versatile open source...
bitnami/ejbca                                   7.1.3           7.11.0          EJBCA is an enterprise class PKI Certificate Au...
bitnami/elasticsearch                           19.10.2         8.8.1           Elasticsearch is a distributed search and analy...
bitnami/etcd                                    9.0.1           3.5.9           etcd is a distributed key-value store designed ...
bitnami/external-dns                            6.20.4          0.13.4          ExternalDNS is a Kubernetes addon that configur...
bitnami/flink                                   0.3.2           1.17.1          Apache Flink is a framework and distributed pro...
bitnami/fluent-bit                              0.4.6           2.1.6           Fluent Bit is a Fast and Lightweight Log Proces...
bitnami/fluentd                                 5.8.4           1.16.1          Fluentd collects events from various data sourc...
bitnami/flux                                    0.3.5           0.36.1          Flux is a tool for keeping Kubernetes clusters ...
bitnami/geode                                   1.1.8           1.15.1          DEPRECATED Apache Geode is a data management pl...
bitnami/ghost                                   19.3.19         5.52.3          Ghost is an open source publishing platform des...
bitnami/gitea                                   0.3.4           1.19.3          Gitea is a lightweight code hosting solution. W...
bitnami/grafana                                 8.4.6           9.5.5           Grafana is an open source metric analytics and ...
bitnami/grafana-loki                            2.9.2           2.8.2           Grafana Loki is a horizontally scalable, highly...
bitnami/grafana-mimir                           0.5.2           2.9.0           Grafana Mimir is an open source, horizontally s...
bitnami/grafana-operator                        2.9.3           4.10.1          Grafana Operator is a Kubernetes operator that ...
bitnami/grafana-tempo                           2.3.4           2.1.1           Grafana Tempo is a distributed tracing system t...
bitnami/haproxy                                 0.8.3           2.8.0           HAProxy is a TCP proxy and a HTTP reverse proxy...
bitnami/haproxy-intel                           0.2.11          2.7.1           DEPRECATED HAProxy for Intel is a high-performa...
bitnami/harbor                                  16.6.8          2.8.2           Harbor is an open source trusted cloud-native r...
bitnami/influxdb                                5.6.1           2.7.1           InfluxDB(TM) is an open source time-series data...
bitnami/jaeger                                  1.2.4           1.46.0          Jaeger is a distributed tracing system. It is u...
bitnami/jasperreports                           15.1.3          8.2.0           JasperReports Server is a stand-alone and embed...
bitnami/jenkins                                 12.2.2          2.401.1         Jenkins is an open source Continuous Integratio...
bitnami/joomla                                  14.1.3          4.3.2           Joomla! is an award winning open source CMS pla...
bitnami/jupyterhub                              4.1.4           4.0.0           JupyterHub brings the power of notebooks to gro...
bitnami/kafka                                   22.1.6          3.4.1           Apache Kafka is a distributed streaming platfor...
bitnami/keycloak                                15.1.4          21.1.1          Keycloak is a high performance Java-based ident...
bitnami/kiam                                    1.3.4           4.2.0           kiam is a proxy that captures AWS Metadata API ...
bitnami/kibana                                  10.4.3          8.8.1           Kibana is an open source, browser based analyti...
bitnami/kong                                    9.3.3           3.3.0           Kong is an open source Microservice API gateway...
bitnami/kube-prometheus                         8.14.1          0.66.0          Prometheus Operator provides easy monitoring de...
bitnami/kube-state-metrics                      3.5.7           2.9.2           kube-state-metrics is a simple service that lis...
bitnami/kubeapps                                12.4.4          2.7.0           Kubeapps is a web-based UI for launching and ma...
bitnami/kubernetes-event-exporter               2.4.4           1.1.0           Kubernetes Event Exporter makes it easy to expo...
bitnami/logstash                                5.4.3           8.8.1           Logstash is an open source data processing engi...
bitnami/magento                                 22.1.2          2.4.6           Magento is a powerful open source e-commerce pl...
bitnami/mariadb                                 12.2.5          10.11.4         MariaDB is an open source, community-developed ...
bitnami/mariadb-galera                          8.2.6           10.11.4         MariaDB Galera is a multi-primary database clus...
bitnami/mastodon                                1.5.4           4.1.2           Mastodon is self-hosted social network server b...
bitnami/matomo                                  1.1.4           4.14.2          Matomo, formerly known as Piwik, is a real time...
bitnami/mediawiki                               15.1.3          1.39.3          MediaWiki is the free and open source wiki soft...
bitnami/memcached                               6.5.3           1.6.21          Memcached is an high-performance, distributed m...
bitnami/metallb                                 4.5.4           0.13.10         MetalLB is a load-balancer implementation for b...
bitnami/metrics-server                          6.4.3           0.6.3           Metrics Server aggregates resource usage data, ...
bitnami/minio                                   12.6.5          2023.6.19       MinIO(R) is an object storage server, compatibl...
bitnami/mongodb                                 13.15.3         6.0.6           MongoDB(R) is a relational open source NoSQL da...
bitnami/mongodb-sharded                         6.5.4           6.0.6           MongoDB(R) is an open source NoSQL database tha...
bitnami/moodle                                  16.1.3          4.2.1           Moodle(TM) LMS is an open source online Learnin...
bitnami/multus-cni                              1.0.2           4.0.2           Multus is a CNI plugin for Kubernetes clusters....
bitnami/mxnet                                   3.3.3           1.9.1           Apache MXNet (Incubating) is a flexible and eff...
bitnami/mysql                                   9.10.4          8.0.33          MySQL is a fast, reliable, scalable, and easy t...
bitnami/nats                                    7.8.5           2.9.19          NATS is an open source, lightweight and high-pe...
bitnami/nginx                                   15.0.2          1.25.1          NGINX Open Source is a web server that can be a...
bitnami/nginx-ingress-controller                9.7.3           1.8.0           NGINX Ingress Controller is an Ingress controll...
bitnami/nginx-intel                             2.1.15          0.4.9           DEPRECATED NGINX Open Source for Intel is a lig...
bitnami/node                                    19.1.7          16.18.0         DEPRECATED Node.js is a runtime environment bui...
bitnami/node-exporter                           3.5.4           1.6.0           Prometheus exporter for hardware and OS metrics...
bitnami/oauth2-proxy                            3.7.4           7.4.0           A reverse proxy and static file server that pro...
bitnami/odoo                                    23.2.5          16.0.20230615   Odoo is an open source ERP and CRM platform, fo...
bitnami/opencart                                14.1.3          4.0.2-1         OpenCart is free open source ecommerce platform...
bitnami/osclass                                 15.1.2          8.1.2           Osclass allows you to easily create a classifie...
bitnami/owncloud                                12.2.11         10.11.0         DEPRECATED ownCloud is an open source content c...
bitnami/parse                                   20.2.3          6.2.0           Parse is a platform that enables users to add a...
bitnami/phpbb                                   13.1.3          3.3.10          phpBB is a popular bulletin board that features...
bitnami/phpmyadmin                              11.1.3          5.2.1           phpMyAdmin is a free software tool written in P...
bitnami/pinniped                                1.2.2           0.24.0          Pinniped is an identity service provider for Ku...
bitnami/postgresql                              12.5.8          15.3.0          PostgreSQL (Postgres) is an open source object-...
bitnami/postgresql-ha                           11.7.6          15.3.0          This PostgreSQL cluster solution includes the P...
bitnami/prestashop                              17.1.3          8.0.4           PrestaShop is a powerful open source eCommerce ...
bitnami/prometheus                              0.1.5           2.44.0          Prometheus is an open source monitoring and ale...
bitnami/pytorch                                 3.2.6           2.0.1           PyTorch is a deep learning platform that accele...
bitnami/rabbitmq                                12.0.3          3.12.0          RabbitMQ is an open source general-purpose mess...
bitnami/rabbitmq-cluster-operator               3.4.2           2.3.0           The RabbitMQ Cluster Kubernetes Operator automa...
bitnami/redis                                   17.11.6         7.0.11          Redis(R) is an open source, advanced key-value ...
bitnami/redis-cluster                           8.6.4           7.0.11          Redis(R) is an open source, scalable, distribut...
bitnami/redmine                                 22.1.4          5.0.5           Redmine is an open source management applicatio...
bitnami/schema-registry                         11.0.1          7.4.0           Confluent Schema Registry provides a RESTful in...
bitnami/sealed-secrets                          1.4.4           0.22.0          Sealed Secrets are "one-way" encrypted K8s Secr...
bitnami/solr                                    7.5.1           9.2.1           Apache Solr is an extremely powerful, open sour...
bitnami/sonarqube                               3.2.5           10.1.0          SonarQube(TM) is an open source quality managem...
bitnami/spark                                   7.0.1           3.4.0           Apache Spark is a high-performance engine for l...
bitnami/spring-cloud-dataflow                   19.0.1          2.10.3          Spring Cloud Data Flow is a microservices-based...
bitnami/suitecrm                                12.1.3          7.13.3          SuiteCRM is a completely open source, enterpris...
bitnami/supabase                                0.3.8           0.23.5          Supabase is an open source Firebase alternative...
bitnami/tensorflow-resnet                       3.8.3           2.12.1          TensorFlow ResNet is a client utility for use w...
bitnami/thanos                                  12.8.3          0.31.0          Thanos is a highly available metrics system tha...
bitnami/tomcat                                  10.9.3          10.1.10         Apache Tomcat is an open-source web server desi...
bitnami/vault                                   0.2.4           1.13.3          Vault is a tool for securely managing and acces...
bitnami/wavefront                               4.4.3           1.13.0          DEPRECATED Wavefront is a high-performance stre...
bitnami/wavefront-adapter-for-istio             2.0.6           0.1.5           DEPRECATED Wavefront Adapter for Istio is an ad...
bitnami/wavefront-hpa-adapter                   1.5.2           0.9.10          DEPRECATED Wavefront HPA Adapter for Kubernetes...
bitnami/wavefront-prometheus-storage-adapter    2.3.3           1.0.7           DEPRECATED Wavefront Storage Adapter is a Prome...
bitnami/whereabouts                             0.4.1           0.6.2           Whereabouts is a CNI plugin for Kubernetes clus...
bitnami/wildfly                                 15.1.3          28.0.1          Wildfly is a lightweight, open source applicati...
bitnami/wordpress                               16.1.19         6.2.2           WordPress is the world's most popular blogging ...
bitnami/wordpress-intel                         2.1.31          6.1.1           DEPRECATED WordPress for Intel is the most popu...
bitnami/zookeeper                               11.4.3          3.8.1           Apache ZooKeeper provides a reliable, centraliz...
广告
将在 10 秒后关闭
bannerAds