cert manager
This commit is contained in:
parent
ce9f7891fa
commit
0a6a3e5371
@ -1,28 +1,35 @@
|
||||
---
|
||||
- name: configure control plane
|
||||
hosts: k8s_control
|
||||
gather_facts: true
|
||||
become: true
|
||||
roles:
|
||||
- k8s_control
|
||||
# - name: configure control plane
|
||||
# hosts: k8s_control
|
||||
# gather_facts: true
|
||||
# become: true
|
||||
# roles:
|
||||
# - k8s_control
|
||||
|
||||
- name: configure calico networking
|
||||
hosts: localhost
|
||||
gather_facts: true
|
||||
become: false
|
||||
roles:
|
||||
- k8s_network
|
||||
# - name: configure calico networking
|
||||
# hosts: localhost
|
||||
# gather_facts: true
|
||||
# become: false
|
||||
# roles:
|
||||
# - k8s_network
|
||||
|
||||
- name: remove control-plane taints
|
||||
# - name: remove control-plane taints
|
||||
# hosts: localhost
|
||||
# gather_facts: false
|
||||
# become: false
|
||||
# roles:
|
||||
# - k8s_taint
|
||||
|
||||
# - name: configure storage operator
|
||||
# hosts: localhost
|
||||
# gather_facts: false
|
||||
# become: false
|
||||
# roles:
|
||||
# - k8s_storage_ebs_deploy
|
||||
|
||||
- name: configure cert manager
|
||||
hosts: localhost
|
||||
gather_facts: false
|
||||
become: false
|
||||
roles:
|
||||
- k8s_taint
|
||||
|
||||
- name: configure storage operator
|
||||
hosts: localhost
|
||||
gather_facts: false
|
||||
become: false
|
||||
roles:
|
||||
- k8s_storage_ebs_deploy
|
||||
- k8s_cert_manager
|
2
ansible/roles/k8s_cert_manager/default/main.yaml
Normal file
2
ansible/roles/k8s_cert_manager/default/main.yaml
Normal file
@ -0,0 +1,2 @@
|
||||
---
|
||||
cert_manager_version: v1.10.1
|
12
ansible/roles/k8s_cert_manager/tasks/main.yaml
Normal file
12
ansible/roles/k8s_cert_manager/tasks/main.yaml
Normal file
@ -0,0 +1,12 @@
|
||||
---
|
||||
- name: download the cert manager manifest
|
||||
ansible.builtin.uri:
|
||||
url: https://github.com/cert-manager/cert-manager/releases/download/{{ cert_manager_version }}/cert-manager.yaml
|
||||
dest: "{{ ansible_search_path[0] }}/files/cert_manager_{{ cert_manager_version }}.yaml"
|
||||
creates: "{{ ansible_search_path[0] }}/files/cert_manager_{{ cert_manager_version }}.yaml"
|
||||
mode: 0664
|
||||
|
||||
- name: install cert manager manifest to cluster
|
||||
kubernetes.core.k8s:
|
||||
state: present
|
||||
src: "{{ ansible_search_path[0] }}/files/cert_manager_{{ cert_manager_version }}.yaml"
|
Loading…
Reference in New Issue
Block a user