Helm安装Nightingale
官网地址:Nightingale - 夜莺云原生监控 (n9e.github.io)
安装文档:flashcatcloud/n9e-helm: Helm chart of Nightingale (github.com)
1、要求
- Kubernetes cluster 1.20+
- Helm v3.2.0+
2、获取helm库
git clone https://github.com/flashcatcloud/n9e-helm.git
3、没有远程存储的话,可以把持久化存储关掉。(监控数据很重要的话不推荐关闭)
vim values.yaml persistence: enabled: false ###改成false即可 resourcePolicy: "keep" persistentVolumeClaim: database: existingClaim: "" storageClass: "" subPath: "" accessMode: ReadWriteOnce size: 4Gi redis: existingClaim: "" storageClass: "" subPath: "" accessMode: ReadWriteOnce size: 1Gi prometheus: existingClaim: "" storageClass: "" subPath: "" accessMode: ReadWriteOnce size: 4Gi
4、没有安装ingress的话,可以使用NodePort的方式提供外网访问
cat service.yaml {{/* # Copyright 2022 flashcat.cloud | 快猫星云 # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # */}} {{- if eq .Values.nwebapi.type "internal" -}} apiVersion: v1 kind: Service metadata: name: "{{ template "nightingale.nwebapi" . }}" labels: {{ include "nightingale.labels" . | indent 4 }} spec: ports: - name: "nwebapi-port" port: {{ template "nightingale.nwebapi.servicePort" . }} targetPort: {{ template "nightingale.nwebapi.port" . }} nodePort: 21197 ###指定nodePort端口 type: NodePort ###添加type类型 selector: {{ include "nightingale.matchLabels" . | indent 4 }} component: nwebapi {{- end -}}
5、安装
helm install nightingale ./n9e-helm -n n9e --create-namespace
6、卸载
helm uninstall nightingale -n n9e

浙公网安备 33010602011771号