Add missing key;Add traefik ssh entrypoint
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
0263b2dfc4
commit
39cc83ac57
@ -190,14 +190,14 @@
|
||||
loop:
|
||||
- organization: mc
|
||||
body:
|
||||
name: ArgoCD.Config,
|
||||
# auto_init: true
|
||||
name: ArgoCD.Config
|
||||
auto_init: true
|
||||
default_branch: main
|
||||
description: GitOps manifests
|
||||
- organization: wl
|
||||
body:
|
||||
name: Template.ArgoCD.Config,
|
||||
# auto_init: true
|
||||
name: Template.ArgoCD.Config
|
||||
auto_init: true
|
||||
default_branch: main
|
||||
description: GitOps manifests
|
||||
loop_control:
|
||||
|
@ -4,8 +4,17 @@
|
||||
state: directory
|
||||
loop:
|
||||
- /var/lib/rancher/k3s/agent/images
|
||||
- /var/lib/rancher/k3s/server/manifests
|
||||
- /opt/metacluster/k3s
|
||||
|
||||
- name: Inject manifests
|
||||
ansible.builtin.template:
|
||||
src: helmchartconfig.j2
|
||||
dest: /var/lib/rancher/k3s/server/manifests/{{ item.name }}_config.yml
|
||||
loop: "{{ platform.packaged_components }}"
|
||||
loop_control:
|
||||
label: "{{ item.name }}"
|
||||
|
||||
- name: Download & install K3s binary
|
||||
ansible.builtin.get_url:
|
||||
url: https://github.com/k3s-io/k3s/releases/download/{{ platform.k3s.version }}/k3s
|
||||
|
8
ansible/roles/metacluster/templates/helmchartconfig.j2
Normal file
8
ansible/roles/metacluster/templates/helmchartconfig.j2
Normal file
@ -0,0 +1,8 @@
|
||||
apiVersion: helm.cattle.io/v1
|
||||
kind: HelmChartConfig
|
||||
metadata:
|
||||
name: {{ item.name }}
|
||||
namespace: {{ item.namespace }}
|
||||
spec:
|
||||
valuesContent: |-
|
||||
{{ item.config }}
|
@ -3,6 +3,17 @@ platform:
|
||||
k3s:
|
||||
version: v1.24.1+k3s1
|
||||
|
||||
packaged_components:
|
||||
- name: traefik
|
||||
namespace: kube-system
|
||||
config: |4
|
||||
ports:
|
||||
ssh:
|
||||
port: 8022
|
||||
protocol: TCP
|
||||
web:
|
||||
redirectTo: websecure
|
||||
|
||||
helm_repositories:
|
||||
- name: longhorn
|
||||
url: https://charts.longhorn.io
|
||||
|
Loading…
Reference in New Issue
Block a user