feature:TSG-12392:部署ipmi exporter

This commit is contained in:
fumingwei
2022-11-03 11:47:19 +08:00
parent b8ef1da1d6
commit 04cbf645d9
3 changed files with 36 additions and 1 deletions

View File

@@ -0,0 +1,15 @@
apiVersion: helm.cattle.io/v1
kind: HelmChart
metadata:
name: tsg-ipmi
namespace: kube-system
spec:
chart: https://%{KUBERNETES_API}%/static/charts/ipmi-exporter-0.1.9.tgz
targetNamespace: tsg-os-system
valuesContent: |-
ipmiExporter:
imagePullPolicy: Never
service:
annotations:
prometheus.io/scrape: "true"
fullnameOverride: "ipmi-exporter"

View File

@@ -1,4 +1,24 @@
- name: "copy namespace tsg-os-system file to dest"
copy:
src: "{{ role_path }}/files/ns-tsg-os-system.yaml"
dest: /var/lib/rancher/k3s/server/manifests/
dest: /var/lib/rancher/k3s/server/manifests/
- name: "copy ipmi crd file to dest"
copy:
src: "{{ role_path }}/files/ipmi/ipmi-crd.yaml"
dest: /var/lib/rancher/k3s/server/manifests/
- name: "copy ipmi chart to dest"
copy:
src: "{{ role_path }}/files/ipmi/ipmi-exporter-0.1.9.tgz"
dest: /var/lib/rancher/k3s/server/static/charts/
- name: "get ipmi chart images to dest"
get_url:
url: https://repo.geedge.net/filerepo/install/release/tsg-container-images/ipmi-exporter.tar
dest: /var/lib/rancher/k3s/agent/images/ipmi-exporter.tar
url_username: "{{ lookup('env', 'PULP_REPO_USERNAME') }}"
url_password: "{{ lookup('env', 'PULP_REPO_PASSWORD') }}"