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 # - name: configure control plane
hosts: k8s_control # hosts: k8s_control
gather_facts: true # gather_facts: true
become: true # become: true
roles: # roles:
- k8s_control # - k8s_control
- name: configure calico networking # - name: configure calico networking
hosts: localhost # hosts: localhost
gather_facts: true # gather_facts: true
become: false # become: false
roles: # roles:
- k8s_network # - 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 hosts: localhost
gather_facts: false gather_facts: false
become: false become: false
roles: roles:
- k8s_taint - k8s_cert_manager
- name: configure storage operator
hosts: localhost
gather_facts: false
become: false
roles:
- k8s_storage_ebs_deploy

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"