Merged: init_k3s_cluster_with_gitops -> init_k3s_cluster_std

This commit is contained in:
Haitao Pan 2023-12-21 08:51:51 +08:00
parent 7d848afdb3
commit 076be7e396
3 changed files with 6 additions and 37 deletions

View File

@ -71,5 +71,5 @@ jobs:
shell: bash
run: |
export ANSIBLE_HOST_KEY_CHECKING=False
ansible-playbook -i hosts/inventory init_k3s_cluster_with_gitops -e "cluster_name=${{inputs.ssh_host_name}}" -e "domain=${{inputs.domain}}" -D
ansible-playbook -i hosts/inventory init_k3s_cluster_std -e "cluster_name=${{inputs.ssh_host_name}}" -e "domain=${{inputs.domain}}" -D
working-directory: playbook/

View File

@ -21,12 +21,12 @@
name: k3s-addon
vars:
group: master
gitops: enable
config_repo: https://github.com/svc-design/gitops.git
ingress: nginx
domain: svc.plus
namespace: ingress
gitops: enable
canary: enable
auto_issuance: true
update_secret: false
external_dns: enable
external_dns: enable
update_secret: false
svc_discovery: disable
config_repo: https://github.com/svc-design/gitops.git

View File

@ -1,31 +0,0 @@
- name: set artifact cluster with vhosts
hosts: all
user: root
become: yes
gather_facts: yes
tasks:
- include_role:
name: k3s-reset
vars:
group: master
cluster_reset: 'enable'
- include_role:
name: k3s
vars:
group: master
cni: default
version: 'v1.27.2+k3s1'
pod_cidr: '10.10.0.0/16'
svc_cidr: '172.16.0.0/16'
- include_role:
name: k3s-addon
vars:
group: master
gitops: enable
canary: enable
auto_issuance: true
external_dns: enable
update_secret: false
external_dns: enable
svc_discovery: disable
config_repo: https://github.com/svc-design/gitops.git