1
0

cert manager

This commit is contained in:
michael 2022-12-09 02:40:44 +13:00
parent ce9f7891fa
commit 0a6a3e5371
3 changed files with 42 additions and 21 deletions

View File

@ -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

View File

@ -0,0 +1,2 @@
---
cert_manager_version: v1.10.1

View 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"