From b8ef1da1d620f5789bcd9707959c904fce1a1759 Mon Sep 17 00:00:00 2001 From: fumingwei Date: Thu, 3 Nov 2022 10:53:41 +0800 Subject: [PATCH] =?UTF-8?q?feature:TSG-12525:=E6=96=B0=E5=A2=9Etsg-os-syst?= =?UTF-8?q?em=E5=91=BD=E5=90=8D=E7=A9=BA=E9=97=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ansible/HAL_deploy.yml | 1 + ansible/roles/k3s-exporter/files/ns-tsg-os-system.yaml | 4 ++++ ansible/roles/k3s-exporter/tasks/main.yml | 4 ++++ 3 files changed, 9 insertions(+) create mode 100644 ansible/roles/k3s-exporter/files/ns-tsg-os-system.yaml create mode 100644 ansible/roles/k3s-exporter/tasks/main.yml diff --git a/ansible/HAL_deploy.yml b/ansible/HAL_deploy.yml index 341f2461..6d03dcdd 100644 --- a/ansible/HAL_deploy.yml +++ b/ansible/HAL_deploy.yml @@ -153,6 +153,7 @@ - {role: clixon, tags: clixon} - {role: traffic-engine, tags: traffic-engine} - {role: k8s-dashboard, tags: k8s-dashboard} + - {role: k3s-exporter, tags: k3s-exporter} - {role: tsg-diagnose, tags: tsg-diagnose} - {role: system-init-TSG-X-P1403, tags: system-init-TSG-X-P1403} - {role: system-init, tags: system-init} diff --git a/ansible/roles/k3s-exporter/files/ns-tsg-os-system.yaml b/ansible/roles/k3s-exporter/files/ns-tsg-os-system.yaml new file mode 100644 index 00000000..2ee4305a --- /dev/null +++ b/ansible/roles/k3s-exporter/files/ns-tsg-os-system.yaml @@ -0,0 +1,4 @@ +apiVersion: v1 +kind: Namespace +metadata: + name: tsg-os-system diff --git a/ansible/roles/k3s-exporter/tasks/main.yml b/ansible/roles/k3s-exporter/tasks/main.yml new file mode 100644 index 00000000..ea922f8c --- /dev/null +++ b/ansible/roles/k3s-exporter/tasks/main.yml @@ -0,0 +1,4 @@ +- 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/ \ No newline at end of file